EM
How to get live quotes in C#
26 Jul 2023, 10:43
i'm struggling to obtain live quotes in C# using open Api library
To receive live bid/ask quotes for a symbol, perform the following actions.
- Initialise an object representing the
ProtoOASubscribeSpotsReqmessage. - Fill the object properties with the
ctidTraderAccountId, thesymbolId, and, optionally, thesubscribeToSpotTimestampbool. - Send the newly created message and receive a response of the
ProtoOASubscribeSpotsRestype. At this point, you are subscribed to live quotes data and you should receive messages of theProtoOASpotEventtype.
i'm following this tip but don't able to receive the message of the ProtoOASportEvent type, how can i manage this problem? How can i send the message of ProtoOASubscribeSpotsReq type? What type of method or function should i use?
