Patsystems Devzone
Developer Zone
FAQs - Contents
Filter Title 
Filter Content 
Display # 
 
Toggle all descriptions Collapse all descriptions
General top
Can I call someone to discuss an issue?

API Tech is email only support. We do not provide phone support.

Can i delete my post from Forum?

You can't delete any posts from Forum. Please email request to API Tech to delete your post.

How can I get API DLLs?

Latest API versions are available from the Download section. It includes the developer's guide(ADK), release note and DEMO apps.

What is your response times to emails?

API Tech email box is monitored 09:00 - 17:30 between Mon-Fri. Our turn around time is 24 hours.

Which OS is supported?

API DLLs are supported on Windows XP, Vista and 2000. Unix and Linux are currently not supported.

Which programming languages can I use to develop against your API?

You can choose any programming language. API DLLs are compatible on Windows OS. There are DEMO apps available in C++, C# and Java

Login top
I'm unable to logon. I get error message "unknown application?

Your user name has not been set up with the correct access. Please contact our GSD group.

During login I get error "Invalid login, user already logged in"

Your application didn't logout properly before exiting. Please ensure that you call ptLogoff function and it returned successfully.

Contact GSD group to do force logout.

How can I get access to test system?

Send a request to our GSD group online. Once your account has been created it will appear in your details section.

I can't connect to Host or Price IP addresses.

Please check that you can telnet those IP addresses. Your firewall may be blocking those IP addresses.

My host and price connection keeps disconnecting.

The price feed and host feed have a handshake method to keep the connection alive.
Use ptSetHostHandShake and ptSetPriceHandShake to set the communication timeouts, for more informtion refer to your API ADK.

Miscellanous top
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.

Prices and Orders top
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.