Create a paper account
post/v1/me/paper/accounts
https://data.decryptr.ai/v1/me/paper/accounts
- API planFree, and every plan above it. Data is 60 minutes behind live on this plan.
- Scope
paper:trade - Cost1 unit of quota. Also counts against the per-key write limit (60 a minute). How units are counted
Rate limits by plan
| Plan | Units a month | Per second | Per minute | Most per request |
|---|---|---|---|---|
| Free | 1,000 | 2 | 20 | 10 |
| Pay as you go | Agreed | 15 | 300 | 50 |
| Enterprise | Agreed | Agreed | Agreed | Agreed |
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
Creates a paper account with a starting balance (100 to 1,000,000,000) and, optionally, its trading costs: a commission (fee_kind none, percent, per_unit or per_order; for percent, fee_value is a percent of the order from 0 to 1), slippage_pct (0 to 5), a max_leverage cap and a currency label. Accounts share the allowance of linked wallets, so a free plan has room for one. 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.
AuthorizationBearer <dcr_live_<8 hex>_<43 base64url> or dcr_test_...>Your API key as a Bearer token: Authorization: Bearer dcr_live_....
Idempotency-Key?stringA 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.
^[A-Za-z0-9_.:-]{1,64}$1 <= length <= 64application/json- body
name*stringThe account name (not "Logged"; unique among your accounts).
1 <= length <= 40balance*numberThe starting balance in dollars.
100 <= value <= 1000000000costs?Trading costs; anything left out is none.
OK.
application/json- response
data*as_of*stringWhen the response was made.
date-timecurl -X POST 'https://data.decryptr.ai/v1/me/paper/accounts' \
-H 'Idempotency-Key: order-2026-10-30-0001' \
-H 'Content-Type: application/json' \
-d '{
"name": "Scalping",
"balance": 5000,
"costs": {
"fee_kind": "percent",
"fee_value": 0.05,
"slippage_pct": 0.02,
"max_leverage": 20,
"currency": "USD"
}
}'{ "data": { "account": { "id": "00000000-0000-4000-b000-000000000005", "name": "Scalping", "is_paper": true, "is_default": false, "created_at": "2026-10-01T09:00:00.000000+00:00", "start_balance": 5000, "balance": 5000, "realised_usd": 0, "fees_usd": 0, "margin_used": 0, "available": 5000, "open_sized": 0, "pending_orders": 0, "pending_margin": 0, "balance_from": "2026-10-01T09:00:00.000000+00:00", "costs": { "fee_kind": "percent", "fee_value": 0.05, "slippage_pct": 0.02, "max_leverage": 20, "currency": "USD" } } }, "as_of": "2026-10-30T12:00:30.000Z"}Your paper accounts GET
Your paper accounts with their figures: balance, realised profit and fees, margin used, what is free to trade with, resting orders and the costs set on each. Equity needs the live price of your open positions, so read `GET /v1/me/paper/positions` for the entry prices and sizes. The first account, Logged, exists from your first look. Cost: 1 unit of quota. Needs scope `paper:read`, which is off unless you switch it on for this key in the developer portal. Any plan.
One paper account GET
One of your paper accounts, with the same figures as the list. Cost: 1 unit of quota, also when not found. Needs scope `paper:read`, which is off unless you switch it on for this key in the developer portal. Any plan.