Author Topic: lay at back price, and cancel after one second  (Read 3471 times)

Tags:
  • All members
  • Posts: 60
lay at back price, and cancel after one second
« on: 21 Jan 2013, 21:51 »
Hi to all. Im newbie in trigger developing, and i need your help to develop a trigger for test an idea on horse racing in play.

Basically i need to lay at actual back price and if the bet is unmatched cancel it one second later. Also i need to put a lot of bets since the price is changing all the time. But always cancelling the unmatched bets one second later

This would be an example.

The Actual back price is 13, so i want  send a lay bet at 13, and if the bet is matched perfect but if not, i need cancel it. Imagine, 5 seconds later the back price is 16, so the trigger would send a lay bet at 16 and one second later cancel it ifs unmatched.

So basically i need: Lay at back price all the time and cancel unmatched bets each second.

Is possible to do this?

Regards

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: lay at back price, and cancel after one second
« Reply #1 on: 21 Jan 2013, 23:19 »
hi
you need the fill or kill part of this set of triggers
http://marketfeeder.co.uk/solutions/miscelaneous-betting/matching-bets/

BUT, a bet every second will take you past the limit of 1000 transactions per hour, so you will have betfair charges to pay for.


mcbee
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.

  • Nerd
  • Élite
  • Posts: 462
  • Gender: Male
  • I think I could be on to something here!
*
Re: lay at back price, and cancel after one second
« Reply #2 on: 22 Jan 2013, 08:12 »
Use Cancel All
Condition where number of unmatched bets is > 0

Once MFP has picked up the bet it will cancel it. Be careful ... it can take 2-5 seconds for MFP to see the bets!
Fortune favors the brave!

  • All members
  • Posts: 60
Re: lay at back price, and cancel after one second
« Reply #3 on: 22 Jan 2013, 21:11 »
Thanks for the repplys.

Ok i will use cancel bets. But....

Why it can take 2-5 seconds for MFP to see the bets?

How i can correct it?

Regards

  • Nerd
  • Élite
  • Posts: 462
  • Gender: Male
  • I think I could be on to something here!
*
Re: lay at back price, and cancel after one second
« Reply #4 on: 23 Jan 2013, 09:26 »
You can't really .. remember there is a 1 second delay for in-play before the exchange process the bet .. add round trip time and exchange processing time you're looking at 2 seconds minimum.

You can update the bet list with every refresh, but be careful of the request limit.
Fortune favors the brave!

 

Please note, BetFair is seems to be currently OFFLINE