question

Upvotes
Accepted
87 4 4 11

Is there a total count limit of quote for TREP?

hello:

I develop with EMA C++。

I request for quote from HKSE, include index、stock、fund、ETF、warrant,position......and I get some error as follows:

"Item State: Closed / Suspect / Too many items / 'A20: Aggregate item limit exceeded.'"

but the count I add in the batch request array is less than "Maximum Batch"l

after I tried many times ,

I found when the total code num I request is bigger than 25270, I will get the errors,

if the total code num I request is less than 25270, bigger than 20553, I will not get the errors

20553 = 389 + 1 + 1978 + 223 + 6915 + 6915 + 4132;

the quotes I request is shown as follows:

count : 389------ GEM_HKSE_CHAIN
count : 1------ HKSE_DR_CHAIN
count : 1978------ HKSE_QUOTE_CHAIN
count : 223------ INDEX_HKSE_CHAIN
count : 1978------ HKSE_QUOTE_POSITION
count : 6915------ WARRANT_HKSE_CHAIN
count : 6915------ HKSE_WARRANT_POSITION
count : 4132------ HK_CBBC_CHAIN
count : 4132------ HK_CBBC_POSITION
count : 39------ HKSE_EFN_CHAIN
count : 40------ HKSE_FUND_CHAIN
count : 253------ ETF_HKSE_CHAIN
count : 253------ HK_FUND_POSITION"

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@luxiangyuan

Yes, TREP can limit the number of subscribed items. Refer to the ADS installation guide,

  • A20: Aggregate item limit exceeded

This status is sent when the application tries to open an item but the aggregateItemLimit for the user has been reached. aggregateItemLimit is the maximum number of items which the specified user is allowed to have open simultaneously across all services. Increase this parameter value if the user needs more items.

Therefore, to get more items, you need to change the value of aggregateItemLimit configuration in ADS.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

hello jirapongse.phuriphanvichai:

thanks for your answer.

I have another question.

If aggregateItemLimit = 10k;

if I register 1k items at 8:00 in the morning with fun "registerClient()"

then I unRegister them with fun "unregister()"

after this, can I register 10k items or only 9k items?

thank you.

After closing or unregistering all items, you can register 10k items.

Click below to post an Idea Post Idea