From 9986e55314c060c94daf8ed85cd7ec1a459cdb25 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 30 Oct 2024 00:11:48 -0700 Subject: [PATCH] Add example of intraday data retrieval to OHLC documentation --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ae0bfed..fe10201 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,14 @@ from datetime import datetime daily_data = ohlc('SPY', start_date = datetime(2024, 1, 1)) ``` +### Intraday / Minute Data + +```python +from ohlc import ohlc + +from datetime import datetime + +intraday_data = ohlc('SPY', minutes = 5, start_date = datetime(2024, 1, 1), end_date = datetime(2024, 1, 31)) +``` + --- \ No newline at end of file