Author Topic: Check market exists  (Read 1217 times)

Tags:
  • All members
  • Posts: 80
Check market exists
« on: 29 Nov 2018, 13:12 »
Hi,

Is there anyway to check if a particular type of marlet exists in your list?

So my betting starts on the OU 0.5 so if i load markets that are inplay and goals are scored then that market doesnt exists anymore when refreshed, so i want to be able to delete the rest if its not there to save system resources.

Any help appreciated guys

kev

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Check market exists
« Reply #1 on: 29 Nov 2018, 15:52 »
hi
you would have to use the market prefixes to check each market has no matched and unmatched bets , then record the market parent ID using a variable after a certain time limit to give any bets that might have been sent out chance to record and if there has been a goal scored.
then in your delete trigger you would have a condition to delete any market with the parent ID that was recorded by the first trigger.
it will only delete monitored markets of the same market parent ID

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.

  • All members
  • Posts: 80
Re: Check market exists
« Reply #2 on: 29 Nov 2018, 17:20 »
Hi mcbee,

As i was reading this what i could do is check if market_score1+market_score2 is greater than 0, but then add condition that sees football6_market_settled_pl is equal 0, but i dont want it to delete an event if there has been betting in the 0.5, that solves 1 side but it doesnt really do what i want it to do.

So could i employ something like this but for markets where the variable football6_market_settled_pl is not set, will global user variables work here? As if the 0.5 dont exist then that particular var doesnt exists.

Thanks
Kev

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Check market exists
« Reply #3 on: 29 Nov 2018, 17:26 »
hi
Quote
it doesnt really do what i want it to do.

what do you want it to do

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.

  • All members
  • Posts: 80
Re: Check market exists
« Reply #4 on: 30 Nov 2018, 18:22 »
Hi mcbee,

Basicaly when the markets load, and the 0.5 market doesn't exist and there was no betting in the 0.5 then I want to remove all the markets in that event group rather than have them refresh all the time which kills resources because no betting will take place at all so pointless having them on there.

kev

  • Administrator
  • Posts: 8826
  • Gender: Female
*
Re: Check market exists
« Reply #5 on: 02 Dec 2018, 09:40 »
Hi Kevin,

Just make this trigger:


The idea is to check any parameter of the Over/Under 0.5 market in the current football match. If the O/U 0.5 market is missing, the condition will always be false, so any market from this match will be automatically deleted.
The second condition is needed to wait for a few refreshes just to make sure that O/U 0.5 starts refreshing before the markets are deleted (otherwise they might be deleted before the program could realise that the market does exist).
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

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

  • All members
  • Posts: 18
Re: Check market exists
« Reply #6 on: 03 Dec 2018, 22:32 »
Hi,

Sorry for delay, thanks for that!

kev

 

Please note, BetFair is seems to be currently OFFLINE