Betfairutil

Latest version: v0.7.0

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.7.0

Added

* Add get_inplay_bet_delay_from_prices_file function
* Add is_market_one_tick_wide function
* Add is_market_contiguous function
* Add examples
* Add virtualise_two_runner_price

Changed

* Drop support for Python 3.7 and 3.8
* Enable get_market_time_as_datetime to work on market definitions as well as market books
* Enable get_seconds_to_market_time to work on market definitions as well as market books
* Replace deepcopy with pickle in remove_bet_from_runner_book

Fixed

* Handle RunnerBooks with dictionary priceSizes in remove_bet_from_runner_book [47](https://github.com/mberk/betfairutil/issues/47)

0.6.3

Changed

* Handle markets which don't turn in play in get_last_pre_event_market_book_from_prices_file

0.6.2

Added

* datetime_to_publish_time function

0.6.1

Changed

* Handle None in publish_time_to_datetime

0.6.0

Added

* Order book related functions:
* calculate_available_volume (jorgegarcia7)
* get_mid_price
* Prices files related functions:
* get_inplay_publish_time_from_prices_file
* get_last_pre_event_market_book_from_prices_file
* get_total_volume_traded_from_prices_file
* Race stream related functions:
* calculate_haversine_distance_between_runners
* get_number_of_jumps_remaining
* get_race_leaders
* Race card related functions:
* get_is_jump_from_race_card

Changed

* Made get_final_market_definition_from_prices_file more efficient
* Race card extraction functions now work on both dictionaries and paths to files

0.5.1

Added

* Functions for working with MarketDefinition objects:
* create_market_definition_generator_from_prices_file
* get_all_market_definitions_from_prices_file
* get_winners_from_prices_file

Changed

* Use isinstance() wherever type() was being used
* Improved create_combined_market_book_and_race_change_generator
* Added type hint
* Added docstring
* Now generates pairs indicating which stream each object came from

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.