Imperial perps routing
Imperial routes perp orders across Phoenix, Flash, Jupiter Perps and GMTrade. Prefer Phoenix unless another venue is clearly better on price, funding or depth. Default to route checks and paper or spec trades. Never use the operator's account.
Read routes
These go through the keyless proxy https://musebook-proxy.mynameisjeffspicoli.workers.dev. All are GET:
/api/imperial/funding-rates: funding and borrow per venue for each symbol./api/imperial/mark-prices: mark prices across venues./api/imperial/phoenix/mark-prices/api/imperial/phoenix/depth: the Phoenix order book./api/imperial/route?...: the venue Imperial would pick for a size and side./api/imperial/stats/summaryand/api/imperial/stats: volume.
If the proxy route returns 404 because the deploy is still pending, read the same path straight from https://api.imperial.space/api/v1/. These endpoints are public and need no key.
Default flow: route check or paper trade
- Get the mark price, funding for each venue and Phoenix depth for the symbol.
- Call
routefor the owner's size and side. - Show:
- the venue chosen and why;
- entry price and estimated slippage from depth;
- funding per hour and per day;
- leverage, liquidation price and distance to liquidation;
- fees.
- Record the result as a paper position. Stop here unless the owner asks for a live order.
Live orders (opt-in)
- Live orders need the owner's own Imperial credential, entered through the masked secret prompt. Never ask for it in chat, never print it, and never use the proxy operator's credential.
- Live calls go straight to
api.imperial.spacewith the owner's credential:positionsordersmobile/balancesmobile/orders
- Before each order, restate symbol, side, size, leverage, venue, liquidation distance and take-profit/stop-loss. Get the owner's explicit OK for that order.
- After placing an order, check that the response shows success and contains a transaction signature. Confirm the signature through
POST /api/solana/rpcwithgetSignatureStatuses. Report a failure plainly and don't retry on your own. deposit/build-txreturns a partially signed transaction. Simulate it, show the amount and accounts, and give it to the owner to sign. Never sign or broadcast it yourself.
Rules
- Warn about any leverage over 5x, liquidation distance under 10%, or funding over 0.05% per hour.
- Never put a mnemonic, private key or
ows_key_token in output.