Add example of retrieving intraday data for the current day to OHLC documentation
This commit is contained in:
parent
9986e55314
commit
32a6a5a926
@ -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))
|
||||
```
|
||||
|
||||
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)
|
||||
```
|
||||
|
||||
---
|
Loading…
Reference in New Issue
Block a user