Libraries
- requests<2.33.0
Improvements - Further depreciation fixes
Improvements - Pin dependencies
Libraries - py3.7 removed and 3.11 added - pydantic upgraded to 2.6.4 - requests<2.32.0 - python-decouple upgraded to 3.8
Improvements - Relax staking limitations for backers, in line with changes on exhange - Allow creation of bet requests by selection id, more performant than fixture/market type/competitor combination (which is retained)
Bug Fixes - Add outcome field to SelectionsForMarket
Bug Fixes - #38 fixed bet_request_get endpoint which had a broken each_way_active filter that prevented users from viewing any
each-way bets.
Bug Fixes - #36 fixed my_bets endpoint that only worked for back side bets due to one-sided field validation
Bug Fixes - #32 fixed the URL called for selections_for_market in betting.py - #28 remove sending of None in filters.py
Example Improvements
- dailyhorseracing - removed bet_request_get
- bettinghistory - removed bet_request_get and added my_bets with customer_strategy_ref example
Bug Fixes
- #22 BackersStats - removed from API
- #21 AccountPreferences - building, city, thoroughfare set to optional strings
Improvements
- #17 session timeout
- #18 start_date_time added to ActiveFixture
Improvements
- betcode-org migration
- __version__ added / setup updated
- GitHub actions added
- req-test added
- MIT Licence added
- ReadMe update
- docs added
Resource updates
- typing improvements
Resource update
- locality nullable
Line Markets Bug fix
- fix for line markets selections_for_market #9
- handicap param changed to string on active_selections & prices methods
ApiClient Changes (Breaking Changes)
- new personalised_production_url made a manditory paramater on the client
Baseendpoint (Breaking Changes)
- process_request_exception, check_bet_request_id, load_json_content, check_status_code changed to staticmethods
CustomerStrategyRef & CustomerOrderRef (Breaking Changes)
- is_valid_customer_order_ref & is_valid_customer_strategy_ref moved onto the class as a staticmethod (from utils)
- create_customer_order_ref & create_customer_strategy_ref moved to the class as classmethods (from utils)
Updated Testing
- All betting functions and resources re-tested to new BetConnect swagger spec
- exceptions classes
Examples Updated
- examples updated to reflect new required personalised_production_url
House Keeping
- Docstring updates
- gammar and spelling updates
ApiClient Changes (Breaking Changes)
- change of login endpoint to account endpoint (APIClient)
- new personalised_production_url to handle betconnect unique supplied user production urls
New Account Endpoint, Formerly Login (Breaking Changes)
- get balance moved from betting endpoint to account endpoint
- new get_user_preferences request added
- both balance and get_user_preferences are called now on login
- status function renamed to refresh_session_token
Betting Endpoint Functions Added (Breaking Changes)
- my_bets new function added
- get balance removed (moved to the accounts endpoint)
New Enums Helper Classes Created
- various enums now created to help find correct status for requests
Custom Exceptions
- custom exceptions now throw to provide more user specific information
Utils
- uuid and strategy hashing functions added
Tests
- betting and account resource tests added
- betting endpoint new functions tested (see above function additions)
- account endpoint new functions test (see above function additions)
Resource Name Changes (Breaking Change)
- ActiveBetsRequest renamed to ActiveBetRequests
New Examples Added
- account, bettinghistory, dailyhorseracing & datarequests
- example.py removed