Hi Mathew,
Can you please add Average position cost field in the positionstatus API call ? This will simplify a lot for system developers.
The opinions expressed in these forums do not represent those of C2, and any discussion of profit/loss is not indicative of future performance or success. There is a substantial risk of loss in trading. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition. You should read, understand, and consider the Risk Disclosure Statement that is provided by your broker before you consider trading. Most people who trade lose money.
Hi Mathew,
Can you please add Average position cost field in the positionstatus API call ? This will simplify a lot for system developers.
Ok, Yury. See? You only need to ask me to do something ten times before I do it!
A request like this:
signal.mpl?cmd=positionstatus&pw=***&systemid=89959688&symbol=EURGBP
now returns something that looks like this:
<collective2>
<status>OK</status>
<positionstatus>
<calctime>2015-03-18 11:13:55:000</calctime>
<symbol>EURGBP</symbol>
<position>2</position>
<averagecost>0.79082</averagecost>
</positionstatus>
</collective2>