currentOrders: currentOrders method

Description Arguments Value

Description

currentOrders function allows users to retrieve data about any unsettled bets they have open. Use the parameters to filter to specific markets, or leave the function empty to return all open positions

Arguments

betId

unique bet Id

marketId

unique market Id

orderProjection

default of ALL returns all unsettled positions, matched or partially matched, change to EXECUTABLE to filter for orders with a portion remaining, or EXECUTION_COMPLETE for orders which have been filled, see orderProjection section in BettingEnums for more details

from

date filter, string in yyyy-mm-dd format

to

date filter, string in yyyy-mm-dd format

orderBy

how to order orders, default of "BY_BET" orders by when they were placed, see orderBy section in BettingEnums for more details

sort

how to sort results, default is "EALIEST_TO_LATEST" (alternative is "LATEST_TO_EARLIEST") see sortDir section in BettingEnums for more details

fromRecord

specifies the first record to be returned, records start at index zero (not one)

count

specifies how many records are returned from the index position set by fromRecord, there is a limit of 1000.

Value

list with data about individual orders


durtal/betfaiR documentation built on May 15, 2019, 6:01 p.m.