|
|
|
Collapse all descriptions
|
Can I use the API on Unix / Linux.
We don`t provide a library for Linux or Unix, we may do in the near future.
|
I have received my Test Account information from GSD and I am unable to login to the test system.
There could be a number of reasons for this problem this only applies to API customers. When you register your account with GSD they will setup your user role and provide you with a user / password / application id / license information. This information has to be populated into the ptLogon() and ptInitialise() method, if they don’t match with the STAS you will be unable to connect to the test system or the live environment.
|
Is the API .Net compatible and can I use it in Visual Studio
Yes and no, the API is not a .net assembly, but you can reference the API Library as Unmanaged code, this approach will allow access to the exposed methods, the demo we provide uses this approach, which is available for download from the development zone.
Main DevZone Page..
|
Java help guide doesn`t show any html information
The HLP - Client Trading API Javawrapper 8.8 10FEB2010 V1.0.zip help on some systems doesn’t show the help information. Save the zip file to your Root folder for example "c:\java help" then right click on the help file, select the properties dialog, then press allow. Because the help file is web based internet explorer security may restrict it, this process will resolve the issue.
|
Why does ptStatusCallback return status of 0 on some contracts?
Some exchanges do not publish market status. By default API passes status 0 which implies ptStatusNormal.
|
I am Getting Error in doSubscribeToContract failed to execute contract Exchange/Name/Date Unknown
You are trying to subscribe to prices for a contract that doesn't exist in the API. Please check that the contract exists before
sending the subscription request.
|
When I subscribe to prices using the Method ptSubscribePrice, I don’t receive any prices, there are a number of possible reasons.
1) Subscribe to the contract after the download complete message 3620
2) The contract may not have any price activity, check with GSD and provide the Exchange / ContractName / Contract Date
|
Application keeps crashing when I am downloading contract data
Possible reason for this issue, try using ptGetExtendedContract and not ptGetContract, some contracts have more than two legs, and this would cause a record structure alignment error, which could crash your application. The method ptGetContract will be deprecated in the next release of the API it will be replaced by ptGetExtendedContract . For more information refer to (Section 3.3.5 "ptGetExtendedContract" ) of the ADK.
|
C++ Demo Failing when placing random orders
Having problems placing random orders on the C++ Demo Application, a fix has been applied to 8.8.3 release download NOW
|
C++ New order placement ( I allways get callback OrderState=4 (ptRejected) )
The reason for the rejection could be due to the new order object not being initialized, once you have initialized the new order object place the order again.
|
How can I send good till *day* orders - the ones that expire with the exchange close? There is no separate Good-Till-Day constants in the header file.
Yes, that is correct. To send a multi-day order you will have to use GTD(Good till date) or GTC(Good till cancel) order types.
|
How do I enable debugging in my code base.
To enable trace logging at the highest level use the method ptEnable(255) or SetDebugFlag(255) depending on what platform you are using. Once enabled a trace file is generated,example name is "PatsDLLTrace_100209_224000_1.Log" which records connection / order processing / market data.
|
In NewOrderSruct how should I use Reference Fields. Do they need to be used in conjunction with Xref and Xrep fields?
Reference field can be used on it's own. It doesn't need to be used in conjunction with Xref or XrefP. I know that the ADK suggests that but
it is not necessary. On point to note is that Reference should not be more than 25 chars.
Miscellaneous
|
Is it possible for the ptGetFill API to return fills for previous days or is it only for the current day? Is there any other way this can be done?
ptGetFill returns today's fills and netted fills. Netted fills are Start of Day(SOD) position from previous days trading. Fills are not available
for historical orders. However, you can get historical order report which is for last 5 days.
|
|