Symbol ID not giving correct current value

Created at 28 Feb 2020, 04:53
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!
AC

acrigney

Joined 25.05.2017

Symbol ID not giving correct current value
28 Feb 2020, 04:53


 From the open api I am getting  10016 as the ID for the US30

e,g

Name: NAS100
ID: 10015
Name: US30
ID: 10016
Name: XBRUSD
ID: 10017

 

The spot price comes back as

 

Received: ProtoMessage{SpotEvent{symbolId:10016, bidPrice:5097000, askPrice:5104000}}
Received: ProtoMessage{SubscribeForSpotsResponse{}}

 

  But checking the market now  its about 25663

 

And the last tick data comes back e.g as

 

Send: ProtoMessage{GetTickDataRequest{}, clientMsgId:US30}
Received: ProtoMessage{Tick Data{Tick: 5088000 US30
Timestamp: 1582858334261
}, clientMsgId:US30}


@acrigney
Replies

PanagiotisCharalampous
28 Feb 2020, 08:43

Hi acrigney,

US30 is 10015. 10016 is XBRUSD.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

acrigney
28 Feb 2020, 09:24

RE:

Thanks mate!!!

PanagiotisCharalampous said:

Hi acrigney,

US30 is 10015. 10016 is XBRUSD.

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@acrigney