Quote and Base currencies missing in API (cAlgo)

cTrader Automate

marktbs since: 18 Jul 2022;

  21 Jul 2022, 21:15
Quote and Base currencies missing in API (cAlgo)

cAlgo API is missing quote and base instruments information, like Name for example.

For example to get the quote currency (for volume conversion), we need to do funny methods that split Symbol.Name into 2 parts etc.. this is not professional nor universal and does not work with all instruments.

For indexes (US30, F40..) - there is no way at all to get the quote currency, so the only way is to hard-code it.

p.s. Additionally would be great to have methods that help with volume conversion from account asset - into quoted asset, or to base units even better.