jimibt wrote: ↑Thu May 16, 2024 9:00 am
Jolissa wrote: ↑Thu May 16, 2024 2:27 am
Thanks for all the responses, guess I will have to park it for a while.
I'm a bit surprised that you cannot get the Profit or Loss result for an individual bet back as a stored value, but If I am reading correctly it's something we may have in the future.
you could work around this by setting a sv on the selection when it's matched (for example back1, back2, back3.. etc). Then, you could have a rule that reconciles the p&l of the selection at an individual level, based on the sv (back1,2,3) being set. This could be done on a rule using the inplay time offset and reconciled when the market is suspended or closed. You'd set the condition to say:
If Back(n) is set and there are mathced bets for it, then grab the value of the greenup for selection total and add it to your running total for that strategy.
Fag packet analysis!!
Just to add to this Jim, this is also possible via the BA API, using the "selections win status" as a text Stored Value
I'm doing all my entry placement via the BA APi these days, and if you retain the selectionId, entry price in a dictionary, getting BA to save the win status (winner/loser) on market closure, you can do a GET request for any markets with that SV set, then match the status to the selectionId, you can calc P&L and save to a csv for that strat. That then gives you the possibility of a separate P&L for each strat, plus virtual banks, % staking etc etc