Go to file
2024-10-30 00:11:48 -07:00
ohlc
test Add test for retrieving minute data for the current day 2024-10-21 09:11:42 -07:00
.gitignore
README.md Add example of intraday data retrieval to OHLC documentation 2024-10-30 00:11:48 -07:00
setup.py

OHLC

This module provides Open, High, Low, Close (OHLC) data for trading applications.

The data currently comes from IQFeed, so you will need an account with API access from them.

Dependencies

Usage

All data is returned as a pandas DataFrame.

Daily Data

from ohlc import ohlc

from datetime import datetime

daily_data = ohlc('SPY', start_date = datetime(2024, 1, 1))

Intraday / Minute Data

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))