Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Having issues with placeorder #13

Closed
Bl4cksunLtd opened this issue Jan 24, 2018 · 3 comments
Closed

Having issues with placeorder #13

Bl4cksunLtd opened this issue Jan 24, 2018 · 3 comments

Comments

@Bl4cksunLtd
Copy link
Contributor

Trying the current revision and it is failing trying to place a bet. I am definately logged in with the correct application string, certificates, username and password as I can interrogate the market catalogue.
The error I am getting is:
Error with code - Client and string - DSC-0018
Although I am trying to place a limit bet, changing my code to match the example in the order_test file (with suitable marketId and selection Id) also fails with the same error.
Any suggestions?

@Nyarum
Copy link
Owner

Nyarum commented Feb 6, 2018

@Bl4cksunLtd hey, I'll check it and will give an answer for next week

@Nyarum
Copy link
Owner

Nyarum commented Feb 17, 2018

@Bl4cksunLtd hey my friend, I checked it and seems that they changed some API things. As it will fixed from me I ping you here :)

@Bl4cksunLtd
Copy link
Contributor Author

This seemed to be caused by the inclusion of the unused 'empty' order types in the filterbody. Marshal isn't detecting the struct as empty and therefore ignores the omitempty flag. In addition due to precision issues sometimes float64s get Marshalled to x.yyyyyyyyyyy which BetFair reject.
I've submitted a PR which covers these issues #16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants