API Support Forum
User Profile

Viewing User Profile for: SRuscak


About

N/A

Nov 01, 2017 08:31 AM

Nov 01, 2017 08:31 AM



Post Statistics
SRuscak has contributed to 7 posts out of 5593 total posts

20 most recent posts:

API Support » Placed Order ID Nov 01, 2017 @ 08:31 AM (Total replies: 2)

Hello RAnde,

I suspect you are looking at the Order returned by OECClient.SendOrder(OrderDraft orderDraft). The OEC API is asynchronous, so the Order has to be sent to the servers and accepted before it can have a valid ID.

Probably you need to subscribe to the OECClient.OnOrderConfirmed event, which will fire once the order is confirmed and will contain the updated Order with a real ID.

We have a basic example on BitBucket that may be helpful to you.
https://bitbucket.org/GainFuturesDev/basicexample/src/6daf45874a3fd8626cdef300840aaa3e8b4b1fd4/MainForm.cs?at=master&fileviewer=file-view-default
SRuscak


API Support » Bracket Order -> Price Modification Sep 14, 2017 @ 09:22 AM (Total replies: 5)

Glad to hear you found a solution :)

Yes, we're working on expanding our documentation. It will be available soon.
SRuscak


API Support » Bracket Order -> Price Modification Sep 08, 2017 @ 12:13 PM (Total replies: 5)

Could it be that you omitted the second argument in the SendLinkedOrders call?

client.SendLinkedOrders(mainDraft, OSOGroupingMethod.ByFirstPrice, limitDraft, stopDraft);
Seth R


API Support » Trailing Stop Loss & Trailing Stop Limit Sep 07, 2017 @ 11:59 AM (Total replies: 5)

It wasn't part of the original design to include the ExtData on Trailing Stop price modifications, but we agree that it's nice to have. So, in a future release the Order will include the ExtData after price updates.
Seth R


API Support » Trailing Stop Loss & Trailing Stop Limit Aug 24, 2017 @ 02:53 PM (Total replies: 5)

I'm still investigating this.

In the meantime, if you need the ExtData it is still available in Version.ExtData for earlier Versions in the Orders.Versions collection. There's no new ExtData information that you're missing out on after Order.ExtData becomes null.
Seth R


API Support » Trailing Stop Loss & Trailing Stop Limit Aug 23, 2017 @ 02:27 PM (Total replies: 5)

Hello,

I've been looking into this. If I may ask:

    What version are you using?
    Was the behavior different previously? If so, when did it change?
    Could you please elaborate on the programmatic context in which you are seeing the missing ExtData?

I'll let you know what I find out.
Seth R

Edited by SRuscak on Aug 23, 2017 03:23 PM

API Support » Bracket Order -> Price Modification Aug 23, 2017 @ 07:14 AM (Total replies: 5)

You are correct, the ModifyOrderDraft's DeltaTicks and DeltaTicks2 should be changed.

For each, if there is a value you should add to it the number of ticks of the price change.