Author Topic: Markets Lay and Back Volume  (Read 515 times)

Tags:
  • All members
  • Posts: 15
  • Gender: Male
Markets Lay and Back Volume
« on: 29 Mar 2022, 08:22 »
Is there a way of calculating the total lay and back volume for the whole market at a given point in time? What I'm looking for is to be able to calculate the POM and WOM for a Market rather than each individual selection.

  • Moderator
  • Posts: 3606
*
Re: Markets Lay and Back Volume
« Reply #1 on: 30 Mar 2022, 14:46 »
Hi
Try the attached trigger in test mode and see if does what you need.
Every second it sums all selections back_volume and all selections lay_volume in variables: mbv and mlv

In the settings if Download all price offers is ticked, it will give the market back and lay offered volume for all prices. If it is unticked, it will be for best 3 back and lay prices.

The trigger recalculates every second. If all price offers is on, that adds an extra request to the API, so it may skip a refresh once in a while and show zero. In this case just decrease the repetiton rate of the trigger to say no more often than 5 secs, and perhaps add a condition in your betting trigger to check mlv or mbv is greater than 0.
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: 15
  • Gender: Male
Re: Markets Lay and Back Volume
« Reply #2 on: 31 Mar 2022, 11:34 »
Thanks Mark, I'll give it a go.

 

Please note, BetFair is seems to be currently OFFLINE