API Support Forum
OEC API > API Support > API Server down?
Author Topic: API Server down?
(10 messages, Page 1 of 1)
Moderators: VPfau
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Jun 09, 2008 @ 10:26 AM             Msg. 1 of 10
The API server stopped giving me ticks and allowing trades this morning.
1. Is it down, or is the problem on my end.
2. Who should I call, or is this the best place to check status?

Thanks,

Dale
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 09, 2008 @ 11:54 AM             Msg. 2 of 10
we are having problems with our simulation environment and still working for resolution.

Sorry for inconvenience.
DComolli
Posts: 15
Joined: May 16, 2008


Posted: Jun 09, 2008 @ 12:11 PM             Msg. 3 of 10
Would this also affect no being able to obtain contracts for markets such as ZC?

Dana
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 09, 2008 @ 12:16 PM             Msg. 4 of 10
I do not see any problems with downloading ZC contracts - could you please explain?
DComolli
Posts: 15
Joined: May 16, 2008


Posted: Jun 09, 2008 @ 12:19 PM             Msg. 5 of 10
OECClient.Contracts only contains 7 contracts
OECClient.BaseContracts item for ZC returns a collection of 0 length for its Contracts collection as well as for the various Get methods.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 09, 2008 @ 12:23 PM             Msg. 6 of 10
you have to call RequestContracts for BaseContract ZC to have these contracts. Only contracts used in orders or positions are downloaded after login, all others need to be downloaded explicitly.

This change was introducted in API 3.2 and in effect in SIM and API environments now, and will be in effect in prod soon.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 09, 2008 @ 12:25 PM             Msg. 7 of 10
After a call to RequestContract the event OnContractsChanged will be fired when contracts are loaded.
DComolli
Posts: 15
Joined: May 16, 2008


Posted: Jun 09, 2008 @ 12:26 PM             Msg. 8 of 10
Thanks
DComolli
Posts: 15
Joined: May 16, 2008


Posted: Jun 09, 2008 @ 12:30 PM             Msg. 9 of 10
Is there way to populate the draft.Contract property without first downloading the contracts, or must this be done first before an order can be created for a contract?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 09, 2008 @ 12:34 PM             Msg. 10 of 10
You must load contracts first.