Market
Retrieve the order book depth for a specific contract.
Contract name E.g. E-BTC-USDT
Default 100, Max 100
100
Successfully retrieved market depth data
GET /fapi/v1/depth HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
Successfully retrieved market depth data
{
"bids": [
[
"3.90000000",
"431.00000000"
]
],
"asks": [
[
"4.00000200",
"12.00000000"
]
]
}
Get 24 hour price change statistics for a contract.
Contract name E.g. E-BTC-USDT
Successfully obtained ticker info
GET /fapi/v1/ticker HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
Successfully obtained ticker info
{
"high": "9279.0301",
"vol": "1302",
"last": "9200",
"low": "9279.0301",
"rose": "0",
"time": 1595563624731
}
Retrieve ticker statistics for all contracts.
Successfully retrieved all tickers
GET /fapi/v1/ticker_all HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
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.
Contract name E.g. E-BTC-USDT
Default 100, Max 100
100
Successfully retrieved index/mark price
GET /fapi/v1/index HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
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.
Contract name E.g. E-BTC-USDT
K-line interval: 1min,5min,15min,30min,1h,1day,1week,1month
Default 100, Max 300
100
Successfully retrieved kline data
GET /fapi/v1/klines HTTP/1.1
Host: futuresopenapi.coinlocally.com
Accept: */*
Successfully retrieved kline data
[
{
"high": "6228.77",
"vol": "111",
"low": "6228.77",
"idx": 1594640340,
"close": "6228.77",
"open": "6228.77"
}
]
Last updated