betfair-api-node
v1.0.0
Published
Node wrapper for the betfair api
Downloads
17
Readme
betfair-api-node
Node wrapper for the betfair api
Installation
In your project, install the package: npm install betfair-api-node --save
Usage
var Betfair = require('betfair-api'),
betfair = new Betfair('APPKEY', 'USERNAME', PASSWORD);
betfair.listEvents({
"competitionIds":["31"]
}).then((response) => {
console.log(response);
});
betfair.listMarketCatalogue({
"eventIds": [EVENT_ID]
}, "50").then((response) => {
console.log(response);
})
Methods
- login
- logout
- getAccountDetails
- getAccountFunds
- getDeveloperAppKeys
- getAccountStatement
- listCurrencyRates
- listCompetitions
- listCountries
- listCurrentOrders
- listClearedOrders
- listEvents
- listEventTypes
- listMarketBook
- listRunnerBook
- listMarketCatalogue
- listMarketProfitAndLoss
- listMarketTypes
- listTimeRanges
- listVenues
- placeOrders
- cancelOrders
- updateOrders
- replaceOrders
more Examples
// Keep allive
var Betfair = require('betfair-api'),
betfair = new Betfair('APPKEY', 'USERNAME', PASSWORD, true);
// set locale
betfair.locale = 'fr';