API Support Forum
OEC API > API Support > OTE
Author Topic: OTE
(6 messages, Page 1 of 1)
Moderators: VPfau
estrader
Posts: 55
Joined: May 04, 2007


Posted: May 14, 2007 @ 07:37 AM             Msg. 1 of 6
1) OTE does not display in USD?

[Theoretical profit/loss of open position against last market price in USD minus comissions]

2) Is the comission 50 for and ES contract only on the api development server?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 14, 2007 @ 09:28 AM             Msg. 2 of 6
there are properties OTE and CurrencyOTE: OTE is always in USD, and CurrencyOTE is in contract currency (for example, EUR for FDAX contract). CurrencyOTE does not include commissions.

currently all commissions on api development server are equal to $49.5 for half-turn.
estrader
Posts: 55
Joined: May 04, 2007


Posted: May 14, 2007 @ 10:47 AM             Msg. 3 of 6
Hi,

I have 'p.OTE' and the format as P/L {3:C} yet it is displaying with a '£' and not $US

Also, I noticed that some volume trades aren't showing up in my application yet I see them in Live trading account DOM. Is the api server slower than the production server?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 14, 2007 @ 11:00 AM             Msg. 4 of 6
"C" formatting specifier uses local machine culture settings, i.e. it takes currency symbol from your regional settings.

api server is not slower than production in general, but it's a testing server for all developers, including us - so some actions like stress testing could lead to little slowdowns at api server.

Also, DOM in api server and live server could show different values, because simulation processor takes simulated trades into account.
estrader
Posts: 55
Joined: May 04, 2007


Posted: May 15, 2007 @ 10:55 AM             Msg. 5 of 6
Does the DOM in OEC trader use the onpricechanged event to update? I do see some discrepancies. ie/ High Volume trades take place in OEC DOM but does not trigger event on api server?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 15, 2007 @ 11:06 AM             Msg. 6 of 6
OnPriceChanged event is throttling price data if they are coming too fast.

you can use OnPriceTick event to receive updates more frequently (as DOM does),

or subscribe for ticks to receive every single trade.

Note that it could consume too much CPU to handle every tick.