Loading...
Loading...
Trade perpetual futures and spot on Orderly Network DEX
npx skill4agent add starchild-ai-agent/official-skills orderlyPERP_<TOKEN>_USDCPERP_BTC_USDCPERP_ETH_USDC"BTC""PERP_BTC_USDC"$XAUPERP_XAU_USDC$XAGPERP_XAG_USDCorderly_futures()*| Tool | Description |
|---|---|
| System maintenance status |
| Futures instrument info (tick sizes, lot sizes, max leverage) |
| Funding rates (current + history) |
| Volume statistics (24h volume, open interest) |
| Orderbook snapshot (bids/asks with sizes) |
| OHLCV candlestick data |
| Market overview (instruments + recent trades) |
| Chain and broker configuration |
| Tool | Description |
|---|---|
| Account info (fees, tier, status) |
| Asset balances (available, frozen) |
| Open positions (size, entry, PnL) |
| List orders (open/completed/cancelled) |
| Trade/fill history |
| Liquidation history |
| Tool | Description |
|---|---|
| Create order (LIMIT/MARKET/IOC/FOK/POST_ONLY) |
| Edit existing order (price/quantity) |
| Cancel order by ID |
| Cancel all orders (optionally per symbol) |
| Update leverage for a symbol |
orderly_system_info()orderly_futures() # All instruments (crypto + RWA)
orderly_futures(symbol="BTC") # BTC perp details
orderly_futures(symbol="XAU") # Gold perp details
orderly_futures(symbol="XAG") # Silver perp detailsorderly_orderbook(symbol="BTC")
orderly_orderbook(symbol="ETH", max_level=10)
orderly_orderbook(symbol="XAU") # Gold orderbook
orderly_orderbook(symbol="XAG", max_level=5) # Silver orderbookorderly_kline(symbol="BTC", interval="1h", limit=100)
orderly_kline(symbol="ETH", interval="4h", limit=200)1m5m15m30m1h4h12h1d1worderly_funding(symbol="BTC") # Current rate
orderly_funding(symbol="BTC", history=true) # Current + historyorderly_account()orderly_holdings()orderly_positions()orderly_order(symbol="BTC", side="buy", quantity=0.01, price=95000)
orderly_order(symbol="XAU", side="buy", quantity=1, price=2800) # Buy 1 oz Gold at $2,800
orderly_order(symbol="XAG", side="sell", quantity=10, price=32) # Sell 10 oz Silver at $32orderly_order(symbol="ETH", side="sell", quantity=0.1, order_type="MARKET")orderly_order(symbol="BTC", side="buy", quantity=0.01, price=94000, order_type="POST_ONLY")orderly_order(symbol="BTC", side="sell", quantity=0.01, reduce_only=true)reduce_only=trueorderly_cancel(symbol="BTC", order_id=12345678)order_idorderly_ordersorderly_cancel_all() # Cancel everything
orderly_cancel_all(symbol="BTC") # Cancel only BTC ordersorderly_modify(order_id=12345678, symbol="BTC", side="buy", quantity=0.02, price=94500)orderly_leverage(symbol="BTC", leverage=10)
orderly_leverage(symbol="ETH", leverage=5)orderly_orders() # All open orders
orderly_orders(symbol="BTC", status="INCOMPLETE") # Open BTC orders
orderly_orders(status="COMPLETED", limit=20) # Recent filled ordersorderly_trades() # All recent trades
orderly_trades(symbol="BTC", limit=10) # Recent BTC tradesorderly_market(symbol="BTC")orderly_leverage(symbol="BTC", leverage=5)orderly_order(symbol="BTC", side="buy", quantity=0.01, price=95000)orderly_orders(symbol="BTC", status="INCOMPLETE")orderly_trades(symbol="BTC")orderly_positions()orderly_order(symbol="BTC", side="sell", quantity=0.01, order_type="MARKET", reduce_only=true)orderly_positions()orderly_futures()orderly_funding(symbol="BTC", history=true)orderly_kline(symbol="BTC", interval="4h", limit=168)orderly_orderbook(symbol="BTC")orderly_volume()orderly_futures(symbol="XAU")orderly_market(symbol="XAU")orderly_kline(symbol="XAU", interval="1h", limit=24)orderly_leverage(symbol="XAU", leverage=10)orderly_order(symbol="XAU", side="buy", quantity=1, price=2800)orderly_positions()orderly_order(symbol="XAU", side="sell", quantity=1, order_type="MARKET", reduce_only=true)| Type | Parameter | Behavior |
|---|---|---|
| Limit (GTC) | | Rests on book until filled or cancelled |
| Market | | Fills at best available price immediately |
| IOC | | Immediate-or-Cancel: fill what's available, cancel rest |
| FOK | | Fill-or-Kill: fill entirely or cancel entirely |
| Post-Only | | Rejected if it would cross the spread (maker only) |
reduce_only=true| You type | Expands to |
|---|---|
| |
| |
| passed through as-is |
| passed through as-is |
{PERP|SPOT}_{BASE}_{QUOTE}| Error | Cause | Fix |
|---|---|---|
| "Orderly API 400" | Invalid request parameters | Check symbol name, order type, and required fields |
| "Orderly API 401" | Authentication failed | Ed25519 key may have expired — restart triggers re-registration |
| "Orderly error" | Business logic rejection | Check error message for details (insufficient margin, invalid price, etc.) |
| "Not running on Fly" | No wallet access | Wallet signing only works on Fly.io deployment |
| "Orderly account not registered" | Registration not complete | Private/trading calls auto-register on first use |
| "No ethereum wallet found" | Missing Privy wallet | Ensure WALLET_SERVICE_URL is configured and wallet is provisioned |
| "Policy violation" / signing rejected | Wallet policy doesn't allow required methods | Load the wallet-policy skill and propose the standard wildcard policy (deny key export + allow |