market_id=market[1]['market_id']mu_bets=self.api.get_mu_bets(market_id)ifmu_bets=='NO_RESULTS':# we have no bets on this market...self.check_strategy(market_id)# check if session is still OKifself.no_session:login_status=self.login(uname,pword,prod_id,vend_id)s='API ERROR: ...
response- response from the API response.statusCode,response.headers- response information response.body- parsed response body, can be JSON response.bodyRaw- received response body response.compressed- whether compression was used response.compressionRatio- response length to compressed response length ...
git clone git@github.com:AlgoTrader/betfair.git cd betfair npm install npm run build betrair API was completly rewritten in ES2015 and requires build step before usage Synopsis Login to Betfair var betfair = require('betfair'); var session = new betfair.BetfairSession('yourApllicationKey')...
In order to connect to the Betfair API you will need an App Key, SSL Certificates and a username/password. Followtheseinstructions to get your app key, you can either use a delayed or live key. Followtheseinstructions to set up your SSL certificates. Save your .ctr and .key files to a...