Documentation for Deptle Terminal.
Guides for setup, scripting, troubleshooting, and more.
What on_tick returns
Return an Order.*(...) value from on_tick. Returning nothing holds.
Order.Hold()— do nothing this tick and keep any open position.Order.Close()— flatten the current position at market.Order.Buy(...)/Order.Sell(...)— place an order.Order.Score(score)— emit a ranking score instead of trading (see below).
Buying and selling
Give a quantity and, optionally, a price limit.
- The quantity comes first — positionally or as
quantity=. - A whole number means whole units:
quantity=1. - For a fractional size, use
base(...),base_units(...), oras_base(...)— for examplequantity=base(0.25). limit_price=is optional. Build it withprice(...). A literal float is accepted; wrap a computed decimal inprice(...).- A
limit_priceof 0 or less means market. reduce_only=Truelets the order only shrink the position, never flip or grow it.- A quantity of 0 or less holds at runtime.
orders.py
Score orders
Order.Score ranks ideas instead of placing a trade directly.
- Pass the score positionally (
Order.Score(x)) or asscore=x. - The score is a whole number — wrap a computed decimal in
int(...).
Need help?
If launch fails, include your loader version, OS, and latest crash log so support can reproduce the issue quickly.