Skip to content

Fix DataPortal correctness bugs#324

Open
pandashark wants to merge 1 commit intostefan-jansen:mainfrom
pandashark:bugfix/data-portal-correctness
Open

Fix DataPortal correctness bugs#324
pandashark wants to merge 1 commit intostefan-jansen:mainfrom
pandashark:bugfix/data-portal-correctness

Conversation

@pandashark
Copy link

Summary

Closes #320

  • Fix _first_trading_minute set to (None, None) tuple instead of None
  • Fix _get_daily_spot_value passing "minute" instead of "daily" to get_adjusted_value

Test plan

  • All existing tests pass
  • flake8 src/zipline/data/data_portal.py passes clean
  • Verify minute history window works when first_trading_day is None
  • Verify daily price forward-fill uses correct adjustment frequency

- Fix _first_trading_minute set to (None, None) instead of None
- Fix _get_daily_spot_value passing "minute" instead of "daily" to get_adjusted_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataPortal correctness bugs: wrong default value and wrong data frequency

1 participant