GithubHelp home page GithubHelp logo

betfairutil's People

Contributors

jorgegarcia7 avatar liampauling avatar mberk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

betfairutil's Issues

Make pandas an optional dependency

Pandas is currently only required if using the functions market_book_to_data_frame and prices_file_to_data_frame. In deployments where these functions are not used, requiring pandas to be installed is unnecessary bloat

Simple example on how this works

Hi there,

I stumbled across this repo and I'm interested in getting betfair pricing data to a pandas dataframe. I'm having limitations using delayed key and would like to use streaming.

Could you upload a simple example for instance how to get premier league match data in a dataframe via streaming? Or any league for that matter?

Thanks

Handle event-level historic prices files

Currently, these files are not correctly handled by read_prices_file, prices_file_to_data_frame or prices_file_to_csv_file

Specifically, only the first market book is handled at each iteration of the historical stream generator

StreamListener `debug` param deprecated

There is an small error using function prices_file_to_data_frame.

~/.local/lib/python3.8/site-packages/betfairutil/init.py in prices_file_to_csv_file(path_to_prices_file, path_to_csv_file, **kwargs)
715 path_to_prices_file: str, path_to_csv_file: str, **kwargs
716 ) -> None:
--> 717 prices_file_to_data_frame(path_to_prices_file, **kwargs).to_csv(
718 path_to_csv_file, index=False
719 )

~/.local/lib/python3.8/site-packages/betfairutil/init.py in prices_file_to_data_frame(path_to_prices_file, should_output_runner_names, should_format_publish_time, max_depth)
752 stream = trading.streaming.create_historical_generator_stream(
753 file_path=path_to_prices_file,
--> 754 listener=StreamListener(
755 max_latency=None, lightweight=True, debug=False, update_clk=False
756 ),

TypeError: init() got an unexpected keyword argument 'debug'

Checking the historic commit at bflw I see that:

debug param to be deprecated from v2.15.0 and handled explicitly

Improve README

The README could do with some love

  • Badges
  • Hype
  • Examples

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.