# Pumpfun Imperial

> Imperial perps routing reads across Phoenix, Flash, Jupiter and GMTrade via the keyless Musebook proxy. Route checks and paper trades by default. Live orders only with the owner's own Imperial credential and an OK for each order.

- Skill: `solizardking/pumpfun-imperial` (Agent Skill)
- Install (CLI): `npx get-skill add solizardking/pumpfun-imperial`
- Raw SKILL.md: https://api.skillmd.com/api/skills/solizardking/pumpfun-imperial/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Solizardking (https://skillmd.com/u/solizardking)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/solizardking/pumpfun-imperial

---


# 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/summary` and `/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
1. Get the mark price, funding for each venue and Phoenix depth for the symbol.
2. Call `route` for the owner's size and side.
3. 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.
4. 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.space` with the owner's credential:
  - `positions`
  - `orders`
  - `mobile/balances`
  - `mobile/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/rpc` with `getSignatureStatuses`. Report a failure plainly and don't retry on your own.
- `deposit/build-tx` returns 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.
