{"repo":"betcode-org/betfair","free":true,"listed":false,"github":"https://github.com/betcode-org/betfair","clone":"git clone https://github.com/betcode-org/betfair.git","description":"betfairlightweight - Betfair API-NG python wrapper (with streaming)","language":"Python","stars":514,"topics":["betfair","trading","streaming","api-wrapper","python"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"betfairlightweight Lightweight, super fast (uses C and Rust libraries) pythonic wrapper for Betfair API-NG allowing all betting operations (including market and order streaming) and account operations, see examples. docs join betcode slack group Currently tested on Python 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14. installation To use C/Rust libraries install with setup In order to connect to the Betfair API you will need an App Key, SSL Certificates and a username/password. App Key Follow these instructions to get your app key, you can either use a delayed or live key. SSL certificates Follow these instructions to set up your SSL certificates. Save your .ctr and .key files to a local directory. The default directory where the library is looking for the keys is '/certs' but you can specify any other directory. Using the library The library can then be used as follows: or the following for interactive login with no certs (not as secure) Following endpoints are available: - trading.login - trading.login interactive - trading.keep alive - trading.logout - trading.betting - trading.account - trading.navigation - trading.scores - trading.streaming - trading.historical - trading.in play service - trading.race card streaming Currently two listeners available, below will run the base listener which prints anything it receives. Stream listener is able to hold an order stream or a market stream (one per listener). The listener can hold a cache and push market books/order books out via a queu","default_branch":null,"files":null,"tree":[],"storefront":"/r/betcode-org","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/betcode-org/betfair/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}