• Invest: 1-630-413-3309
  • Open 24/7

Credence Global Bank Invest API Documentation

Build your application to connect to our investment platform and the 250,000 traders connected to it.

GET accounts/:id/history{.format}

Description

This call will return account activity for the account number specified in the URI. This call supports optional date range or transaction type filters.

Authentication Required
Yes OAuth 1.0a
URI Parameters
id a valid account number
format a response format, default is xml (See Response Structure)
Query Parameters
range a date range of requested activity, values: all, today, current_week, current_month, last_month
transactions a filter to only show this particular transaction history, values: all, bookkeeping, trade
Example URL
https://api.tradeking.com/v1/accounts/12345678/history.xml

Request Example

GET /v1/accounts/12345678/history.xml?range=all&transactions=all 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

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<response id="77cf30da:12df25c7074:-7e97">
  <transactions>
    <transaction>
      <activity>Trade</activity>
      <amount>1682.05</amount>
      <date>2011-01-10T00:00:00-05:00</date>
      <desc>TEST EQUITY</desc>
      <symbol>ZVZZT</symbol>
      <transaction>
        <accounttype>2</accounttype>
        <commission>0</commission>
        <description>TEST EQUITY</description>
        <fee>0.0</fee>
        <price>1687.04</price>
        <quantity>-1.0</quantity>
        <secfee>0.04</secfee>
        <security>
          <cusip>222222222</cusip>
          <id>22222222</id>
          <sectyp>CS</sectyp>
          <sym>ZVZZT</sym>
        </security>
        <settlementdate>2011-01-13T00:00:00-05:00</settlementdate>
        <side>2</side>
        <source>XCH</source>
        <tradedate>2011-01-10T00:00:00-05:00</tradedate>
        <transactionid>7</transactionid>
      </transaction>
    </transaction>
    <transaction>
      <activity>Dividend</activity>
      <amount>0.42</amount>
      <date>2011-01-25T00:00:00-05:00</date>
      <desc>GENERAL ELECTRIC CO</desc>
      <symbol>GE</symbol>
      <transaction>
        <accounttype>2</accounttype>
        <commission>0.0</commission>
        <description>GENERAL ELECTRIC CO</description>
        <fee>0.0</fee>
        <price>0.0</price>
        <quantity>3.0</quantity>
        <secfee>0.0</secfee>
        <security>
          <cusip>369604103</cusip>
          <id>36960410</id>
          <sectyp>CS</sectyp>
          <sym>GE</sym>
        </security>
        <source>DIV</source>
        <tradedate>2011-01-25T00:00:00-05:00</tradedate>
        <transactionid>7</transactionid>
        <transactiontype>Qualified Dividend</transactiontype>
      </transaction>
    </transaction>
    <transaction>
      <activity>Bookkeeping</activity>
      <amount>1079.11</amount>
      <date>2010-12-15T00:00:00-05:00</date>
      <desc>FR 38842969</desc>
      <transaction>
        <accounttype>1</accounttype>
        <commission>0.0</commission>
        <description>FR 38842969</description>
        <fee>0.0</fee>
        <price>0.0</price>
        <quantity>0.0</quantity>
        <secfee>0.0</secfee>
        <security>
          <sectyp>OTHER</sectyp>
        </security>
        <source>JNL</source>
        <tradedate>2010-12-15T00:00:00-05:00</tradedate>
        <transactionid>7</transactionid>
        <transactiontype>Cash Journal</transactiontype>
      </transaction>
    </transaction>
  </transactions>
</response>
Disclaimer:

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.