Sync portfolio NAV as account balances from the IB Flex Web Service (SendRequest -> poll GetStatement -> parse XML). NAV maps to balance and open-position cost basis to invested_amount so profit derives like Indexa Capital. One statement covers every account, so the syncer fetches once per connection to respect IB's per-query rate limit. IB returns HTTP 200 with an error XML, so the client translates Flex error codes into the exceptions the sync job already understands: 401 for token problems, 429 for throttling, transient otherwise. |
||
|---|---|---|
| .. | ||
| Enums | ||
| Services | ||
| .gitkeep | ||