Keyboard Shortcuts
Likes
Search
reqAccountSummary methods reply error code 322
Hi, I try to request account summary, and every time I want to request, I unsubscribe first. Here is the code: cancelAccountSummary(orderId, group, sTag); reqAccountSummary(orderId, group, sTag); First few times IB server return ok, but after that, it keeps sending me errors: Error processing request:-'bo' : cause - Maximum number of account summary requests exceeded; desubscribe to previous request first I try google, but find nothing good for me, someone knows what happened, and what should I do to fix this? Thanks. |
sTag =?"AccountType,AccruedCash,BuyingPower,NetLiquidation,"
"TotalCashValue,SettledCash,EquityWithLoanValue,PreviousEquityWithLoanValue," "GrossPositionValue,InitMarginReq,MaintMarginReq,AvailableFunds," "FullInitMarginReq,FullMaintMarginReq,FullAvailableFunds,DayTradesRemaining" "Leverage"; and group is "All". |
Once a subscription is made to reqAccountSummary you should stay subscribed and automatically receive updates every 3 minutes until either the subscription is cancelled or there is a disconnection. Why are you subscribing multiple times?
Also, this command is more typically used with Financial Advisor account structures. If its an individual account, reqAccountUpdates is more common. Josh |
Hi Josh, thanks for you reply.
My account is a FA account. I am new to tws api, what do you mean stay subscribed ? I should call? reqAccountSummary then start receiving, and should not reqAccountSummary again if the subscription is cancelled or disconnect to server ? But every time I try to subscribe again, I cancel first, then subscribe, is? it a wrong way to make it ? |
Thanks a lot Josh, it really helps ;) ? liu.huanjie@...
|