Giter Site home page Giter Site logo

Comments (5)

phillc73 avatar phillc73 commented on June 13, 2024

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.

bcaneco avatar bcaneco commented on June 13, 2024

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.

phillc73 avatar phillc73 commented on June 13, 2024

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.

Soccerama avatar Soccerama commented on June 13, 2024

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.

phillc73 avatar phillc73 commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.