Request historical candles, volume footprint and TPO profiles and the security catalog over REST, and subscribe to live candles, footprint profiles and order books over WebSocket. One key in one header works for both.
What you can do
Trading
Candles
Volume footprint
TPO profiles
Order book
Indicators
Securities
One key for both
x-api-key header on every request and on the WebSocket handshake.Three APIs, one account
Trading API
https://public-api.charting.com/api/v1/tradingOrders and positions over REST, your account’s orders, fills and balances live over WebSocket. Every request is signed.Market Data API
https://public-api.takeprofit.com/api/v1/marketdataCandles, footprint, TPO and securities over REST, live candles, footprint and order books over WebSocket.Indicators API
https://public-api.takeprofit.com/api/v1/indicatorsBuilt-in and your own indicators computed on our data, as history over REST and live values over WebSocket.From key to live market data
- Step 1 of 4Create an API key
In Settings, create a personal API token on a paid plan and copy it once: the full key is shown a single time.
- Step 2 of 4Find the security
Search by name or ticker and take the exchange and symbol pair from the hit. Every other endpoint speaks that pair.
- Step 3 of 4Load history
Ask for candles, footprint or TPO profiles over a range. Prices and volumes come as decimal strings, so nothing is rounded on the way.
- Step 4 of 4Go live
Open a WebSocket connection with the same key in the handshake header and keep the picture up to date as the market moves.
Good to know
- One header, both protocols.
x-api-keyauthenticates REST requests and the WebSocket upgrade alike. Exactly one value is accepted. - Securities are identified by exchange and symbol. Take them from the Securities endpoints.
- Unknown query parameters are rejected with
400, so a typo fails loudly instead of being ignored. - Personal, non-commercial use only. Redistribution or resale of the data is not permitted, and commercial licensing is not available at this time. See Usage terms.
- Usage is metered in credits, per account. REST gets 100,000 credits per 60 seconds, shared by all your keys, and every request costs at least 1,000, so up to 100 requests a minute. Streams draw on a separate 1,000 credits per 300 seconds. Prices and limits are in Credits and limits.