phillc73 / abettor

An R package for connecting to the online betting exchange Betfair, via their API-NG product, using JSON-RPC.
Other
51 stars 36 forks source link

placeOrder() function which accepts all avaiable fields. #46

Closed Soccerama closed 3 years ago

Soccerama commented 3 years ago

A version of the placeOrders field which accepts all of the fields available in the Betfair API operation. The additions are: marketVersion, customerStrategyRef, async, customerOrderRef, timeInForce, minFillSize, betTargetType, betTargetSize. While some of these fields are a bit obscure, the alternative version allows customers to tag more effectively tag orders for later analysis. It also enables fill-or-kill orders. Another important benefit is that bets of multiple types can be placed with a single order (LIMIT, LIMIT_ON_CLOSE, MARKET_ON_CLOSE). This reduces time taken while waiting for response from the exchange when compared to using multiple orders.