AssetConverter.Convert() low precision

Created at 28 Jan 2024, 14:13
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!
NC

ncel01

Joined 19.03.2020

AssetConverter.Convert() low precision
28 Jan 2024, 14:13


Hello,

How many decimal digits are returned by the AssetConverter.Convert() ? As far as I can see only 2.


@ncel01
Replies

PanagiotisCharalampous
29 Jan 2024, 08:34

Hi ncel01,

It should be the same to the converted asset's digits (Asset.Digits).

Best regards,

Panagiotis


@PanagiotisCharalampous

ncel01
29 Jan 2024, 13:56

RE: AssetConverter.Convert() low precision

PanagiotisCharalampous said: 

Hi ncel01,

It should be the same to the converted asset's digits (Asset.Digits).

Best regards,

Panagiotis

Hi Panagiotis,

I misunderstood it.

I thought that conversions would be calculated on a 2 decimal digits precision only, which is not the case.

Thank you!


@ncel01