Skip to content

v2.3.0

Compare
Choose a tag to compare
@AxelGard AxelGard released this 24 Dec 09:54
· 118 commits to master since this release

Stock.historical_data()

Change in Stock.historical_data() to have date, open, high, low, close

import cira
stk = cira.Stock("TSLA")
stk.historical_data(1)

will return [{'date': '2021-12-23', 'open': 1067.5, 'high': 1068.01, 'low': 1066.915, 'close': 1067.6}]
so a list(dict)

Stock.barset

barset no longer return a nested object. So no need for a symbol after barset.

import cira
stk = cira.Stock("TSLA")
stk.barset(1).c #close price