Get OrderBook

Get a list of all open orders for a product.

2 parameters are used for orderbook:

  • pairSymbol and limit

  • If limit parameter is not set, default 100 orders are listed.

There are 2 possible options:

Without limit parameter

https://api.btcturk.com/api/v2/orderbook?pairSymbol=BTCUSDT

Default 100 orders of BTCUSDT

With limit parameter

https://api.btcturk.com/api/v2/orderbook?pairSymbol=BTCUSDT&limit=25

25 orders of BTCUSDT

OrderBook

GET https://api.btcturk.com/api/v2/orderbook

Query Parameters

Name
Type
Description

pairSymbol

string

BTCTRY, ETHTRY etc.

limit

integer

limit the number of results (default 25)

{
  "success": true,
  "message": null,
  "code": 0,
  "data": {
    "timestamp": 1543836448605,
    "bids": [
      [
        "33245.00",
        "2.10695265"
      ],
      [
        "33209.00",
        "0.001"
      ]
    ],
    "asks": [
      [
        "33490.00",
        "0.03681877"
      ],
      [
        "33499.00",
        "1.00000000"
      ]
    ]
  }

Code Example

Last updated

Was this helpful?