“Bet was not accepted within the expected timeframe” #67
Schwenckejr
started this conversation in
General
Replies: 3 comments 4 replies
-
Hi @Schwenckejr , Could you please give us more details, such as a reference bet request payload, response payload and http status so that we can investigate further? Regards, |
Beta Was this translation helpful? Give feedback.
3 replies
-
Can you elaborate on the the "stake" property in the place bet error response? Is that the adjusted amount that is allowed to be placed? The documentation doesn't mention what it does.
Secondly, the STAKE_ABOVE_MAX error never happens in the place bet error response. It happens when we check the status of the bet placed in the GET bet status endpoint, as the status in the response of the place bet endpoint is mostly PENDING_ACCEPTANCE.
…Sent from my iPhone
On Aug 22, 2023, at 10:45 AM, Klaus Gravenreuth ***@***.***> wrote:
@Schwenckejr<https://github.com/Schwenckejr>
After review, this is a general logic where the maxStake in the Feed API response is then used in the Trading API place bet request. Please make sure that the difference in time between these two calls is minimised so that you get the latest value.
Furthermore, please use the stake in the Trading API place bet error response for the latest information about the new max stake value which you can use to place a bet again. This is mentioned in our Trading API documentation<https://stg.cloudbet.com/api/?urls.primaryName=Trading#/Trading/PlaceBet>:
[place_bet_response]<https://user-images.githubusercontent.com/21211077/262290811-eb57f083-8adf-4ace-9232-863dbdc19bd9.png>
Please let me know if this clears up your doubts or if you still have any questions.
—
Reply to this email directly, view it on GitHub<#67 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BB5CG4MP3DJ3QSJZZDKEAETXWRWS7ANCNFSM6AAAAAA3PQNAKU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello Klaus
Thank you for your responses, I’m pretty sure I’ve worked it out now! At least no errors have been happening the past day, so fingers crossed.
Regards Thomas
…Sent from my iPhone
On Aug 25, 2023, at 5:48 AM, Klaus Gravenreuth ***@***.***> wrote:
Can you elaborate on the the "stake" property in the place bet error response? Is that the adjusted amount that is allowed to be placed?
Yes, that's right. It is mentioned in the documentation as part of the status response for certain status codes (as highlighted in my screenshot above):
stake: Stake in numeric format for given currency
STAKE_ABOVE_MAX - stake requested was above the current maximum stake on a selection. Please reference `stake` from response payload about the corrected value for retry
STAKE_BELOW_MIN - stake requested was below the current minimum stake on a selection. Please reference `stake` from response payload about the corrected value for retry
LIABILITY_LIMIT_EXCEEDED - your current liability limit on this event was exceeded. Please reference `stake` from response payload about the corrected value for retry
Secondly, the STAKE_ABOVE_MAX error never happens in the place bet error response. It happens when we check the status of the bet placed in the GET bet status endpoint, as the status in the response of the place bet endpoint is mostly PENDING_ACCEPTANCE
Yes, this could happen as the bets might not be accepted by our system immediately and require you to poll the bet status endpoint afterward. The same logic applies for the stake field in both these endpoints.
—
Reply to this email directly, view it on GitHub<#67 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BB5CG4OV5XIDVZDOCJPNQKTXXAN7XANCNFSM6AAAAAA3PQNAKU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Im often having issues placing bets with the API, as I’m receiving the error message:
“Bet was not accepted within the expected timeframe”
And i would verry much like to know if there is anything i can do to sort out this problem?
The same matches I’m able to place the bets manually, so it’s not a liquidity issue.
Regards Thomas
Beta Was this translation helpful? Give feedback.
All reactions