Bitcoin Ticker Market Data API
Read crypto prices, exchange order books, OHLC candles and historical charts through Bitcoin Ticker’s v3 API.
Base URL https://rest.bitcoinstat.org/api_v3
Requests and responses
Send GET with query parameters or POST with a form-encoded body. When a parameter appears in both, the form value takes precedence.
Parameters shared by all endpoints
| Parameter | Presence | Description |
|---|---|---|
exchange | Required | Exchange identifier, for example Bitstamp. |
currency | Required | Quote currency code, for example usd or eur. Use a currency supported for the coin and exchange. |
coin | Optional | Coin code. Defaults to btc. |
JSON response envelope
Handled requests return HTTP 200. Read the JSON code for the outcome. Success returns request, data, code: 200 and status: "Success". Errors return 400 for validation, 404 for unavailable pairs or data, or 500 for server errors. The response may include message and field-level errors.
{
"request": "chart",
"message": "Validation error",
"errors": { "term": ["The Term field is required"] },
"code": 400,
"status": "Bad Request"
}
updated is a UTC string in YYYY-MM-DD HH:mm:ss format. timestamp is Unix time in seconds. The depth chart returns its ticker timestamp as a string. When present, started is the date of the first collected ticker or trade and can be empty.
Ticker snapshot
/ticker
Returns the latest quote and the 24-hour change for one exchange, coin and quote currency.
Example request
curl 'https://rest.bitcoinstat.org/api_v3/ticker?exchange=Bitstamp¤cy=usd&coin=btc'
Response fields
buyandsellare the bid and ask. They,high,low,volumeandlastare numbers ornull.changeandchange24are the same numeric change in the bid–ask midpoint. Both are0when the earlier snapshot is unavailable.liveis1for exchanges with real-time trades and0otherwise.
Example JSON
{
"request": "ticker",
"data": {
"buy": 86104.3,
"sell": 86104.4,
"high": 86697.4,
"low": 84973.4,
"volume": 1247.73,
"last": 86104.4,
"updated": "2026-10-06 12:30:58",
"change": 171.8,
"change24": 171.8,
"live": 1
},
"code": 200,
"status": "Success"
}
Order book
/orderbook
Returns the latest stored snapshot of market orders for the pair, in collection order.
Example request
curl 'https://rest.bitcoinstat.org/api_v3/orderbook?exchange=Bitstamp¤cy=usd&coin=btc'
Response fields
typeis the stored order side, typicallybidorask.priceandamountare decimal strings.- The endpoint looks up
currencyas supplied and returns the stored prices.
Example JSON
{
"request": "orderbook",
"data": [
{
"type": "bid",
"price": "86104.3",
"amount": "0.25"
},
{
"type": "ask",
"price": "86104.4",
"amount": "0.18"
}
],
"code": 200,
"status": "Success"
}
Candlestick chart
/chart/candleStick
Returns OHLC candles for a selected time range, with a ticker summary.
Additional parameters
| Parameter | Presence | Description |
|---|---|---|
term | Required | Chart time range. Use 10min, 1h, 3h, 12h, 24h, 1w, 1m, 3m, 6m, 1y, 2y, 5y or 10y. The suffix m denotes months. |
aggr | Optional | Use min, hour, day or week for one candle per stored interval. Omit this parameter to let the server choose the aggregation. |
screen | Optional | Screen size preset. Use h, m or l. Defaults to m. Applies to automatic aggregation. |
short | Optional | Use 1 for compact point keys. Defaults to 0. |
Example request
curl 'https://rest.bitcoinstat.org/api_v3/chart/candleStick?exchange=Bitstamp¤cy=usd&coin=btc&term=24h&aggr=hour'
Open candlestick chart response
Response fields
tickercarries the quote fields,timestamp,change,change24,startedandlive.- Each candle has numeric fields.
min,max,startandendare low, high, open and close.marketis the traded amount. - With
short=1, usetfor timestamp,mnfor low,mxfor high,sfor open,efor close andmfor traded amount.
Example JSON
{
"request": "candleStick",
"data": {
"ticker": {
"buy": 86104.3,
"sell": 86104.4,
"high": 86697.4,
"low": 84973.4,
"volume": 1247.73,
"last": 86104.4,
"updated": "2026-10-06 12:30:58",
"timestamp": 1791289858,
"change": 110.9,
"change24": 171.8,
"started": "2011-09-13",
"live": 1
},
"chart": [
{
"timestamp": 1791205200,
"min": 85824.1,
"max": 86003.5,
"start": 85993.5,
"end": 85857.9,
"market": 17.96
}
]
},
"code": 200,
"status": "Success"
}
Historical line chart
/chart
Returns price history for an active market, with the exchange, currency and a ticker summary.
Additional parameters
| Parameter | Presence | Description |
|---|---|---|
term | Required | Chart time range. Use 10min, 1h, 3h, 12h, 24h, 1w, 1m, 3m, 6m, 1y, 2y, 5y or 10y. The suffix m denotes months. |
short | Optional | Use 1 for compact point keys. Defaults to 0. |
Example request
curl 'https://rest.bitcoinstat.org/api_v3/chart?exchange=Bitstamp¤cy=usd&coin=btc&term=24h'
Open historical line chart response
Response fields
sourceistradesfor volume-weighted trade prices ortickerfor bid–ask midpoints.marketis the traded amount for trade points and0for ticker points.info.changeis the change over the chart window.info.change24is the change over 24 hours.- With
short=1, usetfor timestamp,pfor price,mfor traded amount,hfor high andlfor low.
Example JSON
{
"request": "chart",
"data": {
"exchange": "Bitstamp",
"currency": "usd",
"source": "trades",
"info": {
"buy": 86104.3,
"sell": 86104.4,
"high": 86697.4,
"low": 84973.4,
"volume": 1247.73,
"last": 86104.4,
"updated": "2026-10-06 12:30:58",
"timestamp": 1791289858,
"change": 112.8,
"change24": 171.8,
"started": "2011-09-13"
},
"chart": [
{
"timestamp": 1791203520,
"price": 85991.6,
"market": 0,
"high": 85991.6,
"low": 85991.6
}
]
},
"code": 200,
"status": "Success"
}
Moving average
/chart/movingAverage
Returns a moving average of daily closes with points aligned to the matching candlestick chart.
Additional parameters
| Parameter | Presence | Description |
|---|---|---|
term | Required | Chart time range. Use 10min, 1h, 3h, 12h, 24h, 1w, 1m, 3m, 6m, 1y, 2y, 5y or 10y. The suffix m denotes months. |
aggr | Optional | Use min, hour, day or week for one candle per stored interval. Omit this parameter to let the server choose the aggregation. |
screen | Optional | Screen size preset. Use h, m or l. Defaults to m. Applies to automatic aggregation. |
short | Optional | Use 1 for compact point keys. Defaults to 0. |
days | Required | Moving average period in days. Use an integer from 2 to 1400. |
type | Optional | Use sma for a simple moving average or ema for an exponential moving average. Defaults to sma. |
Example request
curl 'https://rest.bitcoinstat.org/api_v3/chart/movingAverage?exchange=Bitstamp¤cy=usd&coin=btc&term=24h&aggr=hour&days=20'
Response fields
chartcontains numerictimestampandvaluefields. Withshort=1, these keys becometandv.- Keep
term,aggrandscreenthe same as in the candlestick request to align points. A point is returned where the market has sufficient price history.
Example JSON
{
"request": "movingAverage",
"data": {
"exchange": "Bitstamp",
"currency": "usd",
"days": 20,
"type": "sma",
"chart": [
{
"timestamp": 1791205200,
"value": 85912.3
}
]
},
"code": 200,
"status": "Success"
}
Order book depth chart
/chart/orderSpread
Returns cumulative order book depth within 20% of the last price on each side, with a ticker summary.
Additional parameters
| Parameter | Presence | Description |
|---|---|---|
term | Required | Time range for ticker.change. Uses the same values as the line chart. |
Example request
curl 'https://rest.bitcoinstat.org/api_v3/chart/orderSpread?exchange=Bitstamp¤cy=usd&coin=btc&term=24h'
Open order book depth chart response
Response fields
tickerreturns prices and volume as strings ornull.timestampandchangeare strings.liveis0or1.- Levels are sorted by price in ascending order.
priceandcountare decimal strings.countis the cumulative amount from the last price outwards.sideisbidorask.
Example JSON
{
"request": "orderSpread",
"data": {
"ticker": {
"buy": "86104.35000000",
"sell": "86104.36000000",
"high": "86697.37000000",
"low": "84973.36000000",
"volume": "1247.72901851",
"last": "86104.35000000",
"updated": "2026-10-06 12:30:58",
"timestamp": "1791289858",
"started": "2011-09-13",
"change": "171.82954683353",
"live": 1
},
"chart": [
{
"price": "86000",
"count": "2.25",
"side": "bid"
}
]
},
"code": 200,
"status": "Success"
}