Add example of retrieving intraday data for the current day to OHLC documentation

This commit is contained in:
moshferatu 2024-10-30 00:13:56 -07:00
parent 9986e55314
commit 32a6a5a926

View File

@ -32,4 +32,12 @@ from datetime import datetime
intraday_data = ohlc('SPY', minutes = 5, start_date = datetime(2024, 1, 1), end_date = datetime(2024, 1, 31)) intraday_data = ohlc('SPY', minutes = 5, start_date = datetime(2024, 1, 1), end_date = datetime(2024, 1, 31))
``` ```
If neither the start nor end date is provided, data for the current day is returned:
```python
from ohlc import ohlc
todays_data = ohlc('SPY', minutes = 5)
```
--- ---