### Get Supported Spot Markets - API Request Example Source: https://api.coinalyze.net/v1/doc/index This snippet illustrates how to retrieve a list of supported spot markets. An API key is necessary for authentication. The API returns a JSON array with details for each spot market, including symbols, exchange, and asset information. ```bash curl -X GET "https://api.coinalyze.net/v1/spot-markets?api_key=YOUR_API_KEY" \ -H "accept: application/json" ``` -------------------------------- ### Get Supported Future Markets - API Request Example Source: https://api.coinalyze.net/v1/doc/index This snippet shows how to fetch a list of supported future markets. Authentication is handled via an API key. The response is a JSON array detailing each market's symbol, exchange, assets, and data availability. ```bash curl -X GET "https://api.coinalyze.net/v1/future-markets?api_key=YOUR_API_KEY" \ -H "accept: application/json" ``` -------------------------------- ### Get Supported Exchanges - API Request Example Source: https://api.coinalyze.net/v1/doc/index This snippet demonstrates how to make an API call to retrieve a list of supported exchanges. It requires an API key for authentication, which can be passed in the header or as a query parameter. The response is a JSON array of exchange objects, each containing a name and code. ```bash curl -X GET "https://api.coinalyze.net/v1/exchanges?api_key=YOUR_API_KEY" \ -H "accept: application/json" ``` -------------------------------- ### Get Current Open Interest - API Request Example Source: https://api.coinalyze.net/v1/doc/index This snippet demonstrates how to query the current open interest for specified cryptocurrency symbols. It requires an API key and accepts a comma-separated list of symbols. An optional parameter `convert_to_usd` can be used to convert the values to USD. The response includes the symbol, its open interest value, and the last update timestamp. ```bash curl -X GET "https://api.coinalyze.net/v1/open-interest?symbols=BTCUSDT_PERP.A,ETHUSDT_PERP.B&api_key=YOUR_API_KEY" \ -H "accept: application/json" ``` -------------------------------- ### Get Current Funding Rate - API Request Example Source: https://api.coinalyze.net/v1/doc/index This snippet shows how to retrieve the current funding rates for specified future market symbols. It requires an API key and accepts a comma-separated list of symbols. The response provides the symbol, its funding rate value, and the last update timestamp. ```bash curl -X GET "https://api.coinalyze.net/v1/funding-rate?symbols=BTCUSDT_PERP.A,ETHUSDT_PERP.B&api_key=YOUR_API_KEY" \ -H "accept: application/json" ``` -------------------------------- ### Get Current Predicted Funding Rate - API Request Example Source: https://api.coinalyze.net/v1/doc/index This snippet demonstrates how to fetch the predicted funding rates for given future market symbols. An API key is required, and symbols can be provided as a comma-separated string. The response includes the symbol, its predicted funding rate, and the update timestamp. ```bash curl -X GET "https://api.coinalyze.net/v1/predicted-funding-rate?symbols=BTCUSDT_PERP.A,ETHUSDT_PERP.B&api_key=YOUR_API_KEY" \ -H "accept: application/json" ``` -------------------------------- ### GET /exchanges Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves a list of all supported cryptocurrency exchanges. ```APIDOC ## GET /exchanges ### Description Retrieves a list of all supported cryptocurrency exchanges. ### Method GET ### Endpoint /exchanges ### Parameters #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **name** (string) - The name of the exchange. - **code** (string) - The unique code identifier for the exchange. #### Response Example ```json [ { "name": "Binance", "code": "binance" }, { "name": "Coinbase Pro", "code": "coinbasepro" } ] ``` #### Error Responses - **401**: Invalid/missing API key. - **429**: Too many requests. - **500**: Server error. ``` -------------------------------- ### GET /spot-markets Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves a list of all supported spot markets across different exchanges. ```APIDOC ## GET /spot-markets ### Description Retrieves a list of all supported spot markets across different exchanges. ### Method GET ### Endpoint /spot-markets ### Parameters #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **symbol** (string) - The market symbol (e.g., BTC-USDT). - **exchange** (string) - The exchange code where the market is listed. - **symbol_on_exchange** (string) - The specific symbol/code used on the exchange. - **base_asset** (string) - The base asset of the trading pair. - **quote_asset** (string) - The quote asset of the trading pair. - **has_buy_sell_data** (boolean) - Indicates if buy/sell volume and trade count data is available. #### Response Example ```json [ { "symbol": "BTC-USDT", "exchange": "binance", "symbol_on_exchange": "BTCUSDT", "base_asset": "BTC", "quote_asset": "USDT", "has_buy_sell_data": true }, { "symbol": "ETH-BTC", "exchange": "kraken", "symbol_on_exchange": "ETHBTC", "base_asset": "ETH", "quote_asset": "BTC", "has_buy_sell_data": false } ] ``` #### Error Responses - **401**: Invalid/missing API key. - **429**: Too many requests. - **500**: Server error. ``` -------------------------------- ### GET /funding-rate Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the current funding rate for specified cryptocurrency symbols. ```APIDOC ## GET /funding-rate ### Description Retrieves the current funding rate for specified cryptocurrency symbols. ### Method GET ### Endpoint /funding-rate ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: "BTCUSDT_PERP.A,BTCUSD_PERP.0" ### Response #### Success Response (200) - **funding_rate** (array) - An array of funding rate data objects. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP.A", "funding_rate": 0.0001, "timestamp": 1678886400000 } ] ``` ``` -------------------------------- ### GET /future-markets Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves a list of all supported future markets across different exchanges. ```APIDOC ## GET /future-markets ### Description Retrieves a list of all supported future markets across different exchanges. ### Method GET ### Endpoint /future-markets ### Parameters #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **symbol** (string) - The market symbol (e.g., BTC-USDT). - **exchange** (string) - The exchange code where the market is listed. - **symbol_on_exchange** (string) - The specific symbol/code used on the exchange. - **base_asset** (string) - The base asset of the trading pair. - **quote_asset** (string) - The quote asset of the trading pair. - **has_buy_sell_data** (boolean) - Indicates if buy/sell volume and trade count data is available. #### Response Example ```json [ { "symbol": "BTC-USDT", "exchange": "binance", "symbol_on_exchange": "BTCUSDT", "base_asset": "BTC", "quote_asset": "USDT", "has_buy_sell_data": true }, { "symbol": "ETH-USD", "exchange": "kraken", "symbol_on_exchange": "ETHUSD", "base_asset": "ETH", "quote_asset": "USD", "has_buy_sell_data": false } ] ``` #### Error Responses - **401**: Invalid/missing API key. - **429**: Too many requests. - **500**: Server error. ``` -------------------------------- ### Get Supported Spot Markets Source: https://api.coinalyze.net/v1/doc/index Retrieves a list of all supported cryptocurrency spot markets. ```APIDOC ## GET /v1/spot-markets ### Description Retrieves a list of all supported cryptocurrency spot markets. ### Method GET ### Endpoint https://api.coinalyze.net/v1/spot-markets ### Parameters #### Query Parameters - **api_key** (string) - Required - Your Coinalyze API key. ### Response #### Success Response (200) - **symbol** (string) - The trading symbol for the spot market. - **exchange** (string) - The exchange where the market is listed. - **symbol_on_exchange** (string) - The symbol as it appears on the exchange. - **base_asset** (string) - The base asset of the trading pair. - **quote_asset** (string) - The quote asset of the trading pair. - **has_buy_sell_data** (boolean) - Indicates if buy/sell data is available. #### Response Example ```json [ { "symbol": "BTCUSDT", "exchange": "BINANCE", "symbol_on_exchange": "BTC/USDT", "base_asset": "BTC", "quote_asset": "USDT", "has_buy_sell_data": true } ] ``` ``` -------------------------------- ### Get Supported Exchanges Source: https://api.coinalyze.net/v1/doc/index Retrieves a list of all supported cryptocurrency exchanges. ```APIDOC ## GET /v1/exchanges ### Description Retrieves a list of all supported cryptocurrency exchanges. ### Method GET ### Endpoint https://api.coinalyze.net/v1/exchanges ### Parameters #### Query Parameters - **api_key** (string) - Required - Your Coinalyze API key. ### Response #### Success Response (200) - **name** (string) - The name of the exchange. - **code** (string) - The unique code for the exchange. #### Response Example ```json [ { "name": "Binance", "code": "BINANCE" } ] ``` ``` -------------------------------- ### GET /funding-rate-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves historical funding rate data for specified cryptocurrency symbols and time intervals. ```APIDOC ## GET /funding-rate-history ### Description Retrieves historical funding rate data for specified cryptocurrency symbols and time intervals. ### Method GET ### Endpoint /funding-rate-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: "BTCUSDT_PERP.A,BTCUSD_PERP.0" - **interval** (string) - Required - Interval/granularity. Enum: ["1min", "5min", "15min", "30min", "1hour", "2hour", "4hour", "6hour", "12hour", "daily"] - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds ### Request Example ```json { "symbols": "BTCUSDT_PERP.A,BTCUSD_PERP.0", "interval": "1hour", "from": 1678886400 } ``` ### Response #### Success Response (200) - **funding_rate_history** (array) - An array of funding rate history objects. #### Response Example ```json { "example": "[{"symbol": "BTCUSDT_PERP.A", "timestamp": 1678886400, "funding_rate": 0.0001, "estimated_rate": 0.00005}]" } ``` ``` -------------------------------- ### GET /open-interest Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the current open interest for specified cryptocurrency symbols. Supports conversion to USD. ```APIDOC ## GET /open-interest ### Description Retrieves the current open interest for specified cryptocurrency symbols. Supports conversion to USD. ### Method GET ### Endpoint /open-interest ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: "BTCUSDT_PERP.A,BTCUSD_PERP.0" - **convert_to_usd** (string) - Optional - Converts the values to USD. Enum: ["true", "false"]. Default: "false" ### Response #### Success Response (200) - **open_interest** (array) - An array of open interest data objects. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP.A", "open_interest": 12345.67, "timestamp": 1678886400000 } ] ``` ``` -------------------------------- ### Get Supported Future Markets Source: https://api.coinalyze.net/v1/doc/index Retrieves a list of all supported cryptocurrency future markets. ```APIDOC ## GET /v1/future-markets ### Description Retrieves a list of all supported cryptocurrency future markets. ### Method GET ### Endpoint https://api.coinalyze.net/v1/future-markets ### Parameters #### Query Parameters - **api_key** (string) - Required - Your Coinalyze API key. ### Response #### Success Response (200) - **symbol** (string) - The trading symbol for the future market. - **exchange** (string) - The exchange where the market is listed. - **symbol_on_exchange** (string) - The symbol as it appears on the exchange. - **base_asset** (string) - The base asset of the trading pair. - **quote_asset** (string) - The quote asset of the trading pair. - **is_perpetual** (boolean) - Indicates if the contract is perpetual. - **margined** (string) - Type of margin (e.g., "STABLE"). - **expire_at** (integer) - Expiration timestamp (0 if not applicable). - **oi_lq_vol_denominated_in** (string) - Denomination currency for open interest and liquidity volume. - **has_long_short_ratio_data** (boolean) - Indicates if long/short ratio data is available. - **has_ohlcv_data** (boolean) - Indicates if OHLCV data is available. - **has_buy_sell_data** (boolean) - Indicates if buy/sell data is available. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP", "exchange": "BINANCE", "symbol_on_exchange": "BTCUSDT", "base_asset": "BTC", "quote_asset": "USDT", "is_perpetual": true, "margined": "STABLE", "expire_at": 0, "oi_lq_vol_denominated_in": "BASE_ASSET", "has_long_short_ratio_data": true, "has_ohlcv_data": true, "has_buy_sell_data": true } ] ``` ``` -------------------------------- ### GET /v1/funding-rate-history Source: https://api.coinalyze.net/v1/doc/index Retrieves historical funding rate data for specified symbols and intervals. ```APIDOC ## GET /v1/funding-rate-history ### Description Retrieves historical funding rate data for specified symbols and intervals. ### Method GET ### Endpoint https://api.coinalyze.net/v1/funding-rate-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0 - **interval** (string) - Required - Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily" - Interval/granularity - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of historical data points. - **t** (integer) - Timestamp. - **o** (number) - Funding rate value. - **h** (number) - High value. - **l** (number) - Low value. - **c** (number) - Close value. #### Response Example (200) ```json [ { "symbol": "string", "history": [ { "t": 0, "o": 0, "h": 0, "l": 0, "c": 0 } ] } ] ``` #### Error Responses - **400** Bad parameter(s). - **401** Invalid/missing API key. - **429** Too many requests. - **500** Server error. ``` -------------------------------- ### GET /liquidation-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves liquidation history data for specified symbols. This endpoint is valuable for analyzing market liquidations and their impact. ```APIDOC ## GET /liquidation-history ### Description Retrieves liquidation history data for specified symbols. This endpoint is valuable for analyzing market liquidations and their impact. ### Method GET ### Endpoint /liquidation-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. ### Response #### Success Response (200) - **liquidation_history** (array) - An array of liquidation history objects. #### Response Example { "example": "[{"symbol": "BTCUSDT", "side": "LONG", "amount": "100000", "price": "20000", "timestamp": 1678886400000}]" } ``` -------------------------------- ### Get Current Open Interest Source: https://api.coinalyze.net/v1/doc/index Retrieves the current open interest for specified symbols. ```APIDOC ## GET /v1/open-interest ### Description Retrieves the current open interest for specified cryptocurrency future markets. ### Method GET ### Endpoint https://api.coinalyze.net/v1/open-interest ### Parameters #### Query Parameters - **api_key** (string) - Required - Your Coinalyze API key. - **symbols** (string) - Required - Comma-separated list of symbols (max 20). Example: `BTCUSDT_PERP.A,BTCUSD_PERP.0`. - **convert_to_usd** (string) - Optional - Set to `true` to convert open interest to USD. Defaults to `false`. ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **value** (number) - The current open interest value. - **update** (integer) - Timestamp of the last update. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP", "value": 1500000000, "update": 1678886400 } ] ``` ``` -------------------------------- ### GET /v1/liquidation-history Source: https://api.coinalyze.net/v1/doc/index Retrieves historical liquidation data for specified symbols and intervals. Supports conversion to USD. ```APIDOC ## GET /v1/liquidation-history ### Description Retrieves historical liquidation data for specified symbols and intervals. Supports conversion to USD. ### Method GET ### Endpoint https://api.coinalyze.net/v1/liquidation-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0 - **interval** (string) - Required - Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily" - Interval/granularity - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds - **convert_to_usd** (string) - Optional - Default: "false" - Enum: "true" "false" ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of historical data points. - **t** (integer) - Timestamp. - **l** (number) - Liquidation value. - **s** (number) - Size value. #### Response Example (200) ```json [ { "symbol": "string", "history": [ { "t": 0, "l": 0, "s": 0 } ] } ] ``` #### Error Responses - **400** Bad parameter(s). - **401** Invalid/missing API key. - **429** Too many requests. - **500** Server error. ``` -------------------------------- ### GET /ohlcv-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves historical OHLCV (Open, High, Low, Close, Volume) data for specified cryptocurrency symbols and time intervals. ```APIDOC ## GET /ohlcv-history ### Description Retrieves historical OHLCV (Open, High, Low, Close, Volume) data for specified cryptocurrency symbols and time intervals. ### Method GET ### Endpoint /ohlcv-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call - **interval** (string) - Required - Interval/granularity. Enum: ["1min", "5min", "15min", "30min", "1hour", "2hour", "4hour", "6hour", "12hour", "daily"] - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds ### Request Example ```json { "symbols": "BTCUSDT_PERP.A,BTCUSD.C", "interval": "1hour", "from": 1678886400, "to": 1678972800 } ``` ### Response #### Success Response (200) - **ohlcv_history** (array) - An array of OHLCV data objects. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP.A", "open": "25000.00", "high": "25500.00", "low": "24800.00", "close": "25200.00", "volume": "1000.00", "timestamp": 1678886400 } ] ``` ``` -------------------------------- ### GET /predicted-funding-rate Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the predicted funding rate for a given symbol. This provides an estimation of the upcoming funding rate. ```APIDOC ## GET /predicted-funding-rate ### Description Retrieves the predicted funding rate for a given symbol. This provides an estimation of the upcoming funding rate. ### Method GET ### Endpoint /predicted-funding-rate ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). ### Request Example ``` GET /predicted-funding-rate?symbol=BTCUSD ``` ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **value** (number) - Current predicted funding rate in percent. - **update** (integer) - UNIX timestamp in milliseconds when the data was last updated. #### Response Example ```json { "symbol": "BTCUSD", "value": 0.04, "update": 1678886400000 } ``` ``` -------------------------------- ### GET /funding-rate-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the historical funding rate data for a given symbol. This endpoint provides a time series of funding rate values. ```APIDOC ## GET /funding-rate-history ### Description Retrieves the historical funding rate data for a given symbol. This endpoint provides a time series of funding rate values. ### Method GET ### Endpoint /funding-rate-history ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). - **interval** (string) - Required - The interval for the historical data (e.g., 1m, 5m, 1h, 1d). - **from** (integer) - Optional - The start timestamp in seconds (Unix epoch). - **to** (integer) - Optional - The end timestamp in seconds (Unix epoch). ### Request Example ``` GET /funding-rate-history?symbol=BTCUSD&interval=1h&from=1678886400&to=1678972800 ``` ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of candlestick_fr objects representing the funding rate history. - **t** (integer) - The beginning of the interval, UNIX timestamp in seconds. - **o** (number) - Funding rate at the beginning of the interval. - **h** (number) - Highest funding rate during the interval. - **l** (number) - Lowest funding rate during the interval. - **c** (number) - Funding rate at the end of the interval. #### Response Example ```json { "symbol": "BTCUSD", "history": [ { "t": 1678886400, "o": 0.045, "h": 0.055, "l": 0.040, "c": 0.050 } ] } ``` ``` -------------------------------- ### GET /funding-rate Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the current funding rate for a given symbol. The funding rate is a periodic payment made between traders in the futures or perpetual swaps market. ```APIDOC ## GET /funding-rate ### Description Retrieves the current funding rate for a given symbol. The funding rate is a periodic payment made between traders in the futures or perpetual swaps market. ### Method GET ### Endpoint /funding-rate ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). ### Request Example ``` GET /funding-rate?symbol=BTCUSD ``` ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **value** (number) - Current funding rate in percent. - **update** (integer) - UNIX timestamp in milliseconds when the data was last updated. #### Response Example ```json { "symbol": "BTCUSD", "value": 0.05, "update": 1678886400000 } ``` ``` -------------------------------- ### GET /long-short-ratio-history Source: https://api.coinalyze.net/v1/doc/api-spec Fetches the long/short ratio history for specified trading symbols. This data helps in understanding market sentiment and potential trend reversals. ```APIDOC ## GET /long-short-ratio-history ### Description Fetches the long/short ratio history for specified trading symbols. This data helps in understanding market sentiment and potential trend reversals. ### Method GET ### Endpoint /long-short-ratio-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: "BTCUSDT_PERP.A,BTCUSD_PERP.0" - **interval** (string) - Required - Interval/granularity. Enum: ["1min", "5min", "15min", "30min", "1hour", "2hour", "4hour", "6hour", "12hour", "daily"] - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds ### Response #### Success Response (200) - **long_short_ratio_history** (array) - An array of long/short ratio history objects. #### Response Example { "example": "[{"symbol": "BTCUSDT_PERP.A", "time": 1678886400, "long_short_ratio": 1.5}]" } #### Error Responses - **400**: Bad Request - **401**: Unauthorized - **429**: Too Many Requests ``` -------------------------------- ### Get Current Funding Rate Source: https://api.coinalyze.net/v1/doc/index Retrieves the current funding rate for specified symbols. ```APIDOC ## GET /v1/funding-rate ### Description Retrieves the current funding rate for specified cryptocurrency future markets. ### Method GET ### Endpoint https://api.coinalyze.net/v1/funding-rate ### Parameters #### Query Parameters - **api_key** (string) - Required - Your Coinalyze API key. - **symbols** (string) - Required - Comma-separated list of symbols (max 20). Example: `BTCUSDT_PERP.A,BTCUSD_PERP.0`. ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **value** (number) - The current funding rate. - **update** (integer) - Timestamp of the last update. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP", "value": 0.00005, "update": 1678886400 } ] ``` ``` -------------------------------- ### GET /v1/open-interest-history Source: https://api.coinalyze.net/v1/doc/index Retrieves historical open interest data for specified symbols and intervals. Supports conversion to USD. ```APIDOC ## GET /v1/open-interest-history ### Description Retrieves historical open interest data for specified symbols and intervals. Supports conversion to USD. ### Method GET ### Endpoint https://api.coinalyze.net/v1/open-interest-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0 - **interval** (string) - Required - Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily" - Interval/granularity - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds - **convert_to_usd** (string) - Optional - Default: "false" - Enum: "true" "false" ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of historical data points. - **t** (integer) - Timestamp. - **o** (number) - Open interest value. - **h** (number) - High value. - **l** (number) - Low value. - **c** (number) - Close value. #### Response Example (200) ```json [ { "symbol": "string", "history": [ { "t": 0, "o": 0, "h": 0, "l": 0, "c": 0 } ] } ] ``` #### Error Responses - **400** Bad parameter(s). - **401** Invalid/missing API key. - **429** Too many requests. - **500** Server error. ``` -------------------------------- ### GET /v1/long-short-ratio-history Source: https://api.coinalyze.net/v1/doc/index Retrieves historical long/short ratio data for specified symbols and intervals. ```APIDOC ## GET /v1/long-short-ratio-history ### Description Retrieves historical long/short ratio data for specified symbols and intervals. ### Method GET ### Endpoint https://api.coinalyze.net/v1/long-short-ratio-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0 - **interval** (string) - Required - Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily" - Interval/granularity - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of historical data points. - **t** (integer) - Timestamp. - **ratio** (number) - The long/short ratio. #### Response Example (200) ```json [ { "symbol": "string", "history": [ { "t": 0, "ratio": 0 } ] } ] ``` #### Error Responses - **400** Bad parameter(s). - **401** Invalid/missing API key. - **429** Too many requests. - **500** Server error. ``` -------------------------------- ### GET /liquidation-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves historical liquidation data for specified symbols and time intervals. This endpoint is useful for analyzing market volatility and identifying potential price movements. ```APIDOC ## GET /liquidation-history ### Description Retrieves historical liquidation data for specified symbols and time intervals. This endpoint is useful for analyzing market volatility and identifying potential price movements. ### Method GET ### Endpoint /liquidation-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: "BTCUSDT_PERP.A,BTCUSD_PERP.0" - **interval** (string) - Required - Interval/granularity. Enum: ["1min", "5min", "15min", "30min", "1hour", "2hour", "4hour", "6hour", "12hour", "daily"] - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds - **convert_to_usd** (string) - Optional - Whether to convert the values to USD. Enum: ["true", "false"]. Default: "false" ### Response #### Success Response (200) - **liquidation_history** (array) - An array of liquidation history objects. #### Response Example { "example": "[{"symbol": "BTCUSDT_PERP.A", "time": 1678886400, "amount": 1000000.0, "price": 20000.0}]" } #### Error Responses - **400**: Bad Request - **401**: Unauthorized - **429**: Too Many Requests - **500**: Internal Server Error ``` -------------------------------- ### GET /v1/predicted-funding-rate-history Source: https://api.coinalyze.net/v1/doc/index Retrieves historical predicted funding rate data for specified symbols and intervals. ```APIDOC ## GET /v1/predicted-funding-rate-history ### Description Retrieves historical predicted funding rate data for specified symbols and intervals. ### Method GET ### Endpoint https://api.coinalyze.net/v1/predicted-funding-rate-history ### Parameters #### Query Parameters - **symbols** (string) - Required - The symbols, comma separated, maximum 20 symbols, each symbol consume one API call. Example: symbols=BTCUSDT_PERP.A,BTCUSD_PERP.0 - **interval** (string) - Required - Enum: "1min" "5min" "15min" "30min" "1hour" "2hour" "4hour" "6hour" "12hour" "daily" - Interval/granularity - **from** (integer) - Required - From (inclusive), UNIX timestamp in seconds - **to** (integer) - Required - To (inclusive), UNIX timestamp in seconds ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of historical data points. - **t** (integer) - Timestamp. - **o** (number) - Predicted funding rate value. - **h** (number) - High value. - **l** (number) - Low value. - **c** (number) - Close value. #### Response Example (200) ```json [ { "symbol": "string", "history": [ { "t": 0, "o": 0, "h": 0, "l": 0, "c": 0 } ] } ] ``` #### Error Responses - **400** Bad parameter(s). - **401** Invalid/missing API key. - **429** Too many requests. - **500** Server error. ``` -------------------------------- ### GET /open-interest-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the historical open interest data for a given symbol. This endpoint provides a time series of open interest values. ```APIDOC ## GET /open-interest-history ### Description Retrieves the historical open interest data for a given symbol. This endpoint provides a time series of open interest values. ### Method GET ### Endpoint /open-interest-history ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). - **interval** (string) - Required - The interval for the historical data (e.g., 1m, 5m, 1h, 1d). - **from** (integer) - Optional - The start timestamp in seconds (Unix epoch). - **to** (integer) - Optional - The end timestamp in seconds (Unix epoch). ### Request Example ``` GET /open-interest-history?symbol=BTCUSD&interval=1h&from=1678886400&to=1678972800 ``` ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of candlestick_oi objects representing the open interest history. - **t** (integer) - The beginning of the interval, UNIX timestamp in seconds. - **o** (number) - Open interest at the beginning of the interval. - **h** (number) - Highest open interest during the interval. - **l** (number) - Lowest open interest during the interval. - **c** (number) - Open interest at the end of the interval. #### Response Example ```json { "symbol": "BTCUSD", "history": [ { "t": 1678886400, "o": 120000.50, "h": 125000.75, "l": 119000.25, "c": 123456.78 } ] } ``` ``` -------------------------------- ### GET /candlesticks Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves historical candlestick data for a given symbol and interval. Candlestick data includes open, high, low, and close prices. ```APIDOC ## GET /candlesticks ### Description Retrieves historical candlestick data for a given symbol and interval. Candlestick data includes open, high, low, and close prices. ### Method GET ### Endpoint /candlesticks ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). - **interval** (string) - Required - The interval for the candlesticks (e.g., 1m, 5m, 1h, 1d). - **from** (integer) - Optional - The start timestamp in seconds (Unix epoch). - **to** (integer) - Optional - The end timestamp in seconds (Unix epoch). ### Request Example ``` GET /candlesticks?symbol=BTCUSD&interval=1h&from=1678886400&to=1678972800 ``` ### Response #### Success Response (200) - **t** (integer) - The beginning of the interval, UNIX timestamp in seconds. - **o** (number) - Open price. - **h** (number) - High price. - **l** (number) - Low price. - **c** (number) - Close price. #### Response Example ```json [ { "t": 1678886400, "o": 25000.00, "h": 25500.00, "l": 24900.00, "c": 25300.00 } ] ``` ``` -------------------------------- ### GET /open-interest Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the current open interest for a given symbol. Open interest represents the total number of outstanding derivative contracts that have not been settled. ```APIDOC ## GET /open-interest ### Description Retrieves the current open interest for a given symbol. Open interest represents the total number of outstanding derivative contracts that have not been settled. ### Method GET ### Endpoint /open-interest ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). ### Request Example ``` GET /open-interest?symbol=BTCUSD ``` ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **value** (number) - Current open interest. - **update** (integer) - UNIX timestamp in milliseconds when the data was last updated. #### Response Example ```json { "symbol": "BTCUSD", "value": 123456.78, "update": 1678886400000 } ``` ``` -------------------------------- ### Get Current Predicted Funding Rate Source: https://api.coinalyze.net/v1/doc/index Retrieves the current predicted funding rate for specified symbols. ```APIDOC ## GET /v1/predicted-funding-rate ### Description Retrieves the current predicted funding rate for specified cryptocurrency future markets. ### Method GET ### Endpoint https://api.coinalyze.net/v1/predicted-funding-rate ### Parameters #### Query Parameters - **api_key** (string) - Required - Your Coinalyze API key. - **symbols** (string) - Required - Comma-separated list of symbols (max 20). Example: `BTCUSDT_PERP.A,BTCUSD_PERP.0`. ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **value** (number) - The current predicted funding rate. - **update** (integer) - Timestamp of the last update. #### Response Example ```json [ { "symbol": "BTCUSDT_PERP", "value": 0.000045, "update": 1678886400 } ] ``` ``` -------------------------------- ### GET /predicted-funding-rate-history Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves the historical predicted funding rate data for a given symbol. This endpoint provides a time series of predicted funding rate values. ```APIDOC ## GET /predicted-funding-rate-history ### Description Retrieves the historical predicted funding rate data for a given symbol. This endpoint provides a time series of predicted funding rate values. ### Method GET ### Endpoint /predicted-funding-rate-history ### Parameters #### Query Parameters - **symbol** (string) - Required - The trading symbol (e.g., BTCUSD). - **interval** (string) - Required - The interval for the historical data (e.g., 1m, 5m, 1h, 1d). - **from** (integer) - Optional - The start timestamp in seconds (Unix epoch). - **to** (integer) - Optional - The end timestamp in seconds (Unix epoch). ### Request Example ``` GET /predicted-funding-rate-history?symbol=BTCUSD&interval=1h&from=1678886400&to=1678972800 ``` ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **history** (array) - An array of candlestick_pfr objects representing the predicted funding rate history. - **t** (integer) - The beginning of the interval, UNIX timestamp in seconds. - **o** (number) - Predicted funding rate at the beginning of the interval. - **h** (number) - Highest predicted funding rate during the interval. - **l** (number) - Lowest predicted funding rate during the interval. - **c** (number) - Predicted funding rate at the end of the interval. #### Response Example ```json { "symbol": "BTCUSD", "history": [ { "t": 1678886400, "o": 0.040, "h": 0.048, "l": 0.038, "c": 0.042 } ] } ``` ``` -------------------------------- ### Spot Market Info Source: https://api.coinalyze.net/v1/doc/api-spec Retrieves information about a specific spot market, including details about assets and trading pair information. ```APIDOC ## GET /api/v1/spot_market_info ### Description Retrieves information about a specific spot market, including details about assets and trading pair information. ### Method GET ### Endpoint /api/v1/spot_market_info ### Parameters #### Query Parameters - **symbol** (string) - Required - Trading symbol (e.g., BTC-USDT) ### Response #### Success Response (200) - **symbol** (string) - The trading symbol. - **exchange** (string) - Exchange code. - **symbol_on_exchange** (string) - The symbol as it appears on the exchange. - **base_asset** (string) - The base asset of the trading pair. - **quote_asset** (string) - The quote asset of the trading pair. #### Response Example { "symbol": "BTC-USDT", "exchange": " பைனান্স", "symbol_on_exchange": "BTCUSDT", "base_asset": "BTC", "quote_asset": "USDT" } ```