Author Topic: Update amount on unmatched bet  (Read 1437 times)

Tags:
  • All members
  • Posts: 63
Update amount on unmatched bet
« on: 30 Aug 2017, 14:30 »
Hi,

I'm sure there's a simple way to do this but I haven't found it yet.

Lets say I have unmatched bets on several selections. They remain unmatched but I want to increase the stake of each one and keep the price the same.

The prices have changed in this time so I need a way to either update the existing unmatched bets or to remember the prices they were originally submitted at in order to submit new ones.

I thought I could cancel all bets then use bu_backp to refer to the price of the old unmatched bet, but it seems to reset to zero after being cancelled.

So I thought I'd try submitting new bets first using bu_backp but then unsure how to just cancel the old ones.

I also tried setting a variable after initially submitting the bets but can only seem to get one value for the market rather than a value for each selection.

I guess I could just submit separate bets without cancelling any old ones as it would work out the same but thought there must be an easy way to do this.

Thanks in advance,
Andy

  • Moderator
  • Posts: 3597
*
Re: Update amount on unmatched bet
« Reply #1 on: 30 Aug 2017, 18:27 »
Hi
you could probably do it using the remember trigger action and then reference the remembered selections bets, but it does seem very convoluted.
your last idea of submitting additional bets at bu_backp makes more sense, and halves the number of transactions. For the amount you could use something like:
target increased amount - bu_backa
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Update amount on unmatched bet
« Reply #2 on: 31 Aug 2017, 09:00 »
I would go down the "remember" lane: remember the selections just before cancelling the bets (don't forget to choose the option "Remember selections' bets", then cancel the bets and place new ones using the bu_backp of the remembered selections as a reference.

"cancel then back" would also work in your case, but in order to make it work in Test Mode you will have to turn on "Delay placing and cancelling Test Bets" in the "Test Mode" settings tab, as otherwise test bets will be cancelled immediately, unlike real bets.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 63
Re: Update amount on unmatched bet
« Reply #3 on: 05 Sep 2017, 15:02 »
Thanks to both, the remember option worked as I wanted :-)

 

Please note, BetFair is seems to be currently OFFLINE