Skip to content

Error when placing more than two lay/back bets #19

@bcaneco

Description

@bcaneco

Hi,

The function placeOrders() doesn't seem to allow for more than 2 simultaneous back/lay orders, returning "Error: Expectation Failed".

placeOrders(
marketId = "1.130459350",
selectionId = as.character(c(10463405, 10463405, 11160430)),
betSide = rep("LAY", 3),
betType = "LIMIT",
betSize = rep(as.character(2), 3),
reqPrice = rep(as.character(1.2), 3),
persistenceType = rep("LAPSE", 3)
)
Error: Expectation Failed

Am I wrongly specifying any of the arguments? Or is there a limit on the number of bets per request imposed by the betfair API?

Looking at the betfair's API documentation on placing orders, it reads: "The limit of place instructions per request is 200 for the UK/AUS Exchange (...)"

In any case, I must also add that the package works a treat - you've than an excellent job!

Many thanks in advance,
Bruno

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions