API Support Forum
User Profile

Viewing User Profile for: MMike94


About

Nov 19, 2009 01:09 PM

Mar 25, 2011 10:10 AM

May 23, 2011 12:45 PM



Post Statistics
MMike94 has contributed to 13 posts out of 5593 total posts (0.23%) in 5274 days (0.00 posts per day).

20 most recent posts:

API Support » ExecInst is missing from the Order class Mar 25, 2011 @ 10:10 AM (Total replies: 1)

In OrderDraft, the property Flags can be set to one of None, GTC, FOK or IOC (from the OEC.Data.OrderFlags enum).

Also in OrderDraft, the property ExecInst can be set to one of None or AON (from the OEC.Data.ExecInst enum).

All of that is good. But when your API reports the order status back to me, it uses the Order class. That class has the Flags property, but it does not have the ExecInst property.

So if I've submitted an AON order, when I get the status back, how does it report that it was AON?

Paul

API Support » The API is not reporting equity contracts Mar 15, 2011 @ 07:59 PM (Total replies: 3)

Thank you for the info Victor. I've been looking at the API documentation for SymbolLookup and SymbolLookupCriteria.

I also searched cs files in the Advanced example for both of those words, and they do not occur in the example.

Can you give me more information on how to use the various criteria Mode values (eg. AnyInclusion, SymbolStartsWith, DescriptionStartsWith, AnyStartsWith, ExactMatch)? Is it possible to specify a range with SymbolStartWith, such as any symbol starting with A thru L?

I'm assuming those modes use the SearchText property, but there is no documentation describing how.

By the way, CHM that I have (dated 3/18/2010) does not have a page for OEC.Data.SymbolLookupMode.

Thanks,
Paul

Paul

API Support » The API is not reporting equity contracts Mar 11, 2011 @ 06:44 PM (Total replies: 3)

After logging in, OECClient.Contracts does not contain any equity (stock) contracts.

OECClient.ContractGroups that relate to equities, such as the Equities contract group, contains no Contract and no BaseContract objects.

How do I get equity contracts to be included in the OECClient.Contracts list?

Paul

API Support » mapping Account(s) to Contracts for orders Mar 01, 2011 @ 11:40 AM (Total replies: 4)

Victor,
Thank you for the information. There are 3 ContractKind values that you did not mention -- Unknown, EquityIndex and Bond.

I'm guessing EquityIndex would go with AccountType.Equity and Bond would go with a futures account type.

Would that be correct?

I'm assuming Unknown would never happen, but can I match that with a future account type also?

Thanks,
Paul

Paul

API Support » mapping Account(s) to Contracts for orders Feb 28, 2011 @ 12:04 PM (Total replies: 4)

Victor,
Can you please reply?
Thanks

Paul

API Support » how to unsubscribe from price updates after an order Feb 25, 2011 @ 04:28 PM (Total replies: 5)

Interesting. Its now 4:28 PM EST and the price updates have stopped.
Thanks.

Paul

API Support » how to unsubscribe from price updates after an order Feb 25, 2011 @ 03:50 PM (Total replies: 5)

Victor,
Yesterday I had submitted several orders for ESH1. However by the end of the day, my position was flat. This was prior to 6 PM EST yesterday.

I just started my program for the first time today (3:50 PM EST). I did not subscribe to any contracts, yet I'm getting price updates for ESH1. The API confirms that I have no positions.

Calling Unsubscribe for ESH1 does not stop the price updates.

Paul

Paul

API Support » mapping Account(s) to Contracts for orders Feb 25, 2011 @ 03:01 PM (Total replies: 4)

I've asked this question of Customer service and got a good answer, but let me also get your opinion.

I have seen that some Accounts are for Forex, some for Futures and some for Equities.

Using the Account object and Contract object (or the contract's ContractGroup), how can I determine which account should be used to place an order for a particular contract?

For example, the logon I'm using has two accounts - one for FX and one for Futures. When I submit an order for ESH1, I need to use the Futures account, but when I submit an order for AUD/USD, I need to use the other account.

What is the best way, at run time, using the Account and Contract objects to determine which account to use when submitting the order?

Thanks

Paul

API Support » Bar.UpVolume, DownVolume, UpTicks, DownTicks Feb 25, 2011 @ 02:55 PM (Total replies: 2)

Yep, that solved the problem -- Thanks!

Paul

API Support » Bar.UpVolume, DownVolume, UpTicks, DownTicks Feb 25, 2011 @ 02:04 PM (Total replies: 2)

The API documentation for the Bar class (as used in the OnBarsReceived event) shows that each Bar has values for UpVolume, DownVolume, UpTicks and DownTicks.

However in C# when I type"." and the pop up shows what methods are availalbe in a Bar object, those properties are not shown. (Volume and Ticks are shown.)

So is the documentation wrong or do I have an old/bad dll?

Thanks

Paul

API Support » how to unsubscribe from price updates after an order Feb 25, 2011 @ 11:36 AM (Total replies: 5)

Victor,
Thank you for the reply.
So to be sure I understand you, there is no way to stop those price updates.
Will your system automatically stop them at some point? ever?

Thanks,
Paul

Paul

API Support » how to unsubscribe from price updates after an order Feb 25, 2011 @ 10:59 AM (Total replies: 5)

I see that after submitting an order for a contract, the server automatically subscribes me for price updates for that contract. This is actually documented in the API.

But how can I stop getting these price updates? Calling OECClient.Unsubscribe() does not stop them.

Oh, the position is that contract is flat.

Thanks

Paul

API Support » how does the API get Alert Messages? Feb 25, 2011 @ 10:56 AM (Total replies: 1)

Occasionally there are alert messages that need to be presented to traders - such as "The market is closing early today".

How are such messages sent to the API?

I don't want to get news and I don't want to get chat messages from other users, but I do want to get these kinds of alert messages.

Thanks

Paul