Build your application to connect to our investment platform and the 250,000 traders connected to it.
This call will return the most recent orders for the account specified in the URI.
Authentication Required | |
---|---|
Yes | OAuth 1.0a |
URI Parameters | |
id | a valid account number |
format | a response format, default is xml (See Response Structure) |
Example URL | |
https://api.tradeking.com/v1/accounts/12345678/orders.xml |
The response for orders is in FIXML format. Please visit the FIXML page as well as the Trading page for more information.
Please note that account numbers listed in the response for the "Acct" field are given with an additional digit, normally a "2". For using this account field programically, it may be necessary to remove this last number.
GET /v1/accounts/123456878/orders.xml HTTP/1.1
Authorization: OAuth
oauth_consumer_key="672e71387c0a126f4e13296ecfb2b7bc",
oauth_nonce="cfdb7f42de425d94fbc24c11a920c33e",
oauth_signature="Vfm148kAgBZ6azEHqds43aY2UsEg3D",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1306871932",
oauth_token="819682555b63ab8bd90a4138138e7365",
oauth_version="1.0"
Connection: close
Host: api.tradeking.com
<?xml version="1.0" encoding="UTF-8"?>
<response id="77cf30da:12df25c7074:-7e20">
<orderstatus>
<order>
<fixmlmessage><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2"><ExecRpt AvgPx="0" CumQty="0" LeavesQty="1" TmInForce="0" Px="10" Typ="2" Side="1" AcctTyp="2" Acct="12345678" Stat="1" ID="SVI-65454645" OrdID="SVI-456456"><Instrmt Desc="FORD MOTOR COMPANY" SecTyp="CS" Sym="F"/><OrdQty Qty="1"/><FillsGrp FillQty="1" FillPx="0"/></ExecRpt></FIXML>]]></fixmlmessage>
</order>
<order>
<fixmlmessage><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2"><ExecRpt Txt="Due to the additional cost of maintenance on Pink Sheet and OTC-BB securities, we require a minimum purchase of $100 for each trade." TxnTm="2011-02-04T10:48:00.000-05:00" TrdDt="2011-02-04T00:00:00.000-05:00" LeavesQty="0" LastPx="0" LastQty="0" TmInForce="0" Px="0.25" Typ="2" Side="1" AcctTyp="2" Acct="12345678" Stat="8" ID="SVR-4564564" OrdID="SVR-46055395"><Instrmt Desc="GREENLAND MINERALS AND ENERG" SecTyp="CS" Sym="GDLNF"/><OrdQty Qty="10"/></ExecRpt></FIXML>]]></fixmlmessage>
</order>
</orderstatus>
</response>
Any mention of actual symbols are to be used for coding purposes only and do not imply a recommendation or solicitation to buy or sell a particular security or to engage in any particular investment strategy.
At the time of publication and in the preceding month, Credence Global Bank Invest did not have ownership greater than 1% in any stocks mentioned here and does not have any other actual, material conflict of interest known at the time of publication.
Credence Global Bank Invest did not receive compensation from a public offering or from investment banking services related to any companies mentioned here within the past 12 months, or expects to receive any in the next 3 months. Credence Global Bank Invest did not engage in market making in the securities mentioned here.
Credence Global Bank Invest Securities' background can be found at FINRA's BrokerCheck. Options involve risk and are not suitable for all investors.
Review the Characteristics and Risks of Standardized Options brochure before you begin trading options. Options investors may lose the entire amount of their investment in a relatively short period of time.