wu/docs
← Home
Reference

Agent SDK

Import wu_bot directly when you outgrow the CLI. Every capability the CLI exposes is a first-class Python API.

Client

python
from wu_bot import Client

wu = Client(token="wu_live_...")

agents = wu.agents.list()
report = wu.backtests.run(strategy="./momentum-15m", frm="2020-01-01")

Streaming events

python
for event in wu.agents.stream("agt_01HXK"):
    if event.type == "order.filled":
        print(event.ticker, event.qty, event.price)