Author Topic: filtering on start time of race  (Read 1090 times)

Tags:
  • All members
  • Posts: 62
filtering on start time of race
« on: 03 Aug 2022, 07:24 »
Hi

I have seen that there is an event_start which gives data and time, and also an event_start_timestr which is a string

is there a way to add selection criteria on races that start before 5pm every day?

thanks, Gary   

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: filtering on start time of race
« Reply #1 on: 03 Aug 2022, 09:12 »
Hello Gary,

It's kind of tricky one:
1. You can't do that within the Market Locator. So you have to add all of them (met other conditions) and then delete ones starting after 5pm
2. The triggers are executed on refreshed markets only. So to delete market you have to refresh it at least once.
3. The condition for deleting the markets

Code: [Select]
Selection's Trigger expression event_start - INTEGER(event_start) is greater than 17/24
;)
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 62
Re: filtering on start time of race
« Reply #2 on: 03 Aug 2022, 14:48 »
thanks Tim

Im guessing that I just put that in a trigger condition so that trigger wont run against any event that start after 5pm?

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: filtering on start time of race
« Reply #3 on: 03 Aug 2022, 14:56 »
My example deletes markets starting after 5 pm.
So if you need your trigger to fire on markets starting before 5 pm, then change to 
Code: [Select]
Selection's Trigger expression event_start - INTEGER(event_start) is LESS than 17/24
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 62
Re: filtering on start time of race
« Reply #4 on: 03 Aug 2022, 15:00 »
thank you :)

 

Please note, BetFair is seems to be currently OFFLINE