Comments (5)
Honestly, I've never tried (or even considered) the possibility of placing such simultaneous orders. I'd have to look deeper to figure out what's failing.
As a workaround, have you tried iterating through a list? That is, rather than repeating the individual items within the placeOrders() function, loop through a list of selectionIDs and executing placeOrders() three times, once for each ID.
from abettor.
Thanks for your reply Phil.
That's precisely what I've done - running placeOrders() looped over selectionIDs. :)
That, however, led to another issue: due to small time delays in the API's answer to placeOrders(), some of the requests seem to get stumbled on the top of each other between iterations. As a result, some of the requests are not placed. Setting a little waiting period (1sec) between iterations solved the problem.
It'd still be great to be able to place 2+ simultaneous bets in one request inside placeOrders() though! Specially for inplay betting, when market volatility is so high that 1sec lags can display inconvenient price shifts.
Cheers
from abettor.
Thanks for the further feedback. I'll leave this issue open as something for me to investigate, specifically how to place faster simultaneous orders.
from abettor.
I had a look at this and managed to use a single placeOrder instruction to place back bets on Home, Draw and Away outcomes for a single Premier League game. Not sure if the httr related changes fixed this or if there is some other explanation.as I didn't check before those changes. I'd be interested to hear if you can get it to work now.
I used numbers for betSize and reqPrice but tested using characters for betSize and it still seemed to work. Agree that the issue of bets not being placed because of the delay is a problem and haven't worked out to solve that one yet. Suspect that checking the response in your code would help.
Should add that I only tested this with LIMIT bets as I only do sports so don't have the option of doing SP - and don't have a detailed understanding of it.
from abettor.
Based on @Soccerama feedback placing simultaneous bets should work. @bcaneco any chance you can confirm this?
I'll leave this issue open for a week or so before closing if no further feedback.
from abettor.
Related Issues (20)
- Additional Accounts API Calls HOT 4
- Regenerate Package Documentation HOT 1
- Support Spanish, Italian and Swedish end points HOT 1
- listRunnerBook Fails to Generate Documentation HOT 1
- placeOrders function does not include all fields HOT 10
- Rename checkBalance and listMarketPandL Functions HOT 2
- placeOrders not working correctly for some optional fields HOT 2
- getAccountStatement uses legacyData fields and code is messy HOT 1
- listCurrentOrders does not include all parameters HOT 1
- listClearedOrders is not correctly putting results into a dataframe and is instead providing one very long row. HOT 2
- Minor API change to listCurrentOrders - week commencing 9 August HOT 1
- Check valid login status HOT 5
- placeOrder function seems to not pass customerOrderRef on MARKET_ON_CLOSE bets HOT 1
- Help pulling market prices HOT 1
- Minor issue when trying to cancel individual betIds. Simple code fix has been proposed. HOT 3
- getAccountStatement crash with dead heat HOT 4
- getAccountStatement not returning all columns
- listMarketBook function returning identical results HOT 8
- The placeOrders function doesn't pass the handicap field to the API HOT 1
- date range in getAccountStatement not working correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abettor.