From 32a6a5a92664ad160e32e3c3c3ae8c7800301921 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 30 Oct 2024 00:13:56 -0700 Subject: [PATCH] Add example of retrieving intraday data for the current day to OHLC documentation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fe10201..78d9970 100644 --- a/README.md +++ b/README.md @@ -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) +``` + --- \ No newline at end of file