¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

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 ?


 

Yes after calling reqAccountSummary you should receive updates automatically about any changes in the specified tag values. There will be only be callbacks for those tags which have changed.

With reqAccoutSummary there are only two simultaneous subscriptions allowed.

Josh


 

Thanks a lot Josh, it really helps ;)
?

liu.huanjie@...

?
Date:?2016-05-24?04:18
Subject:?[TWS API] Re: reqAccountSummary methods reply error code 322
?

Yes after calling reqAccountSummary you should receive updates automatically about any changes in the specified tag values. There will be only be callbacks for those tags which have changed.

With reqAccoutSummary there are only two simultaneous subscriptions allowed.

Josh