Amount to Lay/Back at SP

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
danieljohnturner
Posts: 4
Joined: Sun Jun 10, 2012 8:47 pm

Hi,

I wonder if someone could help me with the following, I have exhausted the AI chatbot and unfortunately not quite getting where I need to be!

I am trying to capture the amounts currently committed to the Betfair Starting Price pools for each runner before the off.

I created two Stored Values:

* `BackAtSPAmt`
* `LayAtSPAmt`

At present, I have configured them as:

* Money available to Back at `Actual SP`
* Money available to Lay at `Actual SP`

However, both values constantly return `0` for every runner.

I now suspect this is because these settings are looking for ordinary exchange liquidity at the Actual SP price, rather than the money submitted specifically to the BSP pools. Also, the Actual SP is not determined until the market is reconciled.

The Betfair API appears to expose the relevant BSP pool data through:

* `backStakeTaken`
* `layLiabilityTaken`

Is there any way to access these values through Bet Angel Stored Values or Guardian automation?

Specifically, I want to know, before the race starts:

1. The total back stakes submitted at SP for each runner.
2. The total lay liability submitted at SP for each runner.
3. Ideally, the individual price and amount bands making up each SP pool.

Can Bet Angel expose this information directly, or would I need to retrieve it separately through the Betfair API?

I have attached my rules file in case I have simply configured the Stored Values incorrectly.

Thanks.
Post Reply

Return to “Bet Angel - Automation”