GetSymbolInfos sometimes works forever
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