Product Data
Get public data on products. The word "product" and "pair" are used interchangeably here.
Information of product pairs.
GET
https://api.liquid.com/products
Get all pairs for Spot, Margin, Infinity, does not include Perpetuals.
Path Parameters
Name | Type | Description |
---|---|---|
Product ID | String |
Perpetual Products
GET
https://api.liquid.com/products?perpetual=1
Query Parameters
Name | Type | Description |
---|---|---|
perpetual | string | Get all perpetual pairs with |
Swap Rate for a Perpetual Product
GET
https://api.liquid.com/products/{product_id}/funding_rate_history?limit={limit}
Get every second's funding rate, available only for Perpetual pairs with IDs 603 (P-BTCJPY) and 604 (P-BTCUSD).
Path Parameters
Name | Type | Description |
---|---|---|
product_id | string | |
Query Parameters
Name | Type | Description |
---|---|---|
timestamp_gte | string |
|
timestamp_lte | string |
|
limit | string |
|
Order Book
GET
https://api.liquid.com/products/{product_id}/price_levels?full=1
Get the bids and asks.
Path Parameters
Name | Type | Description |
---|---|---|
product_id | string | Product ID |
Query Parameters
Name | Type | Description |
---|---|---|
full | string | Specify |
Trade Feed
GET
https://api.liquid.com/executions?product_id={product_id}&limit={limit}&page={page}
Get historical orders that were executed a.k.a. trade feed.
Query Parameters
Name | Type | Description |
---|---|---|
product_id | string | Specify |
timestamp | string | Request for result starting from |
limit | string | 10 results to return when |
page | string | Use together with limit, a limit of 10 and |
Chart Data (K-Line)
GET
https://api.liquid.com/products/{product_id}/ohlc?resolution={resolution}
Get candle sticks data, ohlc
stands for open, high, low, close.
Path Parameters
Name | Type | Description |
---|---|---|
product_id | string | Product ID |
Query Parameters
Name | Type | Description |
---|---|---|
resolution | string | Specify |
Perpetual Index Chart
GET
https://api.liquid.com/products/{product_id}/perpetual_index_chart?resolution={resolution}
Index price is derived from 5 exchanges and price is the average of 3 out of 5.
Path Parameters
Name | Type | Description |
---|---|---|
product_id | string | For P-BTCJPY specify |
Query Parameters
Name | Type | Description |
---|---|---|
resolution | string | Specify |
Last updated