npm

Need private packages and team management tools?Check out npm Orgs. »

betfair-api-node

1.0.0 • Public • Published

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';
    

install

npm i betfair-api-node

Downloadsweekly downloads

14

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability