kalgory-com / kalgory-py

Python client library for kalgory
Mozilla Public License 2.0
0 stars 0 forks source link

kalgory-py

CI Maintainability Test Coverage

Python library for kalgory, a visualization and drag n' drop tool for algorithmic trader.

Installations

You will need python >= 3.10

Use the package manager pip to install kalgory.

pip install kalgory

Usage

from kalgory.component import BaseBlock

class Block(BaseBlock):
    def handle(self, *args) -> bytes:
        # You can write any data handling logic here as you want
        pass

for example

from kalgory.component import BaseBlock

class Block(BaseBlock):
    def handle(self, NVDA_stock_price: float, money_in_the_bank: float) -> bool:
        buy = True if NVDA_stock_price > NVDA_future_price else False
        return buy

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MPL-2.0