Is the Symbol Digits wrong on some symbols?

158197794 since: 26 Jul 2019; 
 08 Sep 2019, 11:35
Is the Symbol Digits wrong on some symbols?

see:

EURUSD    spot: 135381   double: 1.35381   Symbol Digits : 5       -> correct

GBPUSD   spot: 164158    double: 1.64158  Symbol Digits : 5       -> correct

GBPJPY    spot: 17121500    double :171.215   Symbol Digits : 3       -> wrong

ITA40:   spot: 2040840000    double:20408.4     Symbol Digits : 1       -> wrong

US500  spot:201020000      double:2010.2     Symbol Digits : 1       -> wrong

GBPJPY, ITA40,US500,  the Symbol Digits is wrong.  this is a bug?

Panagiotis Charalampous's avatar
Panagiotis Charalampous since: 13 Jan 2017; 
 09 Sep 2019, 11:13

Hi 158197794,

Why do you think that symbol digits is wrong?

Best Regards,

Panagiotis

Head of Community Management at cTrader
158197794 since: 26 Jul 2019; 
 09 Sep 2019, 16:23
RE:

Panagiotis Charalampous said:

Hi 158197794,

Why do you think that symbol digits is wrong?

Best Regards,

Panagiotis

because         double price = spot price  *10^(-Symbol Digits).

so   :   EURUSD    spot: 135381   double: 1.35381   Symbol Digits : 5          =>    135381 * 10 ^ (-5)  =  1.35381.

but ,   GBPJPY    spot: 17121500    double :171.215   Symbol Digits : 3      =>   17121500   * 10 ^ (-3)  = 17121.5    ???????????       Is this not wrong?

Panagiotis Charalampous's avatar
Panagiotis Charalampous since: 13 Jan 2017; 
 09 Sep 2019, 16:30

Hi 158197794,

This is not what Symbol digits means. Symbol digits indicates the digit where the minimum change in price can be expected. So for GBPJPY, the minimum change occurs at the third digit e.g. the price will be 171.215 or 171.216. It will never be 171.2154 or 171.2157. Values returned in the spot events are always specified in 1/100000 of unit of a price. Read more here.

Best Regards,

Panagiotis

Head of Community Management at cTrader
158197794 since: 26 Jul 2019; 
 09 Sep 2019, 16:50
RE:

Panagiotis Charalampous said:

Hi 158197794,

This is not what Symbol digits means. Symbol digits indicates the digit where the minimum change in price can be expected. So for GBPJPY, the minimum change occurs at the third digit e.g. the price will be 171.215 or 171.216. It will never be 171.2154 or 171.2157. Values returned in the spot events are always specified in 1/100000 of unit of a price. Read more here.

Best Regards,

Panagiotis

so,if it is like this,What is the general way to convert a spot value to a double value?

how  can I   convert    GBPJPY    spot: 17121500     to  double :171.215?

Panagiotis Charalampous's avatar
Panagiotis Charalampous since: 13 Jan 2017; 
 09 Sep 2019, 16:53

Hi 158197794,

Use spot price/100000.

Best Regards,

Panagiotis

Head of Community Management at cTrader
158197794 since: 26 Jul 2019; 
 09 Sep 2019, 16:57
RE:

Panagiotis Charalampous said:

Hi 158197794,

Use spot price/100000.

Best Regards,

Panagiotis

Can all currency pairs and indices use this method?

Panagiotis Charalampous's avatar
Panagiotis Charalampous since: 13 Jan 2017; 
 09 Sep 2019, 16:58

Hi 158197794,

Yes

Best Regards,

Panagiotis

Head of Community Management at cTrader
BenjaminR since: 12 Jun 2019; 
 04 Oct 2019, 18:55

Where are the symbol digits stored? I need to work with them but I do not find. Thanks. 

firemyst since: 26 Mar 2019; 
 07 Oct 2019, 03:42
RE:

Be Rich said:

Where are the symbol digits stored? I need to work with them but I do not find. Thanks. 

Symbol.Digits ?