Market
Retrieve the order book depth for a specific contract.
Query parameters
contractNamestringOptional
Contract name E.g. E-BTC-USDT
limitintegerOptionalDefault:
Default 100, Max 100
100
Responses
200
Successfully retrieved market depth data
application/json
get
GET /fapi/v1/depth HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
200
Successfully retrieved market depth data
{
"bids": [
[
"3.90000000",
"431.00000000"
]
],
"asks": [
[
"4.00000200",
"12.00000000"
]
]
}
Get 24 hour price change statistics for a contract.
Query parameters
contractNamestringOptional
Contract name E.g. E-BTC-USDT
Responses
200
Successfully obtained ticker info
application/json
get
GET /fapi/v1/ticker HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
200
Successfully obtained ticker info
{
"high": "9279.0301",
"vol": "1302",
"last": "9200",
"low": "9279.0301",
"rose": "0",
"time": 1595563624731
}
Retrieve ticker statistics for all contracts.
Responses
200
Successfully retrieved all tickers
application/json
get
GET /fapi/v1/ticker_all HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
200
Successfully retrieved all tickers
{
"e_btcusdt": {
"high": "9279.0301",
"vol": "1302",
"last": "9200",
"low": "9279.0301",
"rose": "0",
"time": 1595563624731
}
}
Fetch index and mark prices for a contract.
Query parameters
contractNamestringOptional
Contract name E.g. E-BTC-USDT
limitstringOptionalDefault:
Default 100, Max 100
100
Responses
200
Successfully retrieved index/mark price
application/json
get
GET /fapi/v1/index HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
200
Successfully retrieved index/mark price
{
"markPrice": 581.5,
"indexPrice": 646.39,
"lastFundingRate": 0.001,
"contractName": "E-ETH-USDT",
"time": 1608273554063
}
Returns historical candlestick (kline) data for a symbol.
Query parameters
contractNamestringOptional
Contract name E.g. E-BTC-USDT
intervalstringOptional
K-line interval: 1min,5min,15min,30min,1h,1day,1week,1month
limitintegerOptionalDefault:
Default 100, Max 300
100
Responses
200
Successfully retrieved kline data
application/json
get
GET /fapi/v1/klines HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
200
Successfully retrieved kline data
[
{
"high": "6228.77",
"vol": "111",
"low": "6228.77",
"idx": 1594640340,
"close": "6228.77",
"open": "6228.77"
}
]
Last updated