MDEntryPx as double

27 views
Skip to first unread message

Raul Gherman

unread,
Mar 23, 2016, 4:09:45 PM3/23/16
to fix8 developer
Hello

i am using Fix8.1.3.4 on RedHad 21 x64

does anyone have any experience on market data math operations?

i.e. i want something like this: (Ask - Bid) / Point

but MDEntryPx operations are not allowed / supported

can you please suggest something?

thank you, best regards

Raul

Mazz Barker

unread,
Mar 23, 2016, 9:16:56 PM3/23/16
to fix8 developer
You need to read the wiki and study the samples. To access the underlying value you simply use the function operator:

   TEX::MDEntryPx price;
    if (msg->get(price))
         cout << "price:" << price() << endl;

Mazz

Raul Gherman

unread,
Mar 29, 2016, 3:50:22 AM3/29/16
to fix8 developer
Thank you, i confirm it is written in the wiki and this is the way to access the value

thanks again,

Raul
Reply all
Reply to author
Forward
0 new messages