Skip to content

Brokerage orders

Besides DEX swaps, PrimeDelta has a mint-platform brokerage for tokenized stocks. Orders there settle against your custodial cash/USD balance, not your on-chain wallet, and trade during US market hours.

Real orders

These place real brokerage orders. In the Claude Desktop plugin they're gated behind Allow brokerage orders, off by default. From the SDK they're plain method calls — treat them with the same care.

Preview the cost first

pd.limit_buy_cost(...)     # what a limit buy would cost
pd.limit_sell_cost(...)
pd.market_sell_cost(...)   # proceeds of a market sell

For exact signatures, see the SDK reference.

Place an order

pd.send_limit_order(...)         # a limit buy/sell
pd.send_sell_market_order(...)   # a market sell

Both return an identifier you use to track or cancel the order.

Track and cancel

pd.open_orders()          # resting orders
pd.closed_orders()        # filled / cancelled
pd.get_order_status(...)  # one order
pd.cancel_order(...)      # pull a resting order

cancel_order is intentionally always available — even when trading is halted by the kill switch, you can still pull a resting order.

DEX vs brokerage

An oracle stock like AAPL can be traded either on the DEX (a swap, paid in dUSD) or here on the brokerage (paid from your cash balance). Which one you want is a real choice — see the venue routing rule. AMM tokens are DEX-only and have no brokerage.


Exact parameters → SDK reference