getOrderbook

Returns orderbook data for a specific market

Example

const orderbook = await flux.getOrderbook(0);

Parameters

Parameter

Type

Description

Required

marketId

number

The id of the market in question

True

Returns

Name

Type

Description

lastTradedPrices

Array<Object>

Promise that will resolve in an Array containing a list of objects representing cumulative positions grouped by price and outcome.

‚Äč

e.g.

[ {

"outcome":"4",

"price":"10",

"depth":"100000000000000000"

}

]