Comments (2)
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.
Yup, works now. Thanks for the help.
from betfair.
Related Issues (10)
- Socket
- [Question] - Listen for events HOT 2
- Want to call betfair API
- list_market_book(market_id), client returns {"detail"=>{}, "faultcode"=>"Client", "faultstring"=>"DSC-0008"} HOT 2
- Initialisation HOT 4
- Support keep-alive HOT 6
- Login via Proxy / VPN HOT 35
- Marketbook request with EX Best Offers HOT 1
- Using RPC to access the API HOT 2
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 betfair.