| |
|
 |
|
|
ASXData is a subscription service that enables an authorised client
to retrieve ASX information such as stock prices, index values,
news, etc from our realtime or 20-min delayed databases.
webtrade.net.au can deliver this information
in the following ways:
|
|
|
|
| |
- An XML response to a HTTP POST request.
- A TEXT response to a HTTP POST request.
We can also provide a Java client called ASXData which retrieves
and output the data to a CSV file.
Pricing
Please contact us for sales information.
Purchase
- Obtain the ip address of your computer by
clicking here.
- Inform us of your ip address, ASX data such
as stock price and data type(realtime or delayed). We will require
some payment details from you.
- Webtrade will contact you when your subscription
is ready and issue you with an authorised client id and request
id.
XML Usage
To retrieve stock prices from our database in XML format, post a HTTP
request as follows:
http://www.webtrade.net.au/servlet/ASXData?clientid=ClientId&ReqId=RequestId&format=xml
The XML response contains (ContentType =
text/xml):
<?xml version="1.0" encoding="UTF-8"?>
<webtrade ReqId="ReqId">
<Price>
REPEAT:
<Stock></Stock>
<Value></Value>
<Change></Change>
</Price>
</webtrade>
eg:
<?xml version="1.0" encoding="UTF-8"?>
<webtrade ReqId="subscr2">
<Price>
<Stock>CBA</Stock>
<Value>31.56</Value>
<Change>-0.48</Change>
<Stock>XAO</Stock>
<Value>2993.7</Value>
<Change>10.5</Change>
</Price>
</webtrade>
Error messages can occur anywhere in the
XML response, for example:
<?xml version="1.0" encoding="UTF-8"?>
<webtrade ReqId="xyz">
<Price>
<ErrorMsg>Stock code ERGX not found in database</ErrorMsg>
<Stock>XAO</Stock>
<Value>2993.7</Value>
<Change>10.5</Change>
</Price>
</webtrade>
Stock price after market has closed will
be the last trade price of the day. Change is the difference between
the last trade price and the close price.
TEXT Usage
To retrieve stock prices from our database in TEXT format, post a
HTTP request as follows:
http://www.webtrade.net.au/servlet/ASXData?clientid=ClientId&reqid=RequestId&format=text
The TEXT response contains (ContentType
= text/plain):
stock/index code, value, change_since_close
eg. BHP,9.85,-0.12 or ERG,0.175,+0.21
Error messages can occur anywhere in the
TEXT response, for example:
BHP,9.85,-0.12
Error: Stock code NCPX not found in database
ERG,0.175,+0.21
Stock price after market has closed will
be the last trade price of the day. Change is the difference between
the last trade price and the close price.
ASXData Java Client Usage
- Download the Java runtime if it is not already
installed here.
- Download our ASXData Java Client here.
- Unzip to C:\ASXData. This will create a
directory C:\ASXData containing ASXData.class.
- You should start ASXData on a 20min
mark eg. 9:00 or 9:20 or 9:40. Thereafter, it checks for data
every 20mins.
java ASXData <ClientId> <RequestId> <xml|text> <OutputCsvFile>
eg.
java ASXData MIM subscr3 text price.txt
- The data is written into the CSV file
for example:
stock/index code, value, change_since_close eg. BHP,9.85,-0.12
Stock price after market has closed will
be the last trade price of the day. Change is the difference between
the last trade price and the close price. |
|
|
|
| |
|
webtrade.net.au Pty Ltd ABN:
19 073 922 460 Tel:(03)
9585 8100 |
|
|
|