the software should be able to:
1. Recognize ALL soccer games for a certain day (actual day) availabe at betfair.
in-play games should be excluded once they have begun!! (at kick-off)
2. Being able to set a DEFAULT strategy for ALL soccer games of the whole (selected) day
criteria 1: whether to bet on 1st team, 2nd team or draw
criteria 2: whether to back or lay
criteria 3: the price at which getting filled at-least for back, or at-most for lay !
criteria 3: money amount to back or lay for each soccer game (from the filtered ones!)
3. Filtering all soccer games, like:
1st team back/lay quotation at-and-over(back)/at-and-under(lay) price P
2nd team back/lay quotation at-and-over(back)/at-and-under(lay) price P
X (draw) back/lay quotation at-and-over(back)/at-and-under(lay) price P
For example, if "draw", "back" and "5" was chosen as the default strategy, then each soccer game for the seleted day and as well the following day,
where at the match market quotation of the draws LAY side, shows up at least 4.9 (or more), will belong to the filtered games, on which the software will start to bet. (entering an order automatically)
(even if the back price should be only 4.5 or so, in this example)
Should the market move down (at least 2 steps under the order level), and at the LAY side shows up only 4.8, the order to back at 5 can be canceled and the game taken out of the filtered list.
Conversely, if the market moves up to 4.9 at the LAY side (for whatever soccer game), the software should recognize it, and add the game to the list, and enter a new order to back at 5, so that it will be posted at the second column of the LAY side.
The filtering of all soccer games for the selected day and the next day, should be re-done every 5min. or so.
If the funds in the account aren't sufficient for all filtered games, the software should prioritize the soon-to-come games, and queue those from later and the next day.
4. For all filtered games: (with quotations as wished)
As to the selected strategy, either
Placing BACK bets at actual LAY-level side (with a minimum of price P that can't be underpassed) until a certain amount for that game was backed.
Placing LAY bets at actual BACK-level side (with a maximum of price P that can't be overpassed) until a certain amount for that game was layed.
5. If the market is bettered by others, the software has to follow and to adjust the price at that new level, as long as the set price P will not be surpassed !!
However, if the waiting money amount in the order queue is NOT bigger than the own order, then the software MUST increase the order price for Back bets to the next higher level at the lay side (where other money awaits a fill), and reduce the order price for Lay bets to the next lower level at the back side (where other money awaits a fill).
So a continuos check has to be made for this conditions, for each filtered soccer game, till completely filled for the wished amount of money.
It is very important to me, that this logic is implemented very stable, carefully, reliable and error-free !!
Is something like that possible to get done in a clear manner using the Betfair API ??
Please only people who are familiar and have a deep understanding with the concepts and principles of market-making and Betfair especially, and if my lines above make sense to him/her.