From 0ec748a42974ffd48ab783f8cfdbd52465a31ae8 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 30 Oct 2024 00:09:58 -0700 Subject: [PATCH] Add daily data retrieval example to OHLC documentation --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index d306cae..ae0bfed 100644 --- a/README.md +++ b/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) +## 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)) +``` + --- \ No newline at end of file