The tplus orders commands give you direct shell access to the T+ order management system. You can place limit and market orders, cancel or amend existing ones, move inventory between sub-accounts, and close out positions — all authenticated automatically using your local signing account. Every orders command routes through the OMS at --orderbook-base-url.
Placing orders
Limit order
A limit order specifies the price at which you want to trade. The order rests on the book until it is filled or cancelled.
tplus orders place \
--asset 0xabc123...@42161 \
--side buy \
--type limit \
--quantity 10 \
--price 1000
Market order
A market order executes immediately at the best available price. Omit --price when placing a market order.
tplus orders place \
--asset 0xabc123...@42161 \
--side sell \
--type market \
--quantity 5
--quantity and --price are integer values expressed in the asset’s native book units. Check the market’s book_quantity_decimals and book_price_decimals fields (via tplus markets get) to convert from human-readable amounts.
Cancelling an order
Cancel an open order by its order ID. You must supply the asset ID that the order belongs to:
tplus orders cancel <order_id> --asset 0xabc123...@42161
Replacing an order
Amend the price and/or quantity of an existing open order. The original order ID is replaced atomically on the matching engine:
tplus orders replace <order_id> \
--asset 0xabc123...@42161 \
--price 1050 \
--quantity 6
You can omit --price or --quantity to leave that field unchanged.
Listing orders
List your open and historical orders. Without filters, all orders for all assets are returned:
# All orders, all assets
tplus orders list
# Filter by asset
tplus orders list --asset 0xabc123...@42161
# Open orders only
tplus orders list --open-only
# Combine both filters
tplus orders list --asset 0xabc123...@42161 --open-only
Transferring inventory between sub-accounts
The transfer subcommand moves a given amount of an asset from one sub-account index to another without going through the order book:
tplus orders transfer \
--source 0 \
--target 1 \
--asset 0xabc123...@42161 \
--amount 500000
--source and --target are integer sub-account indices. --amount is expressed in the asset’s base units.
Closing a position
The close subcommand closes all open orders and positions for a given account and asset:
tplus orders close --account 0 --asset 0xabc123...@42161
--account here refers to the integer sub-account index, not the local signing alias.
Viewing balances
Check your current inventory across all assets, or filter to a single asset:
# All balances
tplus balance
# Single asset
tplus balance --asset-id 0xabc123...@42161
Viewing trade history
List filled trades. You can filter by asset:
# All trades
tplus trades list
# Trades for a specific asset
tplus trades list --asset 0xabc123...@42161
Pipe trade history through jq for analysis: tplus trades list --output-format json | jq '.[] | select(.side == "buy")'