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
Product ID
String
Perpetual Products
GET
https://api.liquid.com/products?perpetual=1
Query Parameters
perpetual
string
Get all perpetual pairs with perpetual=1
.
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
product_id
string
603
for P-BTCJPY or 604
for P-BTCUSD
Query Parameters
timestamp_gte
string
1598500000
to get results greater than and equal to this timestamp
timestamp_lte
string
1598500000
to get results lower than and equal to this timestamp
limit
string
20
to return 20 results.
Order Book
GET
https://api.liquid.com/products/{product_id}/price_levels?full=1
Get the bids and asks.
Path Parameters
product_id
string
Product ID 1
for BTCUSD.
Query Parameters
full
string
Specify ?full=1
to get the full order book.
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
product_id
string
Specify ?product_id=1
for BTCUSD.
timestamp
string
Request for result starting from timestamp=160000000
limit
string
10 results to return when limit=10
page
string
Use together with limit, a limit of 10 and page=2
will return results from 11th - 20th.
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
product_id
string
Product ID 1
for BTCUSD.
Query Parameters
resolution
string
Specify resolution=60
to get minute candles, resolution=3600
to get hourly candles, multiply 3600 by 24 to get daily candles.
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
product_id
string
For P-BTCJPY specify 603
and for P-BTCUSD specify 604
Query Parameters
resolution
string
Specify resolution=60
to get minute to minute index price. To get hourly index price specify resolution=3600
Last updated