getLastFilledPricesForMarket

Returns the latest traded prices for each outcome in a market

Example

const lastTradedPrices = await flux.getLastFilledPricesForMarket(0);

Parameters

Parameter

Type

Description

Required

marketId

number

The id of the market you want to fetch the last filled prices for

True

Returns

Name

Type

Description

lastTradedPrices

Object

Promise that will resolve an object that maps outcomes to the last filled price.

‚Äč

E.g.

{

"0": 40,

"1": 60 }