reconciliation
Articles about reconciliation.
Articles
- 10 min read
API order rejected for insufficient balance but you have enough
What a bot can spend is derived, not read: the free amount of the asset the order debits, in the wallet it debits, after venue holds and fees, from a snapshot that reflects the last balance change the bot knows of. When a field is missing or the snapshot may be older, the answer is unknown, not a number.
- Release7 min read
OpenPit 0.8: trades made outside the bot now reach its limits
OpenPit SDK 0.8.0 adds drop copy in every SDK: an order executed outside the bot runs through the same policies with ordinary rejects ignored, and its fills follow as execution reports, so funds and loss limits count it. P&L bounds now carry a currency, and seven API changes need code edits.
- 10 min read
Why your trading bot's position drifts from the broker's
A trading bot's position is the confirmed filled quantity plus the open quantity of every order without a final outcome. Track cumulative fills per order, rebuild after a reconnect by buffering the stream before the snapshot, and check new orders against the worst side of that range.