Author |
Topic: API Server down? (10 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
DBrubaker673 Posts: 55 Joined: Jul 18, 2007 |
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 |
we are having problems with our simulation environment and still working for resolution.
Sorry for inconvenience. |
||||
DComolli Posts: 15 Joined: May 16, 2008 |
Would this also affect no being able to obtain contracts for markets such as ZC?
Dana |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
I do not see any problems with downloading ZC contracts - could you please explain?
|
||||
DComolli Posts: 15 Joined: May 16, 2008 |
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 |
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 |
After a call to RequestContract the event OnContractsChanged will be fired when contracts are loaded.
|
||||
DComolli Posts: 15 Joined: May 16, 2008 |
Thanks
|
||||
DComolli Posts: 15 Joined: May 16, 2008 |
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 |
You must load contracts first.
|
||||