dxGetOrderBook


#1

Service Name: dxGetOrderBook
Cost: Free
Description: This call is used to retrieve open orders at various detail levels:

  • Detail 1 - Retrieves the best bid and ask.
  • Detail 2 - Retrieves a list of aggregated orders. This is useful for charting.
  • Detail 3 - Retrieves a list of non-aggregated orders. This is useful for bot trading.
  • Detail 4 - Retrieves the best bid and ask with the order GUIDs.

Using this call you can view open orders without having any connected XBridge wallets.

It will only return orders for assets the Service Node(s) is currently hosting.

Additional Documentation Link: See the official XBridge API info here: https://api.blocknet.co/#dxgetorderbook

Usage Instructions:
xrService dxGetOrderBook [detail] [maker] [taker]

Example Call:
xrService dxGetOrderBook 2 LTC DGB

Parameter Type Description Example
detail int Detail level: 1, 2, 3, 4 3
maker string Maker trading asset; the ticker of the asset being sold by the maker. BLOCK
taker string Taker trading asset; the ticker of the asset being sold by the taker. LTC

#2

  • dxGetOrderBook isn’t populating any orders because there are no connected assets on this wallet

  • xrService dxGetOrderBook populates orders without having any connected assets