Don't invest unless you're prepared to lose all the money you invest. This is a high-risk investment and you should not expect to be protected if something goes wrong. Take 2 mins to learn more.

DecryptrDevelopers
Paper trading

Place a paper order

post/v1/me/paper/orders

https://data.decryptr.ai/v1/me/paper/orders

  • API planFree, and every plan above it. Data is 60 minutes behind live on this plan.
  • Scopepaper:trade
  • Cost1 unit of quota. Also counts against the per-key write limit (60 a minute). How units are counted

Rate limits by plan

PlanUnits a monthPer secondPer minuteMost per request
Free1,00022010
Pay as you goAgreed1530050
EnterpriseAgreedAgreedAgreedAgreed

A 429 carries the full rate-limit header set and a Retry-After. Rate limits

Errors

  • 400The request was refused before any data was read. Nothing is charged.
  • 401No usable key. Nothing is charged.
  • 402The account cannot use the API until billing is sorted. Nothing is charged.
  • 403The key may not use this endpoint. Nothing is charged.
  • 409The request was understood but refused, or repeated with a different body. Nothing was changed.
  • 429A limit was reached (calls or streams). Nothing was read and nothing is charged. Wait Retry-After seconds, back off with jitter, or ask for fewer items.
  • 500Something failed on our side. Nothing is charged. Retry with backoff.
  • 503The API is switched off, busy, or a query ran too long. Nothing is charged. Retry after Retry-After seconds.

Errors follow RFC 9457. Every error code

Opens a paper trade now (market, the default), or rests a limit or stop order that fills when the price reaches trigger_px (it holds margin meanwhile; it can be given an expires_at). Give coin, or venue and market for a market that is not a Hyperliquid perp (coinbase or dex). size_usd and leverage size it; stop, targets (up to 5), target_fractions (the share of the trade each target closes, same length as targets) and trail_pct (a trailing stop, 0.1 to 50 percent) are optional. account_id picks the paper account; omit it for your first account. The account's fees, slippage and leverage cap apply, and the same rules as the app: one open or resting trade per market per account, up to 20 resting orders, a limit long below the price, a stop long above it. The fill price is read by Decryptr from the venue at the moment of the request. You cannot send a price. Send an Idempotency-Key header to make a retry safe: repeating the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and changes nothing more.

Cost: 1 unit of quota. Also counts against the per-key write limit (60 a minute).

Needs scope paper:trade, which is off unless you switch it on for this key in the developer portal. Any plan.

Authorization

headerAuthorizationBearer <dcr_live_<8 hex>_<43 base64url> or dcr_test_...>

Your API key as a Bearer token: Authorization: Bearer dcr_live_....

Header Parameters

Idempotency-Key?string

A unique string (1 to 64 letters, digits, dots, colons, dashes or underscores) that makes this write safe to retry. Repeating the same request with the same key within 24 hours returns the first answer, with the header Idempotent-Replayed: true, and changes nothing more. The same key with a different request is refused with 409 idempotency_conflict.

Match^[A-Za-z0-9_.:-]{1,64}$
Length1 <= length <= 64

Request Body

application/json
  1. body
account_id?string

The paper account. Omit for your first account.

Formatuuid
coin*string

The coin or token symbol, like BTC.

Length1 <= length <= 32
side*string

long or short.

Value in"long""short"
venue?string

Where the price comes from. Default hyperliquid.

Value in"hyperliquid""coinbase""dex"
market?string

The market on that venue (required for dex, like solana:). Defaults to the coin.

Length1 <= length <= 64
order_type?string

market fills now (default); limit and stop rest until the price reaches trigger_px.

Value in"market""limit""stop"
trigger_px?number

Required for limit and stop, refused for market.

Range0 < value <= 1000000000000
size_usd?number

Size in dollars. Needed to hold margin, take partial targets and pay fees.

Range0 < value <= 10000000000
leverage?number

Leverage, 1 to 200.

Range1 <= value <= 200
stop?number

Stop price.

Range0 < value <= 1000000000000
targets?array<>

Up to 5 target prices.

Itemsitems <= 5
target_fractions?array<>

The share of the trade each target closes, same length as targets, adding up to at most 1. Needs size_usd.

Itemsitems <= 5
trail_pct?number

A trailing stop: percent from the best price since entry.

Range0.1 <= value <= 50
expires_at?string

When a resting order lapses; at least a minute ahead. Not for market orders.

Formatdate-time

Response Body

OK.

application/json
  1. response

The trade after the change, the account's figures after it, and what the fill paid.

data*
as_of*string

When the response was made.

Formatdate-time
curl -X POST 'https://data.decryptr.ai/v1/me/paper/orders' \
  -H 'Idempotency-Key: order-2026-10-30-0001' \
  -H 'Content-Type: application/json' \
  -d '{
  "coin": "BTC",
  "side": "long",
  "size_usd": 1000,
  "leverage": 5,
  "stop": 62000,
  "targets": [
    68000,
    70000
  ],
  "target_fractions": [
    0.5,
    0.5
  ]
}'
Example Response
{  "data": {    "trade": {      "id": "00000000-0000-4000-b000-000000000002",      "account_id": "00000000-0000-4000-b000-000000000001",      "account_name": "Logged",      "coin": "BTC",      "venue": "hyperliquid",      "market": "BTC",      "side": "long",      "leverage": 5,      "status": "open",      "order_type": "market",      "trigger_px": null,      "expires_at": null,      "opened_at": "2026-10-30T11:45:10.123456+00:00",      "closed_at": null,      "ended_at": null,      "close_reason": null,      "cancel_reason": null,      "open_px": 65000,      "close_px": null,      "entry_px": 65000,      "exit_px": null,      "size": 0.0153846,      "max_size": 0.0153846,      "entry_notional": 1000,      "stop": 62000,      "initial_stop": 62000,      "targets": [        68000,        70000      ],      "target_fractions": [        0.5,        0.5      ],      "targets_hit": 0,      "trail_pct": null,      "trail_stop": null,      "high_px": 65400,      "low_px": 64900,      "fees_usd": 0,      "funding_usd": null,      "realised_usd": 0,      "pnl_usd": null,      "pnl_pct": null,      "order_size_usd": null,      "runup_pct": 0.6154,      "drawdown_pct": -0.1538,      "r_multiple": null,      "duration_s": 920    },    "account": {      "id": "00000000-0000-4000-b000-000000000001",      "name": "Logged",      "is_paper": false,      "is_default": true,      "created_at": "2026-10-01T09:00:00.000000+00:00",      "start_balance": 10000,      "balance": 10000,      "realised_usd": 0,      "fees_usd": 0,      "margin_used": 200,      "available": 9800,      "open_sized": 1,      "pending_orders": 0,      "pending_margin": 0,      "balance_from": "2026-10-01T09:00:00.000000+00:00",      "costs": {        "fee_kind": "none",        "fee_value": 0,        "slippage_pct": 0,        "max_leverage": null,        "currency": null      }    },    "fill": {      "fee": 0.65,      "slippage_pct": 0.05,      "mark_px": 65000,      "fill_px": 65032.5    }  },  "as_of": "2026-10-30T12:00:30.000Z"}