Documentation

Get time and sales

Get time and sales for a given symbol.

Endpoint

Method
GET
URL
/v1/markets/timesales

Headers

Accept
application/xml, application/json, application/javascript
Default: application/xml
Required: false
Authorization
Bearer {access token}
Required: true

Form Parameters

symbol
The requested symbol
Required: true
interval
The interval of time for timesales pricing
One of tick, 1min, 5min or 15min (default: tick)
Optional: true
start
Start datetime for timesales range represented as YYYY-MM-DD HH:MM
Optional: true
end
End date for timesales range represented as YYYY-MM-DD HH:MM
Optional: true
session_filter
The session conditions to requetst data for.
'all' for all available data points (default)
'open' for data points within open market hours only
Optional: true

Response

Field Description
time Time
price Last price for the time-series interval
volume Total volume for the time-series interval

Example

Command

$ curl -H "Authorization: Bearer {access token}" https://api.tradier.com/v1/markets/timesales?symbol=AAPL

Request

GET /v1/markets/timesales?symbol=AAPL 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

Response

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"?>
<series>
  <data>
    <time>2014-04-03T09:45</time>
    <open>189.03</open>
    <close>189.12</close>
    <high>189.18</high>
    <low>188.865</low>
    <volume>2479490</volume>
  </data>
  <data>
    <time>2014-04-03T10:00</time>
    <open>189.12</open>
    <close>188.94</close>
    <high>189.19</high>
    <low>188.82</low>
    <volume>3214440</volume>
  </data>
  <data>
    <time>2014-04-03T10:15</time>
    <open>188.92</open>
    <close>188.74</close>
    <high>189.03</high>
    <low>188.72</low>
    <volume>2212195</volume>
  </data>

  ...

  <data>
    <time>2014-05-27T15:15</time>
    <open>191.44</open>
    <close>191.44</close>
    <high>191.49</high>
    <low>191.43</low>
    <volume>1706615</volume>
  </data>
  <data>
    <time>2014-05-27T15:30</time>
    <open>191.44</open>
    <close>191.45</close>
    <high>191.45</high>
    <low>191.43</low>
    <volume>177300</volume>
  </data>
</series>

Data Availability

Interval Data Available (Open) Data Available (All)
tick 5 days N/A
1min 20 days 10 days
5min 40 days 18 days
15min 40 days 18 days

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

© 2017 Tradier Inc.
  • 11016 Rushmore Drive, Suite 350
  • Charlotte, NC 28277

All materials contained on this site and specifically the API documentation pages are protected by United States copyright law and may not be copied, reproduced, distributed, transmitted, displayed, published or broadcast without the prior written permission of Tradier Inc. The Structure, Format, Layout, Examples and Design of the pages are owned by Tradier Inc, and any efforts to willfully or accidently duplicate a whole or part of the pages on this site is a violation of United States copyright law.