I need a betfair bot that lays the favourite in each uk dog race which is gotton from a bookmakers website (bookies favourite not always betfair favourite) with varying stakes (below betfair min) program must also have added features such as recovery cycles to recover lost money etc
## Deliverables
The bot should find the favourite from [login to view URL]'s next uk greyhound race and 10 seconds before the off, lay that favourite on betfair for a variable stake that I can select and change.
If the bet is a loser the bot should then repeat the process on the next race but in a recovery cycle to win the money that was lost and the money you were trying to win when the loss occured over the following 2 races. If a recovery bet loses then the bot should restart the recovery cycle and keep track of what money has been lost and should have been won. The following two examples illustrate what should happen with one loss and what should happen with one loss and one recovery cycle loss.
**Example 1**
Program set to lay favourite for £1.
**Bet No 1** - £1 at a price of 4 which costs £3 - WHICH LOSES
**Recovery** **Cycle 1** **Bet 1 ** - Default lay bet of £1 + 50% of losses (£1.50) + 50% of bet 1 potential winnings (50p) - Which added together gives the next lay stake of £3 which at a price of 4 costs £9 - WHICH WINS
**Recovery** **Cycle 1** **Bet 2 ** - Default lay bet of £1 + 50% of losses (£1.50) + 50% of bet 1 potential winnings (50p) - Which added together gives the next lay stake of £3, which at a price of 4 costs £9 - WHICH WINS
The recovery cycle should now finish and revert to laying the favourite for £1 and there is £6 of winnings and £3 of losses which leaves £3 profit, so even if a selection loses, after the recovery cycle is complete I still win my default £1 for every race that has occured.
To make sure this is clear the following example shows what should occur after one loss and one recovery cycle loss:
**Example 2**
Program set to lay favourite for £1.
**Bet 1** - £1 at a price of 4 which costs £3 - WHICH LOSES
**Recovery Cycle 1** **Bet 1** - Default lay bet of £1 + 50% of losses (£1.50) + 50% of Bet 1 potential winnings (50p) - Which added together gives the next lay stake of £3, which at a price of 4 costs £9 - WHICH LOSES
**Recovery** **Cycle 2** **Bet 1 ** - Default lay bet of £1 + 50% of losses (£1.50 + 4.50) + 50% of Bet 1 potential winnings (50p) + 50% Recovery Cycle 1 Bet 1 potential winnings (50p) -Which added together gives the next lay stake of £8, which at a price of 4 costs £24 - WHICH WINS
**Recovery** **Cycle 2** **Bet 2 ** - Default lay bet of £1 + 50% of losses (£1.50 + 4.50) + 50% of Bet 1 potential winnings (50p) + 50% Recovery Cycle 1 Bet 1 potential winnings (50p) - Which added together gives the next lay stake of £8, which at a price of 4 costs £24 - WHICH WINS
So after the recovery cycle finishes theres £16 of winnings and £12 of losses which leaves £4 profit, which is £1 per bet.
The bot shoud also have a variable required profit so once that target is reached the bot stops for the day. A lot of these features are availble in the UGS Laying Bot Professional which can be found here [login to view URL] so have a look for a general idea.