I am trying to get the log to display the bet ID, price and amount of the first bet matched once the market has gone in play.
To do this I am modifying a stored value to store "matched bet information of a selection". It is triggered by a separate signal rule that is signalled when the number of matched bets in the market is > 0 and the time since the signal was modified is between 1 and 2 seconds.
I added this signal as a separate rule because I was only getting intermittent results. I.e. sometimes it would correctly log the data I want, but mostly it didn't. But that didn't change anything. The data is still only logged intermittently or not at all.
Is there some secret setting I'm missing?
Store matched bet information of a selection
- abgespaced
- Posts: 176
- Joined: Sun Aug 23, 2020 2:25 am
- Location: Australia
You do not have the required permissions to view the files attached to this post.
Last edited by abgespaced on Sat Sep 19, 2020 1:02 am, edited 1 time in total.
- abgespaced
- Posts: 176
- Joined: Sun Aug 23, 2020 2:25 am
- Location: Australia
You do not have the required permissions to view the files attached to this post.
- abgespaced
- Posts: 176
- Joined: Sun Aug 23, 2020 2:25 am
- Location: Australia
My bets are placed pre-off, kept in-play and matched in-play. I just truncated the log to keep the screen clear.
You can see my signal "firstBet" has been set to "1" which means guardian itself has detected the number of bets matched is > 0 as per my rules.
Here's what's normally above my logs (I had 12 bets matched in-play in this particular market):
You do not have the required permissions to view the files attached to this post.
This file will save the bet info once a bet is matched on the selection.
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: AMOUNT = 0.41
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: PRICE = 9.2
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: REF = 10006
20/09/2020 09:41:54: £ 15.00 Lay bet placed on 1. Altana Blue at 19. Fully matched at 19. Ref: 10007
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: AMOUNT = 15
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: PRICE = 19
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: REF = 10007
20/09/2020 09:42:40: Market is in-play
20/09/2020 09:41:48: £ 20.00 Lay bet placed on 2. Border Cross at 9.2. Entirely unmatched when it initially reached the market. Ref: 1000620/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: AMOUNT = 0.41
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: PRICE = 9.2
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: REF = 10006
20/09/2020 09:41:54: £ 15.00 Lay bet placed on 1. Altana Blue at 19. Fully matched at 19. Ref: 10007
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: AMOUNT = 15
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: PRICE = 19
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: REF = 10007
20/09/2020 09:42:40: Market is in-play
You do not have the required permissions to view the files attached to this post.
- abgespaced
- Posts: 176
- Joined: Sun Aug 23, 2020 2:25 am
- Location: Australia
It works! You're a bloody legend. Thanks mateDabbla wrote: ↑Sun Sep 20, 2020 9:45 amThis file will save the bet info once a bet is matched on the selection.
STORE MATCHED BET.baf
20/09/2020 09:41:48: £ 20.00 Lay bet placed on 2. Border Cross at 9.2. Entirely unmatched when it initially reached the market. Ref: 10006
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: AMOUNT = 0.41
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: PRICE = 9.2
20/09/2020 09:41:49: [G_Auto] : Store Value for 2. Border Cross: REF = 10006
20/09/2020 09:41:54: £ 15.00 Lay bet placed on 1. Altana Blue at 19. Fully matched at 19. Ref: 10007
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: AMOUNT = 15
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: PRICE = 19
20/09/2020 09:41:54: [G_Auto] : Store Value for 1. Altana Blue: REF = 10007
20/09/2020 09:42:40: Market is in-play