Broker Position does not match QR Blotter

Hi Brian,

I've got a position in IBKR that my blotter says should not exist. I went through the history of orders in the blotter and the aggregate purchases tie out so that I should not have a current position in the brokerage account. However, I'm still showing a large position in IBKR (roughly double the size that my strategies held).

How do you suggest I trouble shoot to understand where they error occurred?

Thanks.

The most natural explanation would be if trades occurred in your IBKR account that were not submitted and managed by QuantRocket (e.g. manual orders in TWS), or submitted by a different deployment of QuantRocket (and thus not known by this QuantRocket's blotter).

As far as troubleshooting, you might try opening the trade history window in TWS for the last 7 days and comparing it to the blotter history to see if that reveals a non-QuantRocket trade; however, TWS history only goes back 7 days.

Going forward, you might try regularly running:

quantrocket blotter positions --broker --diff

to promptly spot any differences between the blotter positions and the broker positions, as any discrepancies will be easier to track down the sooner you catch them after they occur.