{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet/6"}],"enrichment":{"capability":"A Python wrapper for the Betfair API-NG that handles betting operations, market and order streaming, and account management with optional C and Rust acceleration.","skillfed_tags":["betting-exchange","streaming-api","trading-bot"],"use_cases":["Build a trading bot that subscribes to live market streams, processes price updates, and places orders based on custom logic.","Backtest a betting strategy by replaying historical market data through the same streaming listeners used for live trading.","Query account balances, statement history, and available funds programmatically for portfolio management or reporting.","Monitor in-play events and race status in real time to trigger conditional bets or risk management actions.","Aggregate market data across multiple event types or regions and export to CSV or a database for analysis."],"what_it_does":"betfairlightweight is a client library that bridges Python code to the Betfair exchange API, handling authentication, market queries, order placement, and real-time streaming of market and order data. It wraps the Betfair API-NG endpoints and provides pythonic abstractions for betting operations (listing events, placing bets, managing orders) and account operations (checking balances, viewing statements). The library can optionally use C and Rust libraries for faster parsing and serialization when installed with the [speed] extra.\n\nTypically used by traders and bots that need to connect to Betfair programmatically\u2014either for one-off queries via the REST endpoints or for continuous market monitoring and order management via streaming listeners. It handles session management (login, keep-alive, logout), caches market and order state, and can push updates through a queue for asynchronous processing. Historical data can also be parsed and replayed using the same streaming infrastructure.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries no security vulnerabilities, and is licensed permissively. Install it if you need a programmatic Betfair client; the only real prerequisite is having valid Betfair credentials and understanding the API authentication model (app key, SSL certs, or interactive login)."},"id":"betfairlightweight","links":{"html":"https://skillfed.io/packages/betfairlightweight","md":"https://skillfed.io/packages/betfairlightweight.md","pypi":"https://pypi.org/project/betfairlightweight/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-16","license_spdx":null,"license_treatment":"permissive","name":"betfairlightweight","python_support":"supports_current","summary":"Lightweight python wrapper for Betfair API-NG"},"popularity":{"monthly_downloads":73990,"position":14893,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.23.2"}
