Getting Market Data using API V2

Created at 20 Mar 2019, 09:07
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!
AB

abierbrauer

Joined 29.01.2019

Getting Market Data using API V2
20 Mar 2019, 09:07


Hey there,

 

I'm a little bit confused by the documentation of the V2 API. I need the live market data of many different symbols.

There's the method ProtoOASubscribeSpotsReq. Can I use this to get the realtime market data of a symbol? I'm asking because there is also ProtoOAGetTickDataReq, but there's no symbol id in the response ProtoOAGetTickDataRes.

 

Regards, Alex


@abierbrauer
Replies

PanagiotisCharalampous
20 Mar 2019, 10:04

Hi Alex,

ProtoOASubscribeSpotsReq will subscribe you to live market data streaming. ProtoOAGetTickDataReq will return historical tick prices, not live market data.

Best Regards,

Panagiotis


@PanagiotisCharalampous