REST API reference
Every public REST operation, generated from the published OpenAPI contract.
REST API
Edel PERPS External REST API, version 0.1.0. The reference lists 163 operations in 13 groups, generated from the published REST OpenAPI.
Use the REST base URL of your network from Networks. Operations marked "Bearer token" take the session bearer or an API key as described in authentication. Schema coverage does not guarantee that an operation is enabled in your environment. Live market and account updates belong on the realtime reference.
Try it. Each operation has a console that sends requests from your browser to the network chosen in the environment selector at the top of this page: TestNet (the default), MainNet or DevNet. TestNet and DevNet use test money. MainNet is live and uses real money; a MainNet request that changes state asks for a second confirmation. Account operations need a bearer token; the console keeps it in this tab's memory only and clears it along with the request body and parameters when you change environment. Collapsing a console preserves its pending request and retry key.
Place an order
POST /v1/orders — Submits a new order to the matching engine. Requires an Idempotency-Key header; the response is accepted for asynchronous processing. A 503 carries orderOutcome and the original clientOrderIds. An order-entry 503 may follow acceptance. Reconcile the original clientOrderId through account.orders (orderId is the clientOrderId) and account.fills, and take one bounded order snapshot after reconnect. A 404 alone does not prove absence of in-flight work. Never poll or automatically resubmit; keep the original clientOrderIds, request body and Idempotency-Key, never retry with a fresh identity.
Parameters. Idempotency-Key (header, required).
Request variants. The body matches one of these shapes; unknown fields are rejected.
- Required:
accountId,marketId,clientOrderId,side,orderType,quantity - Required:
accountId,marketId,clientOrderId,side,orderType,notional - Required:
accountId,marketId,clientOrderId,side,orderType,price,quantity
Quantities and prices are decimal strings. Read the idempotency and retry rules in Order API and retries, and find every field in the REST OpenAPI.
{
"accountId": "{{accountId}}",
"marketId": "{{marketId}}",
"clientOrderId": "example-order-1",
"side": "buy",
"orderType": "limit",
"price": "65000",
"quantity": "0.001",
"postOnly": false
}| Status | Meaning |
|---|---|
202 | Accepted for processing |
400 | Invalid request |
401 | Unauthorized |
403 | Forbidden |
409 | Request rejected by the existing venue contract |
429 | Rate limit exceeded |
503 | Service or requested capability unavailable |
System
5 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /health | getServiceHealth | None | Get service health |
GET | /ready | getServiceReadiness | None | Get service readiness |
GET | /openapi.json | getOpenApiDocument | None | Fetch the OpenAPI document |
GET | /v1/feature-flags | getFeatureFlags | None | Get effective feature flags |
GET | /v1/system/status | getSystemStatus | None | Get the venue status |
Affiliates
1 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/affiliate/availability | getAffiliateAvailability | None | Get public affiliate availability |
Orders
7 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
POST | /v1/orders | placeOrder | Bearer token | Place an order |
POST | /v1/orders/batch | placeOrderBatch | Bearer token | Place a LIMIT order batch |
POST | /v1/orders/batch/cancel | cancelOrderBatch | Bearer token | Cancel an order batch |
POST | /v1/orders/preview | previewOrder | Bearer token | Preview an order |
GET | /v1/orders/{orderId} | getOrder | Bearer token | Get an order |
POST | /v1/orders/{orderId}/cancel | cancelOrder | Bearer token | Cancel an order |
POST | /v1/orders/{orderId}/replace | replaceOrder | Bearer token | Replace a resting limit order |
Withdrawals
6 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
POST | /v1/withdrawals | createWithdrawal | Bearer token | Request a withdrawal |
GET | /v1/withdrawals/{withdrawalId} | getWithdrawal | Bearer token | Get a withdrawal |
POST | /v1/withdrawals/{withdrawalId}/authorize | authorizeWithdrawal | Bearer token | Authorize a withdrawal |
POST | /v1/withdrawals/{withdrawalId}/key | addWithdrawalKey | Bearer token | Register a one-use key for a withdrawal |
POST | /v1/withdrawals/{withdrawalId}/confirm | confirmDfnsWithdrawal | Bearer token | Confirm an owner-signed withdrawal step |
POST | /v1/withdrawals/{withdrawalId}/party-transfer | requestWithdrawalPartyTransfer | Bearer token | Send a completed withdrawal to another Canton Party |
Accounts
56 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/accounts/{accountId}/fee-share-offers | listFeeShareOffers | Bearer token | List my pending fee-share payout offers |
POST | /v1/accounts/{accountId}/fee-share-offers/{offerId}/accept | acceptFeeShareOffer | Bearer token | Accept my fee-share wallet offer |
GET | /v1/accounts/{accountId} | getAccountSnapshot | Bearer token | Get an account snapshot |
GET | /v1/accounts/{accountId}/positions | getAccountPositions | Bearer token | Get account positions |
GET | /v1/accounts/{accountId}/positions/history | getAccountPositionHistory | Bearer token | Get account position history |
GET | /v1/accounts/{accountId}/transfers | getAccountTransferHistory | Bearer token | Get account transfer history |
GET | /v1/accounts/{accountId}/treasury-credits | getAccountTreasuryCredits | Bearer token | Get account treasury credits |
GET | /v1/accounts/{accountId}/fee-share | getAccountFeeShare | Bearer token | Get your fee-share earnings and payout progress |
GET | /v1/accounts/{accountId}/affiliate/earnings | getAccountAffiliateEarnings | Bearer token | Get affiliate earnings for an account |
GET | /v1/accounts/{accountId}/affiliate/application | getAffiliateApplication | Bearer token | Read your affiliate application |
POST | /v1/accounts/{accountId}/affiliate/application | applyAffiliate | Bearer token | Apply to the affiliate program |
GET | /v1/accounts/{accountId}/referral/profile | getReferralProfile | Bearer token | Get your referral profile |
GET | /v1/accounts/{accountId}/promo-code | getAccountPromoCode | Bearer token | Get your active promo grant |
POST | /v1/accounts/{accountId}/promo-code | redeemAccountPromoCode | Bearer token | Redeem a promo code |
GET | /v1/accounts/{accountId}/fee-tier | getAccountFeeTier | Bearer token | Get your fee tier |
GET | /v1/accounts/{accountId}/campaigns | getActiveCampaigns | Bearer token | Get your active campaigns |
GET | /v1/accounts/{accountId}/campaign-earnings | getAccountCampaignEarnings | Bearer token | Get your campaign earnings |
POST | /v1/accounts/{accountId}/affiliate/registration | registerAccountAffiliate | Bearer token | Register an affiliate account |
GET | /v1/accounts/{accountId}/kyc | getAccountKycStatus | Bearer token | Get account KYC status |
POST | /v1/accounts/{accountId}/kyc/skip | skipAccountKyc | Bearer token | Skip optional account KYC |
GET | /v1/accounts/{accountId}/terms | getAccountTermsAcceptance | Bearer token | Get the account's trading terms acceptance |
POST | /v1/accounts/{accountId}/terms/accept | acceptAccountTerms | Bearer token | Accept the current trading terms |
GET | /v1/accounts/{accountId}/affiliate/profile | getAccountAffiliateProfile | Bearer token | Get an affiliate profile |
GET | /v1/accounts/{accountId}/fills | getAccountFillHistory | Bearer token | Get account fill history |
GET | /v1/accounts/{accountId}/orders | getAccountOrderHistory | Bearer token | Get account order history |
GET | /v1/accounts/{accountId}/orders/open | getAccountOpenOrders | Bearer token | Get live open orders |
POST | /v1/accounts/{accountId}/party/consent | ensureAccountReceiverConsent | Bearer token | Set up receiver-only collateral consent |
GET | /v1/accounts/{accountId}/party | getAccountPartyOnboarding | Bearer token | Get the status of secure account setup |
POST | /v1/accounts/{accountId}/party | initAccountPartyOnboarding | Bearer token | Start secure account setup |
POST | /v1/accounts/{accountId}/squid-quote | quoteAccountSquidDeposit | Bearer token | Quote a cross-chain deposit to the account's Party |
POST | /v1/accounts/{accountId}/squid-widget-session | createAccountSquidWidgetSession | Bearer token | Open a Squid widget session for the account's Party |
GET | /v1/accounts/{accountId}/xreserve-deposit | getAccountXreserveDeposit | Bearer token | Get the account's own xReserve deposit inputs |
POST | /v1/accounts/{accountId}/xreserve-deposit/mint | mintAccountXreserveDeposit | Bearer token | Mint one xReserve deposit into the account's own Party |
GET | /v1/accounts/{accountId}/deposit-delegation | getAccountDepositDelegation | Bearer token | Get where the account's automatic deposits stand |
POST | /v1/accounts/{accountId}/deposit-delegation | enableAccountDepositDelegation | Bearer token | Turn on automatic deposits |
POST | /v1/accounts/{accountId}/deposit-delegation/revoke | revokeAccountDepositDelegation | Bearer token | Turn off automatic deposits |
POST | /v1/accounts/{accountId}/party/complete | completeAccountPartyOnboarding | Bearer token | Complete secure account setup |
POST | /v1/accounts/{accountId}/local-signing-wallet | createLocalSigningWallet | Bearer token | Create a local signing wallet |
POST | /v1/accounts/{accountId}/faucet-grant | requestAccountFaucetGrant | Bearer token | Request the account's test funds |
GET | /v1/accounts/{accountId}/deposits/inbound | listInboundDeposits | Bearer token | List inbound USDCx offers |
GET | /v1/accounts/{accountId}/local-signing-funding-intents | listLocalSigningFundingIntents | Bearer token | List owner funding intents |
POST | /v1/accounts/{accountId}/deposits | prepareLocalSigningDeposit | Bearer token | Prepare a deposit |
POST | /v1/accounts/{accountId}/deposits/confirm | confirmLocalSigningDeposit | Bearer token | Authorize a deposit |
PUT | /v1/accounts/{accountId}/favorites/{marketId} | putAccountMarketFavorite | Bearer token | Favorite a market |
DELETE | /v1/accounts/{accountId}/favorites/{marketId} | deleteAccountMarketFavorite | Bearer token | Unfavorite a market |
GET | /v1/me | getAccountProfile | Bearer token | Read the caller's own profile |
GET | /v1/accounts/{accountId}/passkeys | listAccountPasskeys | Bearer token | List the account owner's passkeys |
POST | /v1/accounts/{accountId}/passkeys | addAccountPasskey | Bearer token | Add a passkey for this environment |
POST | /v1/accounts/{accountId}/passkeys/code | createAccountPasskeyCode | Bearer token | Approve a passkey for another environment |
POST | /v1/accounts/{accountId}/passkeys/setup-key | addAccountSetupKey | Bearer token | Approve an account setup key |
POST | /v1/accounts/{accountId}/xreserve-deposit/key | addAccountDepositKey | Bearer token | Register a one-use key for an xReserve deposit |
POST | /v1/accounts/{accountId}/passkeys/setup-key/deactivate | deactivateAccountSetupKey | Bearer token | Deactivate the sign-up setup key |
GET | /v2/accounts/{accountId}/deposit-capabilities | getDepositCapabilities | Bearer token | Read account deposit route admission |
POST | /v1/accounts/{accountId}/squid-route | createAccountSquidRoute | Bearer token | Prepare an account-owned Squid route |
GET | /v1/accounts/{accountId}/squid-route/{routeId} | getAccountSquidRoute | Bearer token | Read an account-owned Squid transfer |
POST | /v1/accounts/{accountId}/squid-route/{routeId}/transaction | submitAccountSquidTransaction | Bearer token | Bind a source transaction to an account-owned Squid route |
Auth
12 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/auth/capabilities | getAuthCapabilities | None | Get authentication capabilities |
POST | /v1/auth/social/register | initiateSocialAuthRegistration | None | Start Google/OIDC registration |
POST | /v1/auth/social/register/recover | recoverSocialAuthRegistration | None | Resolve a Google registration outcome |
POST | /v1/auth/register/complete | completeAuthRegistration | None | Complete passkey registration |
POST | /v1/auth/login/init | initiateAuthLogin | None | Start passkey login |
POST | /v1/auth/login/complete | completeAuthLogin | None | Complete passkey login |
POST | /v1/auth/social/login | completeSocialAuthLogin | None | Log in with Google/OIDC |
POST | /v1/auth/mapping/recover | recoverAuthMapping | Bearer token | Recover an account link |
POST | /v1/auth/app-handoff | createAppSessionHandoff | Bearer token | Hand the signed-in session to the native app |
POST | /v1/auth/app-handoff/exchange | exchangeAppSessionHandoff | None | Exchange a handoff code for the session |
POST | /v1/auth/session/renew | renewAuthSession | Bearer token | Renew the signed-in session before it ends |
GET | /v1/api-keys/current | getCurrentApiKey | Bearer token | Read the authenticated API key metadata |
Realtime access
3 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
POST | /v1/realtime/ticket | mintRealtimeTicket | Bearer token | Mint a realtime connection ticket |
PUT | /v1/realtime/ticket | rotateRealtimeTicket | None | Rotate a realtime connection ticket |
DELETE | /v1/realtime/ticket | revokeRealtimeTicketFamily | None | Revoke a realtime ticket family |
Markets
7 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/markets | listMarkets | None | List markets |
GET | /v1/fee-tiers | getFeeLadder | None | Get the fee ladder |
GET | /v1/markets/{marketId} | getMarketSnapshot | None | Get a market snapshot |
GET | /v1/markets/{marketId}/stats | getMarketStats | None | Get market stats |
GET | /v1/markets/{marketId}/book | getMarketBook | None | Get the order book |
GET | /v1/markets/{marketId}/candles | getMarketCandles | None | Get market candles |
GET | /v2/venue/collateral | getVenueCollateral | None | Read venue collateral units |
Leaderboard
1 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/leaderboard | getLeaderboard | None | Get the projected realized-PnL leaderboard |
Market Data
1 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/market-data/candidate-markets | listMarketDataCandidateMarkets | None | List market-data candidate markets |
CCXT v2
24 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v2/markets | ccxtV2FetchMarkets | None | Fetch CCXT markets |
GET | /v2/markets/{symbol}/stats | ccxtV2FetchTickerAndFundingRate | None | Fetch a CCXT ticker and funding rate |
GET | /v2/funding-rates | ccxtV2FetchFundingRates | None | Fetch CCXT funding rates |
GET | /v2/tickers | ccxtV2FetchTickers | None | Fetch tickers in the CCXT format |
GET | /v2/venue/totals | getVenueTotals | None | Fetch venue totals |
GET | /v2/markets/{symbol}/candles | ccxtV2FetchOhlcv | None | Fetch CCXT OHLCV |
GET | /v2/markets/{symbol}/trades | ccxtV2FetchTrades | None | Fetch CCXT public trades |
GET | /v2/markets/{symbol}/book | ccxtV2FetchOrderBook | None | Fetch a CCXT order book |
GET | /v2/accounts/{accountId} | ccxtV2FetchBalance | Bearer token | Fetch a CCXT balance |
GET | /v2/accounts/{accountId}/positions | ccxtV2FetchPositions | Bearer token | Fetch CCXT positions |
POST | /v2/orders | ccxtV2CreateOrders | Bearer token | Create CCXT LIMIT orders |
POST | /v2/order | ccxtV2CreateOrder | Bearer token | Create one CCXT order |
POST | /v2/orders/{orderId}/cancel | ccxtV2CancelOrder | Bearer token | Cancel one CCXT order |
POST | /v2/orders/cancel | ccxtV2CancelOrders | Bearer token | Cancel CCXT orders |
POST | /v2/orders/cancel-all | ccxtV2CancelAllOrders | Bearer token | Cancel every open CCXT order of one symbol |
GET | /v2/orders/{orderId} | ccxtV2FetchOrder | Bearer token | Fetch a CCXT order |
GET | /v2/accounts/{accountId}/orders | ccxtV2FetchOrders | Bearer token | Fetch CCXT orders |
GET | /v2/accounts/{accountId}/orders/open | ccxtV2FetchOpenOrders | Bearer token | Fetch CCXT open orders |
GET | /v2/accounts/{accountId}/fills | ccxtV2FetchMyTrades | Bearer token | Fetch CCXT private trades |
PUT | /v2/not-implemented/edit-order | ccxtV2NotImplementedEditOrder | None | NOT IMPLEMENTED: CCXT editOrder |
GET | /v2/not-implemented/fetch-funding-rate-history | ccxtV2NotImplementedFetchFundingRateHistory | None | NOT IMPLEMENTED: CCXT fetchFundingRateHistory |
GET | /v2/not-implemented/fetch-funding-history | ccxtV2NotImplementedFetchFundingHistory | None | NOT IMPLEMENTED: CCXT fetchFundingHistory |
PUT | /v2/not-implemented/set-leverage | ccxtV2NotImplementedSetLeverage | None | NOT IMPLEMENTED: CCXT setLeverage |
PUT | /v2/not-implemented/set-margin-mode | ccxtV2NotImplementedSetMarginMode | None | NOT IMPLEMENTED: CCXT setMarginMode |
Agent access
6 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
POST | /v1/agent-connect/start | startAgentConnect | None | Start connecting an agent |
POST | /v1/agent-connect/complete | completeAgentConnect | None | Collect the API key of an approved agent |
GET | /v1/accounts/{accountId}/agent-connect/{userCode} | getAgentConnectGrant | Bearer token | Read the pending grant before approving an agent |
POST | /v1/accounts/{accountId}/agent-connect/approve | approveAgentConnect | Bearer token | Approve an agent for the account |
GET | /v1/accounts/{accountId}/api-keys | listApiKeys | Bearer token | List the account's API keys |
DELETE | /v1/accounts/{accountId}/api-keys/{keyId} | revokeApiKey | Bearer token | Revoke an API key |
Agents
34 operations.
| Method | Path | Operation | Access | Summary |
|---|---|---|---|---|
GET | /v1/accounts/{accountId}/agents | listAgentDeployments | Bearer token | List the account's agents |
POST | /v1/accounts/{accountId}/agents | createAgentDeployment | Bearer token | Deploy a strategy agent in paper or live mode |
POST | /v1/accounts/{accountId}/agents/pine | translateAgentPine | Bearer token | Draft a Pine strategy from plain English |
POST | /v1/accounts/{accountId}/agents/backtest | backtestAgentStrategy | Bearer token | Backtest a Pine strategy on a market's history |
POST | /v1/accounts/{accountId}/agents/{deploymentId}/pause | pauseAgentDeployment | Bearer token | Pause an agent |
POST | /v1/accounts/{accountId}/agents/{deploymentId}/resume | resumeAgentDeployment | Bearer token | Resume a paused agent |
POST | /v1/accounts/{accountId}/agents/{deploymentId}/activate | activateAgentDeployment | Bearer token | Start a funded live agent |
POST | /v1/accounts/{accountId}/agents/{deploymentId}/close-position | closeAgentPosition | Bearer token | Close a paused agent's positions |
PUT | /v1/accounts/{accountId}/agents/{deploymentId}/model | setAgentModel | Bearer token | Choose an agent's model |
DELETE | /v1/accounts/{accountId}/agents/{deploymentId} | deleteAgentDeployment | Bearer token | Delete an agent |
PUT | /v1/accounts/{accountId}/agents/{deploymentId}/name | renameAgentDeployment | Bearer token | Rename an agent |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/chat | listAgentChat | Bearer token | Read your agent's strategy conversation |
POST | /v1/accounts/{accountId}/agents/{deploymentId}/chat | sendAgentChat | Bearer token | Ask your agent a preset question |
GET | /v1/agents/chat-presets | listAgentChatPresets | None | List the questions an agent answers |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/actions | listAgentActions | Bearer token | Read an agent's action log and paper PnL |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/fills/{tradeId}/decision | getAgentFillDecision | Bearer token | Ask an agent why it made one trade |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/skills | getAgentSkills | Bearer token | Read the protective skills an agent trades under |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/strategy | getAgentStrategy | Bearer token | Read the strategy code your agent runs |
POST | /v1/accounts/{accountId}/agents/{deploymentId}/realtime-ticket | mintAgentRealtimeTicket | Bearer token | Mint an owner's agent account realtime ticket |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/wallet | getAgentWallet | Bearer token | Read the bound agent account wallet and margin |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/fees | getAgentModelFees | Bearer token | Read an agent's model fees |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/performance | getAgentPerformance | Bearer token | Read an agent account's lifetime trading performance |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/positions | getAgentPositions | Bearer token | Read the bound agent account positions and PnL |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/orders | getAgentOrders | Bearer token | Read the bound agent account order history |
GET | /v1/accounts/{accountId}/agents/{deploymentId}/fills | getAgentFills | Bearer token | Read the bound agent account fills |
POST | /v1/accounts/{accountId}/agent-accounts/{agentAccountId}/test-funding | fundOwnAgentWithTestCollateral | Bearer token | Closed: agent accounts are funded from the owner's own balance |
POST | /v1/accounts/{accountId}/agent-accounts/{agentAccountId}/fundings | prepareAgentFunding | Bearer token | Prepare funding an agent from the owner's own balance |
POST | /v1/accounts/{accountId}/agent-accounts/{agentAccountId}/fundings/{transferId}/confirm | confirmAgentFunding | Bearer token | Read, approve or complete funding an agent |
POST | /v1/accounts/{accountId}/agent-accounts/{agentAccountId}/returns | returnAgentFunds | Bearer token | Withdraw from an agent to the owner's own balance |
GET | /v1/agents/market-selection | getAgentAutoMarketSelection | None | Read what auto market selection uses |
GET | /v1/agents/strategies | listAgentStrategies | None | List the strategy catalog |
GET | /v1/agents/strategy-estimates | listAgentMoneyEstimates | None | Read cached historical money estimates for runnable agent strategies |
POST | /v1/agents/strategy-estimate-scenarios | calculateAgentMoneyScenario | None | Estimate net profit or required deposit for one strategy and market |
GET | /v1/agents/models | listAgentModels | None | List the models an agent can use, with their cost |