Get historical activity information for each of a user's accounts. The activity information is identical to a request made against the accounts/history call. This call should be used when information is required across multiple accounts, as opposed to making multiple account-based calls.
/v1/user/history
application/xml, application/json, application/javascript
Bearer {access token}
Field | Description |
---|---|
amount | Value of transaction. |
date | Date of event |
type | Type of event that occurred (trade, journal). |
description | Text description of event. |
commission | Commission |
price | Price |
quantity | Quantity |
symbol | Symbol |
trade_type | Security type of the trade (Equity, Option) |
$ curl -H "Authorization: Bearer {accesstoken}" https://api.tradier.com/v1/user/history
GET /v1/user/history HTTP/1.1 Host: api.tradier.com Accept: application/xml Authorization: Bearer 098f6bcd4621d373cade4e832627b4f6 Content-Type: application/x-www-form-urlencoded User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
HTTP/1.1 200 OK Content-Type: application/xml;charset=utf-8 X-Ratelimit-Allowed: 120 X-Ratelimit-Used: 1 X-Ratelimit-Available: 119 X-Ratelimit-Expiry: 1369164360001 <?xml version="1.0" encoding="UTF-8"?> <accounts> <account> <account_number>12345678</account_number> <history> <event> <amount>71.94</amount> <date>2013-08-21T00:00:00Z</date> <type>trade</type> <trade> <commission>3.49</commission> <description>POWERSHARES QQQ ETF</description> <price>75.44</price> <quantity>-1.00000</quantity> <symbol>QQQ</symbol> <trade_type>Equity</trade_type> </trade> </event> <event> <amount>833.97</amount> <date>2013-08-22T00:00:00Z</date> <type>trade</type> <trade> <commission>5.00</commission> <description>CALL FORD MTR CO NEW</description> <price>839.00</price> <quantity>-1.00000</quantity> <symbol>F130921C00008000</symbol> <trade_type>Option</trade_type> </trade> </event> </history> </account> <account> <account_number>87654321</account_number> <history> <event> <amount>71.94</amount> <date>2013-08-21T00:00:00Z</date> <type>trade</type> <trade> <commission>3.49</commission> <description>POWERSHARES QQQ ETF</description> <price>75.44</price> <quantity>-1.00000</quantity> <symbol>QQQ</symbol> <trade_type>Equity</trade_type> </trade> </event> <event> <amount>833.97</amount> <date>2013-08-22T00:00:00Z</date> <type>trade</type> <trade> <commission>5.00</commission> <description>CALL FORD MTR CO NEW</description> <price>839.00</price> <quantity>-1.00000</quantity> <symbol>F130921C00008000</symbol> <trade_type>Option</trade_type> </trade> </event> </history> </account> </accounts>
Tradier Inc. and its corresponding technology services (including API services) are distinct and separate from the services provided by Tradier Brokerage Inc. For more information regarding the services of Tradier, Inc., please contact techsupport@tradier.com. For more information regarding the services of Tradier Brokerage, Inc. please contact service@tradierbrokerage.com. Tradier Brokerage Inc. Member FINRA/SIPC