51
Triggered betting / Re: Help needed with trigger on bets getting matched
« Last post by MarkV on 11 Apr 2024, 17:46 »Hi
"live" traded volume per price is not available in time machine historical data. But if backing for example if you use:
BACK, Price: back_price, Amount: back_amount
It will give a matched back bet to the amount offered at best back price at the time of triggering.
If you wanted this could be extended for example to the amount offered at the best 2 back prices:
BACK, Price: r_ticks(back_price, -1), Amount: back_amount2+back_amount
In test mode and real mode (not in time machine) you could use live API data on traded volume per price to keep a running total as the £10k gets matched in bits.
"live" traded volume per price is not available in time machine historical data. But if backing for example if you use:
BACK, Price: back_price, Amount: back_amount
It will give a matched back bet to the amount offered at best back price at the time of triggering.
If you wanted this could be extended for example to the amount offered at the best 2 back prices:
BACK, Price: r_ticks(back_price, -1), Amount: back_amount2+back_amount
In test mode and real mode (not in time machine) you could use live API data on traded volume per price to keep a running total as the £10k gets matched in bits.