Skip to content

v2.1.1

Compare
Choose a tag to compare
@AxelGard AxelGard released this 16 Apr 17:28
· 140 commits to master since this release

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 ==, !=, <, >, <=, >=