API - Automation - UTC TimeStamp

Help improve Bet Angel.
Post Reply
User avatar
tlkjb
Posts: 86
Joined: Thu Aug 26, 2021 10:08 am

At the moment you have in the Automation the option to either save "the seconds until the Event Start Time" or "the Inplay Time in seconds" to a Stored Value.

Both are not absolute time values (they are in their value "only" relative to the Event Start Time and the Inplay Time), so it would be great to get the UTC timestamp as an absolute time value.

Also this would be quite helpful if you use Stored Values with the API outside of Bet Angel
sniffer66
Posts: 1666
Joined: Thu May 02, 2019 8:37 am

+++1

I have mentioned this before, and it would be another useful check when trying to cross match in play football data from other sources, that are being passed to Guardian. Given team names differ site to site, being able to use the start time as an additional check would make the matching far more accurate
User avatar
tlkjb
Posts: 86
Joined: Thu Aug 26, 2021 10:08 am

@sniffer66 : I wasn't aware of, that this has been requested before. So sorry, for not mentioning that
sniffer66
Posts: 1666
Joined: Thu May 02, 2019 8:37 am

tlkjb wrote:
Wed Apr 12, 2023 12:49 pm
@sniffer66 : I wasn't aware of, that this has been requested before. So sorry, for not mentioning that
No problem. You wouldn't have known :D
sniffer66
Posts: 1666
Joined: Thu May 02, 2019 8:37 am

Can I just add that being able to pass the KO time as Unix\Epoch Time would make life a lot easier when coding, it being a single standard format
User avatar
tlkjb
Posts: 86
Joined: Thu Aug 26, 2021 10:08 am

For anyone interested, that's a way to get the UTC Time in BetAngel (as a workaround solution):

Find a market that is far in the future. I use the FIFA World Cup 2026 Winner Market. The Event Start Time of the FIFA World Cup 2026 (on 8th June 2026) has a UTC TimeStamp value of 1780930800.

Create a servant / autotmation that does on calculation:

currentUTCTimeStamp = 1780930800 - "Seconds To Event Start"

Use the Stored Value Type "Bet Angel", so you have it available for all your markets.

It's not perfect, but basicaly does the job
sniffer66
Posts: 1666
Joined: Thu May 02, 2019 8:37 am

tlkjb wrote:
Thu May 11, 2023 11:51 am
For anyone interested, that's a way to get the UTC Time in BetAngel (as a workaround solution):

Find a market that is far in the future. I use the FIFA World Cup 2026 Winner Market. The Event Start Time of the FIFA World Cup 2026 (on 8th June 2026) has a UTC TimeStamp value of 1780930800.

Create a servant / autotmation that does on calculation:

currentUTCTimeStamp = 1780930800 - "Seconds To Event Start"

Use the Stored Value Type "Bet Angel", so you have it available for all your markets.

It's not perfect, but basicaly does the job
Oh, nice one ! Cheers for posting. I can use that
Post Reply

Return to “Suggestions”