getLastFilledPrices

returns the last filled prices for a list of markets

Example

const allFluxMarkets = await flux.getMarkets({categories: ["sports"]}, 10, 0);

Parameters

Parameter

Type

Description

Required

filter

object

An object containing filter parameters, right now we only support categorical filtering. An example would be:

{ categories: ["sport"] }

false

limit

number

The number of markets to fetch.

Default: 20

False

offset

number

The number of records you wish to skip before selecting records.

Default: 0

False

Returns

Name

Type

Description

markets

Promise<Object>

Promise that will resolve an object that maps the market's id to an object that maps outcomes to the last filled price.

E.g.

{

"0": { // marketId

"0": 40, // outcome > lastFilled price

"1": 60 } }