# Market

## Get Market Depth Data

> Retrieve the order book depth for a specific contract.

```json
{"openapi":"3.0.0","info":{"title":"Coinlocally Futures - Market Data","version":"1.0.0"},"servers":[{"url":"https://futuresopenapi.coinlocally.com"}],"paths":{"/fapi/v1/depth":{"get":{"summary":"Get Market Depth Data","description":"Retrieve the order book depth for a specific contract.","parameters":[{"name":"contractName","in":"query","schema":{"type":"string"},"description":"Contract name E.g. USDT1816-BTC-USDT"},{"name":"limit","in":"query","schema":{"type":"integer","default":100},"description":"Default 100, Max 100"}],"responses":{"200":{"description":"Successfully retrieved market depth data","content":{"application/json":{}}}}}}}}
```

## 24 Hour Ticker Statistics

> Get 24 hour price change statistics for a contract.

```json
{"openapi":"3.0.0","info":{"title":"Coinlocally Futures - Market Data","version":"1.0.0"},"servers":[{"url":"https://futuresopenapi.coinlocally.com"}],"paths":{"/fapi/v1/ticker":{"get":{"summary":"24 Hour Ticker Statistics","description":"Get 24 hour price change statistics for a contract.","parameters":[{"name":"contractName","in":"query","schema":{"type":"string"},"description":"Contract name E.g. USDT1816-BTC-USDT"}],"responses":{"200":{"description":"Successfully obtained ticker info","content":{"application/json":{}}}}}}}}
```

## All Market Tickers

> Retrieve ticker statistics for all contracts.

```json
{"openapi":"3.0.0","info":{"title":"Coinlocally Futures - Market Data","version":"1.0.0"},"servers":[{"url":"https://futuresopenapi.coinlocally.com"}],"paths":{"/fapi/v1/ticker_all":{"get":{"summary":"All Market Tickers","description":"Retrieve ticker statistics for all contracts.","responses":{"200":{"description":"Successfully retrieved all tickers","content":{"application/json":{}}}}}}}}
```

## Get Index / Mark Price

> Fetch index and mark prices for a contract.

```json
{"openapi":"3.0.0","info":{"title":"Coinlocally Futures - Market Data","version":"1.0.0"},"servers":[{"url":"https://futuresopenapi.coinlocally.com"}],"paths":{"/fapi/v1/index":{"get":{"summary":"Get Index / Mark Price","description":"Fetch index and mark prices for a contract.","parameters":[{"name":"contractName","in":"query","schema":{"type":"string"},"description":"Contract name E.g. USDT1816-BTC-USDT"},{"name":"limit","in":"query","schema":{"type":"string","default":"100"},"description":"Default 100, Max 100"}],"responses":{"200":{"description":"Successfully retrieved index/mark price","content":{"application/json":{}}}}}}}}
```

## Kline / Candlestick Data

> Returns historical candlestick (kline) data for a symbol.

```json
{"openapi":"3.0.0","info":{"title":"Coinlocally Futures - Market Data","version":"1.0.0"},"servers":[{"url":"https://futuresopenapi.coinlocally.com"}],"paths":{"/fapi/v1/klines":{"get":{"summary":"Kline / Candlestick Data","description":"Returns historical candlestick (kline) data for a symbol.","parameters":[{"name":"contractName","in":"query","schema":{"type":"string"},"description":"Contract name E.g. USDT1816-BTC-USDT"},{"name":"interval","in":"query","schema":{"type":"string"},"description":"K-line interval: 1min,5min,15min,30min,1h,1day,1week,1month"},{"name":"limit","in":"query","schema":{"type":"integer","default":100},"description":"Default 100, Max 300"}],"responses":{"200":{"description":"Successfully retrieved kline data","content":{"application/json":{}}}}}}}}
```
