AssetConverter.Convert()

Created at 07 Mar 2024, 19:54
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!
RI

RiskOnTrade

Joined 13.10.2023

AssetConverter.Convert()
07 Mar 2024, 19:54


Hey, I am having crashes on my Cbot, and 

var ConvRate = AssetConverter.Convert(1, Symbol.QuoteAsset, Symbol.BaseAsset);

this works on US500 FTMO, but crashes on US100 FTMO, OIL FTMO on MacOS systems. 

It says "Crashed with error."  in the Logs. It still crashes even if I put a try-catch block

But in windows OS, even with log below, it works normally on Windows

I see only “Failed to load asset ‘index’: asset not found."

Anyone has an idea? 

 


@RiskOnTrade
Replies

PanagiotisCharalampous
08 Mar 2024, 08:42

Hi there,

Please share the complete cBot code that generate this message.

Best regards,

Panagiotis


@PanagiotisCharalampous