v0.7.2 - EMK (Pension Fund) Support
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: Addedfund_typeparameter with auto-detectiontefas.py: Updated all API methods withfund_typeparameterreplay.py: Added timezone compatibility handling inreplay_filtered()- Updated README and pdocs