v0.1 — SDK Python · Playground ao vivo · Copilot IA

Trading algorítmico,
programável em segundos.

Um SDK Python tipado para enviar, editar, monitorar e raciocinar sobre ordens algorítmicas. Construa pela documentação, execute no playground, veja os livros se moverem em tempo real.

submit_twap.pyPython 3.10+
from investflex import AsyncInvestflexClient
from investflex.models.algos import TWAP
from investflex.models.common import AgressionLevel, OrdType, Side

twap = TWAP(
    name="my-twap",
    init_time="10:00:00",
    end_time="11:00:00",
    aggression_level=AgressionLevel.OWN_SIDE,
    using_financial_volume="N",
    limit_by_volume="N",
    price_limit=36.0,
    symbol="PETR4",
    side=Side.BUY,
    quantity=1000,
    account="YOUR_ACCOUNT",
    ord_type=OrdType.LIMIT,
    max_clip_size=100,
)

async with AsyncInvestflexClient.from_token(token) as client:
    handle = await client.algos.create(twap)
    print(handle.clord_id, handle.status.name)