@ayinla/betfair

3.0.0 • Public • Published

Betfair · Build Status

Promise based betfair api wrapper

Documentation.

installation

$ npm install @ayinla/betfair

setup

Add your api key, username and password to environment variables

export apiKey="appkey"
export username="human"
export password="enthusiast"

The library can then be used as follows:

>>> import  { login , listEventTypes} from '@ayinla/betfair' 

>>> const { apiKey, username, password } = process.env;

>>> const { token } = await login(apiKey)({ username, password})

>>> const eventTypes = listEventTypes(API_KEY, token)({filter: {}})

Readme

Keywords

none

Package Sidebar

Install

npm i @ayinla/betfair

Weekly Downloads

12

Version

3.0.0

License

MIT

Unpacked Size

9.05 kB

Total Files

4

Last publish

Collaborators

  • ayinla