betfaiR

This function allows all current orders to be returned. You can ask for all open orders to be returned by leaving the function empty or filter based on various parameters.

usage

bf$currentOrders(betId = NULL,
                 marketId = NULL,
                 orderProjection = "ALL",
                 from = NULL,
                 to = NULL,
                 orderBy = "BY_BET",
                 sort = "EARLIEST_TO_LATEST",
                 fromRecord = NULL,
                 count = NULL)

arguments

param details
betId retrieve data on a specific bet
marketId retrieve data on open orders in a specific market
orderProjection retrieve data based on whether orders were filled, default of ALL returns all open bets, whether fully matched, partially matched or still unmatched. EXECUTABLE returns data on orders that have an unmatched portion. EXECUTION_COMPLETE returns data on orders which have been filled in
from date filter, string should be in yyyy-mm-dd format
to date filter, string should be in yyyy-mm-dd format
orderBy how to order response, default orders by when they were placed, see orderBy for more details.
sort how to sort results, see sortDir for more details and options.
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 records.

return

The function should return details about all open orders via a list. This list might need a little bit of work in converting into a neater format.