New update today... A bit smaller in size this time
As mentioned last time, if you want to work with historical data, my pull request is still pending. Therefore you should use my forked version of the trading_ig library until then.
ChangesNew: Store and Data notifications tested and working New: Samples updated to print Store and Data notifications New: Updated granualarity check to only make the check if Backfilling, Historical or Backfill_Start are required. This allows you to work with any timeframe using tick data for live trading only.
NOTE: Backfilling and Backfill_Start are not yet supported. The check mentioned above is in preparation for those features being supported. Historical data download is supported.
Current FunctionalityBasic instrument streaming Performs the open position check when initialized to track existing positions Opening and closing of simple Market orders using the self.buy() and self.close() is now supported. Set IG currency code as a store initialization parameter (Default GBP). Stop order creation and cancellation supported. Limit order creation and cancellation supported. expiry, guaranteed_stop, time_in_force, and good_till_date parameters Improved streamer setup. Can use the same streamer for multiple get_instruments rather than creating multiple streamers Manual pull of cash and value Account cash and value live streaming FIX: Level Set during order creation caused MARKET Orders to be rejected can now all be passed as key word * arguments during order creation and handled appropriately. Defaults are used where no kwarg is passed. Historical data download for backtesting Printing of remaining data download allowance Sample script for historical data download testing.