Skip to content

v0.7.2 - EMK (Pension Fund) Support

Choose a tag to compare

@saidsurucu saidsurucu released this 29 Jan 17:09
· 21 commits to master since this release

New Features

EMK (Emeklilik Fonları) Support

bp.Fund() now supports pension funds (EMK) in addition to investment funds (YAT).

import borsapy as bp

# Explicit fund_type
emk = bp.Fund("KJM", fund_type="EMK")
print(emk.info['name'])
print(emk.history(period="1mo"))

# Auto-detection (tries YAT first, then EMK)
emk = bp.Fund("KJM")  # Automatically detects as EMK
print(emk.fund_type)  # "EMK"

# Screen pension funds
bp.screen_funds(fund_type="EMK", min_return_1y=30)
Fund Type Description
YAT Investment Funds (default)
EMK Pension Funds

Bug Fixes

  • Replay Mode Timezone Fix: Fixed replay_filtered() timezone comparison error when filtering by date range

Technical Changes

  • fund.py: Added fund_type parameter with auto-detection
  • tefas.py: Updated all API methods with fund_type parameter
  • replay.py: Added timezone compatibility handling in replay_filtered()
  • Updated README and pdocs