Cira

Latest version: v3.3.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

2.3.0

Stock.historical_data()
Change in Stock.historical_data() to have `date, open, high, low, close`
python
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.

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

2.2.0

With v2.2.0 comes some new methods for accessing more of your portfolio.
example checking available cash.

2.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. :smile:

2.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;
python
stk = cira.Stock("TSLA")

if stk + 10 <= 500:
stk.buy(1)


supported operators:
`+, -, *, /, //` and `==, !=, <, >, <=, >=`

2.0.2

Some major bug fixes and more documentation

2.0.1

Added Flake8 and black checks and some minor bug fixes also a new function for historical data.

v.2.0.0
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

v.1.0.0
v.1.0.0
Last version that will use functional programming.
Should be stable.

v.0.0.5
I have added GitHub action ti auto push to pypi and this is a test for that process

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.