where to get MDReqID?

Created at 05 Jul 2022, 00:19
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!
WW

wwweeeeee

Joined 04.07.2022

where to get MDReqID?
05 Jul 2022, 00:19


So I'm new to fix and already send successfully logon fix message. 
So now I want to get market data of usd/eur pair and I can't find MDReqID (price feed subscription)

I have only web version, I guess I have to install windows virtual machine and ctrader app to get price feed subscription id?
How do I choose the candle time of the pair?

Question number 2. After I successfully send a logon message, how long does the system keep me online? After submitting "logon" and getting "success" I can just send the Market Requests? Is that how it works?

 

so for now my fix message looks like this:

8=FIX.4.4\x019=136\x0135=V\x0152=20220704-21:15:10.007244\x0149=demo.roboforex<numbers>\x0156=CSERVER\x0134=3\x0157=QUOTE\x01262=\x01263=1\x01264=1\x01265=1\x01146=1\x0155=1\x01267=2\x01269=0\x01269=1\x0110=090\x01'

and feedback is empty string. I guess it's since at |262=| part I don't write anything.


@wwweeeeee
Replies

PanagiotisCharalampous
05 Jul 2022, 12:38

Hi there,

1. MDReqID is set by you, you don't find it somewhere.

2. You need to send heartbeats every 10 seconds else you might get disconnected

Check our samples on GitHub, they will help you

https://github.com/spotware?q=fix&type=all&language=&sort=

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

wwweeeeee
05 Jul 2022, 17:26

RE:

PanagiotisCharalampous said:

Hi there,

1. MDReqID is set by you, you don't find it somewhere.

2. You need to send heartbeats every 10 seconds else you might get disconnected

Check our samples on GitHub, they will help you

https://github.com/spotware?q=fix&type=all&language=&sort=

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

okk, got about login and heartbeats. Thank you 

But still not quite understand how to subscribe to, for example USD/EUR pair, 5 minute timeframe. Can someone show me an example of fix message I have to send? I've seen this as an example but I don't see a part, where I have to write to what trading pair and timeframe I want to subscribe to:

For spots

  Request
  8=FIX.4.4|9=131|35=V|49=live.theBroker.12345|56=CSERVER|34=3|52=20170117-
  10:26:54|50=QUOTE|262=876316403|263=1|264=1|265=1|146=1|55=1|267=2|269=0|269=1|10=094|

)


@wwweeeeee

PanagiotisCharalampous
05 Jul 2022, 17:51

Hi there,

You need to read the specification. Field 55 is for the symbol. There is no timeframe field, since you are subscribing to spot prices and DoM, not to historical candles.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

wwweeeeee
08 Jul 2022, 23:52

RE:

PanagiotisCharalampous said:

Hi there,

You need to read the specification. Field 55 is for the symbol. There is no timeframe field, since you are subscribing to spot prices and DoM, not to historical candles.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Alright, sorry for the many questions here. Now I have a problem with correct submitting fix messages (I can't find an easy python example).

I use a python and send logon message, then market data message and get every time the following error: "58=Tag appears more than once, field="
When I deleting all repeated messages, I receive another error: 58=Tag not defined for this message type, field=98.

How to fix that?

To send fix messages I use this construction: 

s.sendall(logon(msg))
print(s.recv(4096))
s.sendall(market_data(msg))
print(s.recv(4096))

@wwweeeeee

PanagiotisCharalampous
11 Jul 2022, 14:04

Hi there,

Please share the exact FIX messages exchanged so that we can advise further.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous