Qf Lib Versions Save

Modular Python library that provides an advanced event driven backtester and a set of high quality tools for quantitative finance. Integrated with various data vendors and brokers, supports Crypto, Stocks and Futures.

v3.0.0

2 months ago

This release adds the support for Python 3.10 and 3.11. Python 3.7 support is being dropped.

Increased the minimum and maximum supported versions of the following dependencies:

Library Min supported version Max supported version
pandas 1.4.0 2.0.3
xarray 0.21.0 2022.9.0
numpy 1.19.3 1.26.4
scipy 1.6.3 1.11.4
matplotlib 3.4.0 3.6.1
Pillow 9.0.0 10.2.0
statsmodels 0.13.0 0.13.5
cvxopt 1.2.7 1.3.2
requests 2.25.1 2.31.0

What's Changed

New Contributors

Full Changelog: https://github.com/quarkfin/qf-lib/compare/v2.2.10...v3.0.0

v2.2.10

8 months ago

New features and fixes:

  • RiskParityBoxesFactory accepts now AbstractPriceDataProvider instead of only BloombergDataProvider as the main data_provider
  • RiskParityBoxesFactory allows now to customize tickers for different economic environments (tickers_dict parameter)
  • Fixed BarChart class to allow creating unstacked charts
  • Added BloombergTickerMapper, which provides mapping between Bloomberg Tickers and FIGI identifiers
  • Added WaterfallChart

v2.2.9

9 months ago

New features and fixes:

  • DFTable - clean-up the code
  • Created unit tests for DFTable
  • Implemented the possibility of styling the header in DFTable
  • Implemented the possibility of styling the index on levels in DTTable
  • Fixed minor bugs for index showing in DFTable

Backwards incompatible changes:

v2.2.8

10 months ago

New features and fixes:

  • Added index visibility, style and class in DFTable
  • Supporting Bloomberg tickers with special characters in HAPI data provider
  • Added unit tests for HAPI data provider
  • StrategyMonitoringDocument - cleaning up returns and excess returns

v2.2.7

1 year ago

New features and fixes:

  • Added HAPI identifier type
  • Added parser tests with ISIN

v2.2.6

1 year ago

New features and fixes:

  • Changed TradingSession instance variable orders_filters, now initialized as empty list
  • Changed pd date range keyword in compute_duration, class PortfolioAnalysisSheet
  • Added new class IBFIGItoIBContractMapper, which is mapper that can be used to map FIGI defined IB contracts to the more specific ones.
  • Added more parameters for chart and ChartElement, such as savefig_settings

Backwards incompatible changes:

  • Changed SecurityType parameter for classes SecurityType and IBContract, from CONFUT to CONTFUT
  • Eliminated from price_field_to_str_map the parameter ticker in all data providers

v2.2.5

1 year ago

New features and fixes:

  • Updated IB Broker update to support data requests parsing
  • Updated document parameter from the generate_html method to Optional
  • Replaced frame.append method to pandas.concat in HistoricalDataProvider
  • Replaced .iteritems to .items in excel_exporter.py
  • Replaced union_many with union
  • Added type checks to convert_to_list function
  • Added unit tests as TestToListConversion for the convert_to_list function
  • Added pie chart variant to the available charts
  • Added support for MultiIndex formatting in the DFTables
  • Added new SecurityType - CONFUT
  • Fixed convert_to_list usage in PresetDataProvider
  • Fixed pandas Future Warning in the FuturesChain class
  • Fixed Future Warnings for get_loc function

Backwards incompatible changes:

  • BloombergBeapHapiParser now accepts a new parameter tickers_mapping

v2.2.4

1 year ago

New features and fixes:

  • Support exclude_weekends for PeriodicEvent for CalculateAndPlaceOrdersPeriodicEvent
  • Fixed aggregation of bars in the PresetDataProvider
  • Fixed company_name in settings JSON file
  • Added terminal identity to the settings
  • BloombergBeapHapiRequestsProvider accepts now optional parameter terminal_identity_sn
  • Abstract documents do not require logo paths and company name
  • Fixed non alphanumeric fields and tickers universe creation

Backwards incompatible changes:

  • _PeriodicRegularEvent accepts now run_on_weekends boolean as parameter

v2.2.3

1 year ago

New features and fixes:

  • Added currency parameter to BloombergBeapHapiDataProvider
  • get_tickers_universe in BloombergDataProvider supports now historical dates
  • EmailPublisher: mail_to, bcc and cc work now for a single string instead of requiring a list of strings
  • introduced BinanceAccountSettings class
  • Settings do not require any parameters to be initialized correctly

Backwards incompatible changes:

  • BinanceBroker accepts now BinanceAccountSettings instead of Settings
  • Removed data_provider form the constructor of BacktestTradingSessionBuilder

v2.2.2

1 year ago

Bug fixes and optimizations:

  • Optimized universe and fields id creation for the BloombergBeapHapiDataProvider
  • Fixed type conversion in the BloombergBeapHapiDataProvider parser
  • Added reset functionality to ErrorHandling class
  • Fixed get_current_values in BloombergDataProvider in case if one of many fields requested raises an Exception

New functionality:

  • Added field overrides to get_current_values and get_history requests in the BloombergBeapHapiDataProvider
  • Added tickers universe functionality to the BloombergBeapHapiDataProvider (get_tickers_universe function)