Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account export throws error on margin positions #40

Open
sschiessl-bcp opened this issue Jan 5, 2025 · 1 comment
Open

Account export throws error on margin positions #40

sschiessl-bcp opened this issue Jan 5, 2025 · 1 comment

Comments

@sschiessl-bcp
Copy link
Contributor

File "/home/insight-api/insight-api/insight/routers/openexplorer.py", line 741, in route_export_account_history
  row = _translate_row(op)
File "/home/insight-api/insight-api/insight/routers/openexplorer.py", line 698, in _translate_row
  open_margin_positions[_order["object"]["order_id"]] -= Amount(_order["object"]["pays"])
  TypeError: string indices must be integers

When exporting an account this happens, likely due to old object format.

@ihorml
Copy link
Contributor

ihorml commented Jan 11, 2025

I can take it over! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants