Releases: AxelGard/cira
v2.3.2
v2.3.1
v2.3.0
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
v2.2.0
v2.1.2
Some bug fixes and some minor fixes.
Also, have some more type hints.
BUG fixed some functions that used util.reformat_position did not need to due to that they are already filtered in position.
functions in affected was:
- Stock.today_plpc
- Stock.plpc
- Protfolio.owned_stock_qty
they should work fine now. 😄
v2.1.1
v2.1.1
with cira v2.1.1 comes more operations for stocks to interact with int, floats, and operators.
Also, I change to fix price functions.
So with the new stock operation, you can do;
stk = cira.Stock("TSLA")
if stk + 10 <= 500:
stk.buy(1)
supported operators:
+, -, *, /, //
and ==, !=, <, >, <=, >=
v2.0.2
v.2.0.1
v.2.0.0 new struct
With cira v.2.0.0 has a new structure and classes! With these new classes and structure, you will be able to use the library more simply