Coinalyze API (1.0)

  • Authentication is made by API Key. The API Key can be provided either in the header or in the URL as query parameter. The name of the header/query parameter is api_key.
  • Sign In or Sign Up on Coinalyze website then access this page in order to generate your API Key.
  • Rate limit, 40 API calls per minute per API Key. If you reach the rate limit you get a 429 HTTP response. The response include the Retry-After header, and the value tells you how many seconds to wait before making a new API call.
  • All historical data are returned in ascending order.
  • We keep only between 1500 and 2000 datapoints for intraday timeframe/granularity(1 minute till 12 hours), the old data is deleted each day. For daily timeframe/granularity we do not delete the old data.
  • The API is free, if you use the API/data in public places: news articles, blog posts, charts etc. please be kind and cite the data source, add link to Coinalyze website if possible. Thanks!
  • If you find errors, has suggestions you can reach us at [email protected]

Get supported exchanges

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get supported future markets

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get supported spot markets

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get current open interest

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

convert_to_usd
string
Default: "false"
Enum: "true" "false"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get current funding rate

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get current predicted funding rate

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get open interest history

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

interval
required
string
Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily"

Interval/granularity

from
required
integer <int64>

From (inclusive), UNIX timestamp in seconds

to
required
integer <int64>

To (inclusive), UNIX timestamp in seconds

convert_to_usd
string
Default: "false"
Enum: "true" "false"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get funding rate history

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

interval
required
string
Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily"

Interval/granularity

from
required
integer <int64>

From (inclusive), UNIX timestamp in seconds

to
required
integer <int64>

To (inclusive), UNIX timestamp in seconds

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get predicted funding rate history

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

interval
required
string
Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily"

Interval/granularity

from
required
integer <int64>

From (inclusive), UNIX timestamp in seconds

to
required
integer <int64>

To (inclusive), UNIX timestamp in seconds

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get liquidation history

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

interval
required
string
Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily"

Interval/granularity

from
required
integer <int64>

From (inclusive), UNIX timestamp in seconds

to
required
integer <int64>

To (inclusive), UNIX timestamp in seconds

convert_to_usd
string
Default: "false"
Enum: "true" "false"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get long/short ratio history

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

interval
required
string
Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily"

Interval/granularity

from
required
integer <int64>

From (inclusive), UNIX timestamp in seconds

to
required
integer <int64>

To (inclusive), UNIX timestamp in seconds

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get OHLCV history

query Parameters
symbols
required
string
Example: symbols=BTCUSDT_PERP.A,BTCUSD.C

The symbols, comma separated, maximum 20 symbols, each symbol consume one API call

interval
required
string
Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily"

Interval/granularity

from
required
integer <int64>

From (inclusive), UNIX timestamp in seconds

to
required
integer <int64>

To (inclusive), UNIX timestamp in seconds

Responses

Response samples

Content type
application/json
[
  • {
    }
]