Add daily data retrieval example to OHLC documentation
This commit is contained in:
parent
19bfed90d2
commit
0ec748a429
14
README.md
14
README.md
@ -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))
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
Loading…
Reference in New Issue
Block a user