GithubHelp home page GithubHelp logo

betfair's Introduction

Betfair Golang Library

Betfair is the leading company in online betting exchange. They are currently developing the next generation API for developers which want to automate their betting systems. For more info, please refer to Betfair API-NG home.

I will write some articles here.

Please note that the only login method implemented is the non-interactive (bot) login.

TODO

  • Betting API: order-related methods
  • Betting API: listTimeRanges, listVenues
  • Betting API: add all params to methods
  • Betting API: add all params to market filter
  • Betting API: improve support for horse racing

Quick usage

See examples/*.

Account info:

go run examples/account_info.go -conf=betfair_test.conf.json

Output:

Alessandro De Donno (it)
	Available: EUR x.xx
	Exposure : EUR 0.00

Football events in GB:

go run examples/football_events.go -conf=betfair_test.conf.json

Output:

(...)
2014-01-04 15:00:00 +0000 UTC: [GB] Barnsley v Coventry (40 markets)
2014-01-04 15:00:00 +0000 UTC: [GB] Bolton v Blackpool (40 markets)
2014-01-04 15:00:00 +0000 UTC: [GB] Stoke v Leicester (78 markets)
2014-01-04 15:00:00 +0000 UTC: [GB] West Brom v C Palace (78 markets)
2014-01-04 15:00:00 +0000 UTC: [GB] Wigan v MK Dons (40 markets)
2014-02-18 19:45:00 +0000 UTC: [GB] Man City v Barcelona (3 markets)
2014-01-04 17:15:00 +0000 UTC: [GB] Arsenal v Tottenham (78 markets)
2014-01-04 17:15:00 +0000 UTC: [GB] Fixtures 04 January   (1 markets)
(...)

Tests

To run tests, you have to provide your credentials in the file

betfair_test.conf.json

You can find a sample configuration file in the main directory:

betfair_test.conf.json.sample

Please note that only username, password, certfile and keyfile are mandatory.

License

The library is dual licensed. For free software/open source projects, please refer to GPLv3. For commercial projects, please contact the author.

Note

I apologize for my poor English :-).

betfair's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.