Python library for kalgory, a visualization and drag n' drop tool for algorithmic trader.
You will need python >= 3.10
Use the package manager pip to install kalgory.
pip install kalgory
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
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.