» Get Orderbook (Poloniex style)

SINGLE STUDY CRYPTO

June 11, 2019

Get Orderbook (Poloniex style)

  https://ufodex.io/dexsrv/mainnet/api/v1/public?command=returnOrderBook&currencyPair=all&depth=DEPTH_VALUE

Returns the order book in Poloniex-compatible format for a given market, as well as a sequence number used by websockets for synchronization of book updates and an indicator specifying whether the market is frozen. You may set currencyPair to “all” to get the order books of all markets.

Request Parameter Description
currencyPair A pair like UFO_BTC or all
depth (optional) Default depth is 50. Max depth is 100.


Field Description
asks An array of price aggregated offers in the book ordered from low to high price.
bids An array of price aggregated bids in the book ordered from high to low price.
isFrozen Indicates if trading the market is currently disabled or not.
seq An always-incrementing sequence number for this market.


Call example:

Response example:

{
  "BTC_USDT": {
      "asks": [],
      "bids": [
                ["5170.00000000",51.7],
                ["5165.00000000",51.65],
                ["5055.00000000",10110],
                ["3800.00000000",30],
                ["2700.00000000",540]
              ],
      "isFrozen": "0",
      "seq": 1560277915626097729
    },
    "UFO_BTC": {
      "asks": [
                ["0.00000012",9850920],
                ["0.00000018",40000],
                ["0.00000036",33000],
                ["0.00000049",49882.205712380004],
                ["0.00000220",5152.62281516]
              ],
      "bids": [
                ["0.00000003",0.06],
                ["0.00000002",0.06],
                ["0.00000001",0.04]
              ],
      "isFrozen": "0",
      "seq": 1560277915621654923
    }
}