Coinlocally Docs
API Document
API Document
  • Introduction
    • API Basic Information
    • HTTP Error Codes
    • General Information
    • Limits
    • Endpoint Security Type
    • Signature Authentication
    • Timing Security
    • SIGNED Endpoint Example
  • Changelog
  • Spot
    • Public
    • Market
    • Trade
    • Account
  • Futures
    • Public
    • Market
    • Trade
    • Account
  • Margin
  • Withdraw
  • WebSocket
    • Spot
    • Futures
  • Official SDK
  • Enums
  • Error
  • FAQ
Powered by GitBook
On this page
  1. Futures

Market

PreviousPublicNextTrade

Last updated 17 days ago

Get Market Depth Data

get

Retrieve the order book depth for a specific contract.

Query parameters
contractNamestringOptional

Contract name E.g. E-BTC-USDT

limitintegerOptional

Default 100, Max 100

Default: 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"
    ]
  ]
}

24 Hour Ticker Statistics

get

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
}

All Market Tickers

get

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
  }
}

Get Index / Mark Price

get

Fetch index and mark prices for a contract.

Query parameters
contractNamestringOptional

Contract name E.g. E-BTC-USDT

limitstringOptional

Default 100, Max 100

Default: 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
}

Kline / Candlestick Data

get

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

limitintegerOptional

Default 100, Max 300

Default: 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"
  }
]
  • GETGet Market Depth Data
  • GET24 Hour Ticker Statistics
  • GETAll Market Tickers
  • GETGet Index / Mark Price
  • GETKline / Candlestick Data