GetSymbolInfos sometimes works forever

Created at 05 Jan 2023, 17:11
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GA

gateondev

Joined 05.01.2023

GetSymbolInfos sometimes works forever
05 Jan 2023, 17:11


Hello

In my cBot I need list of all symbols available with some basic data (digits, trade mode, volume parameters, etc). But attempt to call Symbols.GetSymbolInfos with all symbol names -

var allSymbols = Symbols.GetSymbols(Symbols.ToArray());

sometimes hangs forever (sometimes works instantly). Maybe getting data for >600 symbol is not the best idea, but after this I started to get freezes even on single item get.

Is there something like throttling to avoid too many calls? Or can I get this data in simpler way?

Another issue here - sometimes I get data quickly, but half empty -

Pausing during hang shows this:

I can switch to using just freely available names and get only single item info on user selection in cBot, but if issue continues with single calls it blocks my work (so was it throttling due to heavy calls?)

Thank you


@gateondev