Coder Social home page Coder Social logo

list_market_book not working? about betfair HOT 2 CLOSED

thepanu avatar thepanu commented on July 29, 2024
list_market_book not working?

from betfair.

Comments (2)

mikecmpbll avatar mikecmpbll commented on July 29, 2024

Looks like listMarketBook just takes the marketIds as a root parameter, rather than nested in filters (https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/listMarketBook). It's also expecting an array value. The following works for me:

client.list_market_book({ marketIds: ["1.118451619"] })

returning:

[{"marketId"=>"1.118451619",
  "isMarketDataDelayed"=>false,
  "status"=>"OPEN",
  "betDelay"=>0,
  "bspReconciled"=>false,
  "complete"=>true,
  "inplay"=>false,
  "numberOfWinners"=>1,
  "numberOfRunners"=>3,
  "numberOfActiveRunners"=>3,
  "lastMatchTime"=>"2015-04-26T16:55:34.806Z",
  "totalMatched"=>4395.5,
  "totalAvailable"=>423908.05,
  "crossMatching"=>true,
  "runnersVoidable"=>false,
  "version"=>967232319,
  "runners"=>
   [{"selectionId"=>55270,
     "handicap"=>0.0,
     "status"=>"ACTIVE",
     "lastPriceTraded"=>2.0,
     "totalMatched"=>2368.15},
    {"selectionId"=>55265,
     "handicap"=>0.0,
     "status"=>"ACTIVE",
     "lastPriceTraded"=>4.1,
     "totalMatched"=>1833.26},
    {"selectionId"=>58805,
     "handicap"=>0.0,
     "status"=>"ACTIVE",
     "lastPriceTraded"=>3.9,
     "totalMatched"=>194.08}]}]

from betfair.

thepanu avatar thepanu commented on July 29, 2024

Yup, works now. Thanks for the help.

from betfair.

Related Issues (10)

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.