Skip to content
Leverage can liquidate a position. Paper results are not a forecast. These pages describe what the app does today.
Docs13
Browse the docs

Desk interface

The desk app talks to a small set of HTTP endpoints and one event stream. They are the interface behind the terminal, documented here for reading, tooling you run in your own browser session and for audits.

On this page

Scope#

Authentication#

Sign in with your wallet on the site. The server sets an httpOnly session cookie that lasts 14 days. Requests without it get 401. A write from another origin gets 403. Errors come back as { "error": "…" }.

Endpoints#

EndpointPurposeLimit
GET /api/statusYour account: equity, margin, positions, resting orders, caps, mark info and the stop state.Session
POST /api/paperA paper action: open, close, flip, flatten, cancel-pending, set-triggers, reset.60 per minute per account
GET /api/paper/streamServer-sent events carrying your own paper account.12 opens per minute, 2 at once

Place an order#

POST /api/paper
{
  "market": "BTC",
  "side": "buy",
  "sizeUsd": 50,
  "leverage": 2,
  "type": "limit",
  "limit": 98000,
  "reduceOnly": false,
  "takeProfitPct": 3,
  "stopLossPct": 1.5
}

type is one of market, limit, post-only, ioc or fok. The response says whether the order filled, rested or was refused, with the result of each of the fourteen checks.

Move a stop or target#

POST /api/paper
{ "action": "set-triggers", "market": "BTC", "stopPrice": 96500, "targetPrice": null }

The event stream#

One account event every three seconds, for up to five minutes, then the stream closes and the client reconnects. A frame contains only your own data.

event: account
{
  "t": 1764700000000,
  "killed": false,
  "tradingHalted": false,
  "paper": { "equityUsd": 10012.4, "account": { "marginUsedUsd": 25, "feesUsd": 0.22 },
             "markInfo": { "BTC": { "mark": 98100, "clamped": false, "stale": false, "usable": true } },
             "positions": [ /* margin, liquidation, stop, target per position */ ] },
  "pending": [ /* resting orders */ ]
}

Opening the stream also runs the clock for your book, so stops, targets, funding and liquidations stay current while you watch.

Elize Bot is not affiliated with or endorsed by Hyperliquid, Elysium, Kinetiq or Montra. Names are used only to say which venue or chain a feature talks to. Leveraged positions can be liquidated, and a paper result is not a forecast of a real one.