Add daily data retrieval example to OHLC documentation

This commit is contained in:
moshferatu 2024-10-30 00:09:58 -07:00
parent 19bfed90d2
commit 0ec748a429

View File

@ -8,4 +8,18 @@ The data currently comes from [IQFeed](https://www.iqfeed.net/), so you will nee
* [IQFeed](https://moshferatu.dev/moshferatu/iqfeed/src/branch/main) * [IQFeed](https://moshferatu.dev/moshferatu/iqfeed/src/branch/main)
## Usage
All data is returned as a ```pandas``` DataFrame.
### Daily Data
```python
from ohlc import ohlc
from datetime import datetime
daily_data = ohlc('SPY', start_date = datetime(2024, 1, 1))
```
--- ---