How to get live quotes in C#
Created at 26 Jul 2023, 10:43
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
ProtoOASubscribeSpotsReq
message. - Fill the object properties with the
ctidTraderAccountId
, thesymbolId
, and, optionally, thesubscribeToSpotTimestamp
bool. - Send the newly created message and receive a response of the
ProtoOASubscribeSpotsRes
type. At this point, you are subscribed to live quotes data and you should receive messages of theProtoOASpotEvent
type.
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?