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

ParameterPresenceDescription
exchangeRequiredExchange identifier, for example Bitstamp.
currencyRequiredQuote currency code, for example usd or eur. Use a currency supported for the coin and exchange.
coinOptionalCoin 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&currency=usd&coin=btc'

Response fields

  • buy and sell are the bid and ask. They, high, low, volume and last are numbers or null.
  • change and change24 are the same numeric change in the bid–ask midpoint. Both are 0 when the earlier snapshot is unavailable.
  • live is 1 for exchanges with real-time trades and 0 otherwise.
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&currency=usd&coin=btc'

Response fields

  • type is the stored order side, typically bid or ask. price and amount are decimal strings.
  • The endpoint looks up currency as 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

ParameterPresenceDescription
termRequiredChart time range. Use 10min, 1h, 3h, 12h, 24h, 1w, 1m, 3m, 6m, 1y, 2y, 5y or 10y. The suffix m denotes months.
aggrOptionalUse min, hour, day or week for one candle per stored interval. Omit this parameter to let the server choose the aggregation.
screenOptionalScreen size preset. Use h, m or l. Defaults to m. Applies to automatic aggregation.
shortOptionalUse 1 for compact point keys. Defaults to 0.

Example request

curl 'https://rest.bitcoinstat.org/api_v3/chart/candleStick?exchange=Bitstamp&currency=usd&coin=btc&term=24h&aggr=hour'

Response fields

  • ticker carries the quote fields, timestamp, change, change24, started and live.
  • Each candle has numeric fields. min, max, start and end are low, high, open and close. market is the traded amount.
  • With short=1, use t for timestamp, mn for low, mx for high, s for open, e for close and m for 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

ParameterPresenceDescription
termRequiredChart time range. Use 10min, 1h, 3h, 12h, 24h, 1w, 1m, 3m, 6m, 1y, 2y, 5y or 10y. The suffix m denotes months.
shortOptionalUse 1 for compact point keys. Defaults to 0.

Example request

curl 'https://rest.bitcoinstat.org/api_v3/chart?exchange=Bitstamp&currency=usd&coin=btc&term=24h'

Response fields

  • source is trades for volume-weighted trade prices or ticker for bid–ask midpoints. market is the traded amount for trade points and 0 for ticker points.
  • info.change is the change over the chart window. info.change24 is the change over 24 hours.
  • With short=1, use t for timestamp, p for price, m for traded amount, h for high and l for 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

ParameterPresenceDescription
termRequiredChart time range. Use 10min, 1h, 3h, 12h, 24h, 1w, 1m, 3m, 6m, 1y, 2y, 5y or 10y. The suffix m denotes months.
aggrOptionalUse min, hour, day or week for one candle per stored interval. Omit this parameter to let the server choose the aggregation.
screenOptionalScreen size preset. Use h, m or l. Defaults to m. Applies to automatic aggregation.
shortOptionalUse 1 for compact point keys. Defaults to 0.
daysRequiredMoving average period in days. Use an integer from 2 to 1400.
typeOptionalUse 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&currency=usd&coin=btc&term=24h&aggr=hour&days=20'

Response fields

  • chart contains numeric timestamp and value fields. With short=1, these keys become t and v.
  • Keep term, aggr and screen the 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

ParameterPresenceDescription
termRequiredTime 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&currency=usd&coin=btc&term=24h'

Response fields

  • ticker returns prices and volume as strings or null. timestamp and change are strings. live is 0 or 1.
  • Levels are sorted by price in ascending order. price and count are decimal strings. count is the cumulative amount from the last price outwards. side is bid or ask.
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"
}