Skip to content

Retain previous share prices on DB when polygon eod prices unavailable#25

Open
samsriram712 wants to merge 1 commit intoed-donner:mainfrom
samsriram712:sams/eod-price-update-clean
Open

Retain previous share prices on DB when polygon eod prices unavailable#25
samsriram712 wants to merge 1 commit intoed-donner:mainfrom
samsriram712:sams/eod-price-update-clean

Conversation

@samsriram712
Copy link
Copy Markdown
Contributor

Changes to market.py and prices.py such that if no market prices are available (holidays/weekends), skip updating it and keep the last known price for the symbol

market.py → skips update when price is not available (None is returned) and preserves last known prices when markets are closed on holidays/weekends. Provides improved observability when no price is available

prices.py → Change price functions to return Optional[float]. Return None if price is not available

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.

1 participant