getOpenOrdersForUserForMarket

Returns all open orders for a specific market by a specific user

Example

const openOrders = await flux.getOpenOrdersForUserForMarket(0, "my_account");

Parameters

Parameter

Type

Description

Required

marketId

number

The id of the market in question

True

accountId

string

The account id of the account that open orders need to be fetched for

True

Returns

Name

Type

Description

lastTradedPrices

Array<Order>

Promise that will resolve an array of open orders