betfaiR

Having logged in using the betfair function, the environment contains the marketPnL method, which can be used to get market data in which you have struck any number of bets. You can use marketPnL to see the returns for each selection in the market.

usage

bf$marketPnL(marketIds,
             settled,
             bsp,
             NET)

arguments

param details
marketIds string, one or more marketIds, the number of markets returned depends on the amount of data you request via the priceProjection
settled settled markets only
bsp include bets which will be placed at BSP
NET include commission