get all tradable symbols

Created at 09 Sep 2020, 13:48
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!
PR

prhmma

Joined 22.08.2020

get all tradable symbols
09 Sep 2020, 13:48


Hi guys,

I am writing a code to monitor every possible symbol supported by my broker in Ctrader, currently I have to make a list of strings like ["EURUSD", "EURJPY",...] and use getSymbol using these names.

I like to know if there is a way to get all tradable symbols that I have access to in the "trade side menu".


@prhmma
Replies

prhmma
09 Sep 2020, 14:10

Symbols

I just found the solution and like to share it with you.

It seems like "Symbols" itself contains all available symbols in the account and can be used like this

 

foreach(var symbol in Symbols){

//do something with symbol

}


@prhmma