GET https://api.cryptohopper.com/v1/exchange/{exchange}/{pair}/orderbook/{depth}

Returns the order book of one market on an exchange, up to the requested depth.

Served by a separate service, not by the main API backend, so the response format is not documented here yet. The API gateway checks the access-token before the request reaches that service.

Example request

curl "https://api.cryptohopper.com/v1/exchange/EXCHANGE/PAIR/orderbook/DEPTH" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
exchange string Required Exchange key as returned by Get available exchanges, for example binance or kucoin. Case insensitive.
depth string Required Number of order book levels to return.
pair string Required Market pair, in the exchange's own pair format as returned by Get available markets, for example BTCUSDT on Binance or BTC/USDT on KuCoin.

Response

The response is JSON. An example response for this endpoint is not documented yet.

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.