Author Topic: Selection Parameter - Index  (Read 1077 times)

Tags:
  • All members
  • Posts: 8
Selection Parameter - Index
« on: 10 Jan 2023, 08:37 »
Hi, newbie here.

Maybe this is obvious but in the context of horse racing, what is the Selection Parameter - Index?

Thanks

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Selection Parameter - Index
« Reply #1 on: 10 Jan 2023, 09:47 »
The index in the selections list sorted as on BetFair. Regardless on their prices (Rank)
So, for example in Match odds soccer market the home team always has index 1, away team - 2, and the draw - 3.
For horse racing it's less useful because the index could change due to selection withdraw.
If you need to "save" selection for future use "remember" trigger action or sel_id variable (it's unique ID of the selection exchange-wide).
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 8
Re: Selection Parameter - Index
« Reply #2 on: 10 Jan 2023, 10:08 »
Thanks. Not that useful for in-play then? Is there any parameter which is related to a horses place when the race is in-play?

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Selection Parameter - Index
« Reply #3 on: 10 Jan 2023, 10:15 »
Do you mean 1 for the favourite, etc.? It's "Selection's Rank" option or sel_order trigger variable.
If you need the place the selection got after the market settlement then sel_place (the market have to be settled of course).
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 8
Re: Selection Parameter - Index
« Reply #4 on: 10 Jan 2023, 10:24 »
No I mean the place in play i.e the leader, 2nd, 3rd etc at that point in the race. Which may not be in price order of course?

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Selection Parameter - Index
« Reply #5 on: 10 Jan 2023, 10:30 »
Yes, then it's "Selection's Rank" or sel_order trigger variable. Available all the time, not in-play only.
So it's selection's index in the list sorted by back price, then by lay price, then by last traded price:

Code: [Select]
Back   Lay   LTP   Rank
1.1    1.2   1.3   1
2.1    2.2   2.2   2
2.1    2.3   2.1   3
2.1    2.3   2.3   4


Quote
Which may not be in price order of course?
I'm sure it's the price. Why not?
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 8
Re: Selection Parameter - Index
« Reply #6 on: 10 Jan 2023, 10:33 »
But the leader of the race at any time doesn't have to be the lowest price. It will be by the very end of the race but may not be before then.

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Selection Parameter - Index
« Reply #7 on: 10 Jan 2023, 10:42 »
Unfortunately there is no way to "see the race" with the software. And BetFair (and nobody) doesn't provide such information as number in realtime.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 8
Re: Selection Parameter - Index
« Reply #8 on: 10 Jan 2023, 13:11 »
OK thanks. It's not even that easy watching a live stream because the camera angles don't always allow you to identify the horses. In fact it can't be that difficult - just put a GPS on each horse.

Thanks for your time answering my questions.

 

Please note, BetFair is seems to be currently OFFLINE