Skip to content
Docs
Developers

REST API reference

Every public REST operation, generated from the published OpenAPI contract.

Try it environment

https://testnet.edel-api.xyz

Changing the environment clears the bearer token, request body and parameters.

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.

Limit order request
{
  "accountId": "{{accountId}}",
  "marketId": "{{marketId}}",
  "clientOrderId": "example-order-1",
  "side": "buy",
  "orderType": "limit",
  "price": "65000",
  "quantity": "0.001",
  "postOnly": false
}
StatusMeaning
202Accepted for processing
400Invalid request
401Unauthorized
403Forbidden
409Request rejected by the existing venue contract
429Rate limit exceeded
503Service or requested capability unavailable

System

5 operations.

MethodPathOperationAccessSummary
GET/healthgetServiceHealthNoneGet service health
GET/readygetServiceReadinessNoneGet service readiness
GET/openapi.jsongetOpenApiDocumentNoneFetch the OpenAPI document
GET/v1/feature-flagsgetFeatureFlagsNoneGet effective feature flags
GET/v1/system/statusgetSystemStatusNoneGet the venue status

Affiliates

1 operations.

MethodPathOperationAccessSummary
GET/v1/affiliate/availabilitygetAffiliateAvailabilityNoneGet public affiliate availability

Orders

7 operations.

MethodPathOperationAccessSummary
POST/v1/ordersplaceOrderBearer tokenPlace an order
POST/v1/orders/batchplaceOrderBatchBearer tokenPlace a LIMIT order batch
POST/v1/orders/batch/cancelcancelOrderBatchBearer tokenCancel an order batch
POST/v1/orders/previewpreviewOrderBearer tokenPreview an order
GET/v1/orders/{orderId}getOrderBearer tokenGet an order
POST/v1/orders/{orderId}/cancelcancelOrderBearer tokenCancel an order
POST/v1/orders/{orderId}/replacereplaceOrderBearer tokenReplace a resting limit order

Withdrawals

6 operations.

MethodPathOperationAccessSummary
POST/v1/withdrawalscreateWithdrawalBearer tokenRequest a withdrawal
GET/v1/withdrawals/{withdrawalId}getWithdrawalBearer tokenGet a withdrawal
POST/v1/withdrawals/{withdrawalId}/authorizeauthorizeWithdrawalBearer tokenAuthorize a withdrawal
POST/v1/withdrawals/{withdrawalId}/keyaddWithdrawalKeyBearer tokenRegister a one-use key for a withdrawal
POST/v1/withdrawals/{withdrawalId}/confirmconfirmDfnsWithdrawalBearer tokenConfirm an owner-signed withdrawal step
POST/v1/withdrawals/{withdrawalId}/party-transferrequestWithdrawalPartyTransferBearer tokenSend a completed withdrawal to another Canton Party

Accounts

56 operations.

MethodPathOperationAccessSummary
GET/v1/accounts/{accountId}/fee-share-offerslistFeeShareOffersBearer tokenList my pending fee-share payout offers
POST/v1/accounts/{accountId}/fee-share-offers/{offerId}/acceptacceptFeeShareOfferBearer tokenAccept my fee-share wallet offer
GET/v1/accounts/{accountId}getAccountSnapshotBearer tokenGet an account snapshot
GET/v1/accounts/{accountId}/positionsgetAccountPositionsBearer tokenGet account positions
GET/v1/accounts/{accountId}/positions/historygetAccountPositionHistoryBearer tokenGet account position history
GET/v1/accounts/{accountId}/transfersgetAccountTransferHistoryBearer tokenGet account transfer history
GET/v1/accounts/{accountId}/treasury-creditsgetAccountTreasuryCreditsBearer tokenGet account treasury credits
GET/v1/accounts/{accountId}/fee-sharegetAccountFeeShareBearer tokenGet your fee-share earnings and payout progress
GET/v1/accounts/{accountId}/affiliate/earningsgetAccountAffiliateEarningsBearer tokenGet affiliate earnings for an account
GET/v1/accounts/{accountId}/affiliate/applicationgetAffiliateApplicationBearer tokenRead your affiliate application
POST/v1/accounts/{accountId}/affiliate/applicationapplyAffiliateBearer tokenApply to the affiliate program
GET/v1/accounts/{accountId}/referral/profilegetReferralProfileBearer tokenGet your referral profile
GET/v1/accounts/{accountId}/promo-codegetAccountPromoCodeBearer tokenGet your active promo grant
POST/v1/accounts/{accountId}/promo-coderedeemAccountPromoCodeBearer tokenRedeem a promo code
GET/v1/accounts/{accountId}/fee-tiergetAccountFeeTierBearer tokenGet your fee tier
GET/v1/accounts/{accountId}/campaignsgetActiveCampaignsBearer tokenGet your active campaigns
GET/v1/accounts/{accountId}/campaign-earningsgetAccountCampaignEarningsBearer tokenGet your campaign earnings
POST/v1/accounts/{accountId}/affiliate/registrationregisterAccountAffiliateBearer tokenRegister an affiliate account
GET/v1/accounts/{accountId}/kycgetAccountKycStatusBearer tokenGet account KYC status
POST/v1/accounts/{accountId}/kyc/skipskipAccountKycBearer tokenSkip optional account KYC
GET/v1/accounts/{accountId}/termsgetAccountTermsAcceptanceBearer tokenGet the account's trading terms acceptance
POST/v1/accounts/{accountId}/terms/acceptacceptAccountTermsBearer tokenAccept the current trading terms
GET/v1/accounts/{accountId}/affiliate/profilegetAccountAffiliateProfileBearer tokenGet an affiliate profile
GET/v1/accounts/{accountId}/fillsgetAccountFillHistoryBearer tokenGet account fill history
GET/v1/accounts/{accountId}/ordersgetAccountOrderHistoryBearer tokenGet account order history
GET/v1/accounts/{accountId}/orders/opengetAccountOpenOrdersBearer tokenGet live open orders
POST/v1/accounts/{accountId}/party/consentensureAccountReceiverConsentBearer tokenSet up receiver-only collateral consent
GET/v1/accounts/{accountId}/partygetAccountPartyOnboardingBearer tokenGet the status of secure account setup
POST/v1/accounts/{accountId}/partyinitAccountPartyOnboardingBearer tokenStart secure account setup
POST/v1/accounts/{accountId}/squid-quotequoteAccountSquidDepositBearer tokenQuote a cross-chain deposit to the account's Party
POST/v1/accounts/{accountId}/squid-widget-sessioncreateAccountSquidWidgetSessionBearer tokenOpen a Squid widget session for the account's Party
GET/v1/accounts/{accountId}/xreserve-depositgetAccountXreserveDepositBearer tokenGet the account's own xReserve deposit inputs
POST/v1/accounts/{accountId}/xreserve-deposit/mintmintAccountXreserveDepositBearer tokenMint one xReserve deposit into the account's own Party
GET/v1/accounts/{accountId}/deposit-delegationgetAccountDepositDelegationBearer tokenGet where the account's automatic deposits stand
POST/v1/accounts/{accountId}/deposit-delegationenableAccountDepositDelegationBearer tokenTurn on automatic deposits
POST/v1/accounts/{accountId}/deposit-delegation/revokerevokeAccountDepositDelegationBearer tokenTurn off automatic deposits
POST/v1/accounts/{accountId}/party/completecompleteAccountPartyOnboardingBearer tokenComplete secure account setup
POST/v1/accounts/{accountId}/local-signing-walletcreateLocalSigningWalletBearer tokenCreate a local signing wallet
POST/v1/accounts/{accountId}/faucet-grantrequestAccountFaucetGrantBearer tokenRequest the account's test funds
GET/v1/accounts/{accountId}/deposits/inboundlistInboundDepositsBearer tokenList inbound USDCx offers
GET/v1/accounts/{accountId}/local-signing-funding-intentslistLocalSigningFundingIntentsBearer tokenList owner funding intents
POST/v1/accounts/{accountId}/depositsprepareLocalSigningDepositBearer tokenPrepare a deposit
POST/v1/accounts/{accountId}/deposits/confirmconfirmLocalSigningDepositBearer tokenAuthorize a deposit
PUT/v1/accounts/{accountId}/favorites/{marketId}putAccountMarketFavoriteBearer tokenFavorite a market
DELETE/v1/accounts/{accountId}/favorites/{marketId}deleteAccountMarketFavoriteBearer tokenUnfavorite a market
GET/v1/megetAccountProfileBearer tokenRead the caller's own profile
GET/v1/accounts/{accountId}/passkeyslistAccountPasskeysBearer tokenList the account owner's passkeys
POST/v1/accounts/{accountId}/passkeysaddAccountPasskeyBearer tokenAdd a passkey for this environment
POST/v1/accounts/{accountId}/passkeys/codecreateAccountPasskeyCodeBearer tokenApprove a passkey for another environment
POST/v1/accounts/{accountId}/passkeys/setup-keyaddAccountSetupKeyBearer tokenApprove an account setup key
POST/v1/accounts/{accountId}/xreserve-deposit/keyaddAccountDepositKeyBearer tokenRegister a one-use key for an xReserve deposit
POST/v1/accounts/{accountId}/passkeys/setup-key/deactivatedeactivateAccountSetupKeyBearer tokenDeactivate the sign-up setup key
GET/v2/accounts/{accountId}/deposit-capabilitiesgetDepositCapabilitiesBearer tokenRead account deposit route admission
POST/v1/accounts/{accountId}/squid-routecreateAccountSquidRouteBearer tokenPrepare an account-owned Squid route
GET/v1/accounts/{accountId}/squid-route/{routeId}getAccountSquidRouteBearer tokenRead an account-owned Squid transfer
POST/v1/accounts/{accountId}/squid-route/{routeId}/transactionsubmitAccountSquidTransactionBearer tokenBind a source transaction to an account-owned Squid route

Auth

12 operations.

MethodPathOperationAccessSummary
GET/v1/auth/capabilitiesgetAuthCapabilitiesNoneGet authentication capabilities
POST/v1/auth/social/registerinitiateSocialAuthRegistrationNoneStart Google/OIDC registration
POST/v1/auth/social/register/recoverrecoverSocialAuthRegistrationNoneResolve a Google registration outcome
POST/v1/auth/register/completecompleteAuthRegistrationNoneComplete passkey registration
POST/v1/auth/login/initinitiateAuthLoginNoneStart passkey login
POST/v1/auth/login/completecompleteAuthLoginNoneComplete passkey login
POST/v1/auth/social/logincompleteSocialAuthLoginNoneLog in with Google/OIDC
POST/v1/auth/mapping/recoverrecoverAuthMappingBearer tokenRecover an account link
POST/v1/auth/app-handoffcreateAppSessionHandoffBearer tokenHand the signed-in session to the native app
POST/v1/auth/app-handoff/exchangeexchangeAppSessionHandoffNoneExchange a handoff code for the session
POST/v1/auth/session/renewrenewAuthSessionBearer tokenRenew the signed-in session before it ends
GET/v1/api-keys/currentgetCurrentApiKeyBearer tokenRead the authenticated API key metadata

Realtime access

3 operations.

MethodPathOperationAccessSummary
POST/v1/realtime/ticketmintRealtimeTicketBearer tokenMint a realtime connection ticket
PUT/v1/realtime/ticketrotateRealtimeTicketNoneRotate a realtime connection ticket
DELETE/v1/realtime/ticketrevokeRealtimeTicketFamilyNoneRevoke a realtime ticket family

Markets

7 operations.

MethodPathOperationAccessSummary
GET/v1/marketslistMarketsNoneList markets
GET/v1/fee-tiersgetFeeLadderNoneGet the fee ladder
GET/v1/markets/{marketId}getMarketSnapshotNoneGet a market snapshot
GET/v1/markets/{marketId}/statsgetMarketStatsNoneGet market stats
GET/v1/markets/{marketId}/bookgetMarketBookNoneGet the order book
GET/v1/markets/{marketId}/candlesgetMarketCandlesNoneGet market candles
GET/v2/venue/collateralgetVenueCollateralNoneRead venue collateral units

Leaderboard

1 operations.

MethodPathOperationAccessSummary
GET/v1/leaderboardgetLeaderboardNoneGet the projected realized-PnL leaderboard

Market Data

1 operations.

MethodPathOperationAccessSummary
GET/v1/market-data/candidate-marketslistMarketDataCandidateMarketsNoneList market-data candidate markets

CCXT v2

24 operations.

MethodPathOperationAccessSummary
GET/v2/marketsccxtV2FetchMarketsNoneFetch CCXT markets
GET/v2/markets/{symbol}/statsccxtV2FetchTickerAndFundingRateNoneFetch a CCXT ticker and funding rate
GET/v2/funding-ratesccxtV2FetchFundingRatesNoneFetch CCXT funding rates
GET/v2/tickersccxtV2FetchTickersNoneFetch tickers in the CCXT format
GET/v2/venue/totalsgetVenueTotalsNoneFetch venue totals
GET/v2/markets/{symbol}/candlesccxtV2FetchOhlcvNoneFetch CCXT OHLCV
GET/v2/markets/{symbol}/tradesccxtV2FetchTradesNoneFetch CCXT public trades
GET/v2/markets/{symbol}/bookccxtV2FetchOrderBookNoneFetch a CCXT order book
GET/v2/accounts/{accountId}ccxtV2FetchBalanceBearer tokenFetch a CCXT balance
GET/v2/accounts/{accountId}/positionsccxtV2FetchPositionsBearer tokenFetch CCXT positions
POST/v2/ordersccxtV2CreateOrdersBearer tokenCreate CCXT LIMIT orders
POST/v2/orderccxtV2CreateOrderBearer tokenCreate one CCXT order
POST/v2/orders/{orderId}/cancelccxtV2CancelOrderBearer tokenCancel one CCXT order
POST/v2/orders/cancelccxtV2CancelOrdersBearer tokenCancel CCXT orders
POST/v2/orders/cancel-allccxtV2CancelAllOrdersBearer tokenCancel every open CCXT order of one symbol
GET/v2/orders/{orderId}ccxtV2FetchOrderBearer tokenFetch a CCXT order
GET/v2/accounts/{accountId}/ordersccxtV2FetchOrdersBearer tokenFetch CCXT orders
GET/v2/accounts/{accountId}/orders/openccxtV2FetchOpenOrdersBearer tokenFetch CCXT open orders
GET/v2/accounts/{accountId}/fillsccxtV2FetchMyTradesBearer tokenFetch CCXT private trades
PUT/v2/not-implemented/edit-orderccxtV2NotImplementedEditOrderNoneNOT IMPLEMENTED: CCXT editOrder
GET/v2/not-implemented/fetch-funding-rate-historyccxtV2NotImplementedFetchFundingRateHistoryNoneNOT IMPLEMENTED: CCXT fetchFundingRateHistory
GET/v2/not-implemented/fetch-funding-historyccxtV2NotImplementedFetchFundingHistoryNoneNOT IMPLEMENTED: CCXT fetchFundingHistory
PUT/v2/not-implemented/set-leverageccxtV2NotImplementedSetLeverageNoneNOT IMPLEMENTED: CCXT setLeverage
PUT/v2/not-implemented/set-margin-modeccxtV2NotImplementedSetMarginModeNoneNOT IMPLEMENTED: CCXT setMarginMode

Agent access

6 operations.

MethodPathOperationAccessSummary
POST/v1/agent-connect/startstartAgentConnectNoneStart connecting an agent
POST/v1/agent-connect/completecompleteAgentConnectNoneCollect the API key of an approved agent
GET/v1/accounts/{accountId}/agent-connect/{userCode}getAgentConnectGrantBearer tokenRead the pending grant before approving an agent
POST/v1/accounts/{accountId}/agent-connect/approveapproveAgentConnectBearer tokenApprove an agent for the account
GET/v1/accounts/{accountId}/api-keyslistApiKeysBearer tokenList the account's API keys
DELETE/v1/accounts/{accountId}/api-keys/{keyId}revokeApiKeyBearer tokenRevoke an API key

Agents

34 operations.

MethodPathOperationAccessSummary
GET/v1/accounts/{accountId}/agentslistAgentDeploymentsBearer tokenList the account's agents
POST/v1/accounts/{accountId}/agentscreateAgentDeploymentBearer tokenDeploy a strategy agent in paper or live mode
POST/v1/accounts/{accountId}/agents/pinetranslateAgentPineBearer tokenDraft a Pine strategy from plain English
POST/v1/accounts/{accountId}/agents/backtestbacktestAgentStrategyBearer tokenBacktest a Pine strategy on a market's history
POST/v1/accounts/{accountId}/agents/{deploymentId}/pausepauseAgentDeploymentBearer tokenPause an agent
POST/v1/accounts/{accountId}/agents/{deploymentId}/resumeresumeAgentDeploymentBearer tokenResume a paused agent
POST/v1/accounts/{accountId}/agents/{deploymentId}/activateactivateAgentDeploymentBearer tokenStart a funded live agent
POST/v1/accounts/{accountId}/agents/{deploymentId}/close-positioncloseAgentPositionBearer tokenClose a paused agent's positions
PUT/v1/accounts/{accountId}/agents/{deploymentId}/modelsetAgentModelBearer tokenChoose an agent's model
DELETE/v1/accounts/{accountId}/agents/{deploymentId}deleteAgentDeploymentBearer tokenDelete an agent
PUT/v1/accounts/{accountId}/agents/{deploymentId}/namerenameAgentDeploymentBearer tokenRename an agent
GET/v1/accounts/{accountId}/agents/{deploymentId}/chatlistAgentChatBearer tokenRead your agent's strategy conversation
POST/v1/accounts/{accountId}/agents/{deploymentId}/chatsendAgentChatBearer tokenAsk your agent a preset question
GET/v1/agents/chat-presetslistAgentChatPresetsNoneList the questions an agent answers
GET/v1/accounts/{accountId}/agents/{deploymentId}/actionslistAgentActionsBearer tokenRead an agent's action log and paper PnL
GET/v1/accounts/{accountId}/agents/{deploymentId}/fills/{tradeId}/decisiongetAgentFillDecisionBearer tokenAsk an agent why it made one trade
GET/v1/accounts/{accountId}/agents/{deploymentId}/skillsgetAgentSkillsBearer tokenRead the protective skills an agent trades under
GET/v1/accounts/{accountId}/agents/{deploymentId}/strategygetAgentStrategyBearer tokenRead the strategy code your agent runs
POST/v1/accounts/{accountId}/agents/{deploymentId}/realtime-ticketmintAgentRealtimeTicketBearer tokenMint an owner's agent account realtime ticket
GET/v1/accounts/{accountId}/agents/{deploymentId}/walletgetAgentWalletBearer tokenRead the bound agent account wallet and margin
GET/v1/accounts/{accountId}/agents/{deploymentId}/feesgetAgentModelFeesBearer tokenRead an agent's model fees
GET/v1/accounts/{accountId}/agents/{deploymentId}/performancegetAgentPerformanceBearer tokenRead an agent account's lifetime trading performance
GET/v1/accounts/{accountId}/agents/{deploymentId}/positionsgetAgentPositionsBearer tokenRead the bound agent account positions and PnL
GET/v1/accounts/{accountId}/agents/{deploymentId}/ordersgetAgentOrdersBearer tokenRead the bound agent account order history
GET/v1/accounts/{accountId}/agents/{deploymentId}/fillsgetAgentFillsBearer tokenRead the bound agent account fills
POST/v1/accounts/{accountId}/agent-accounts/{agentAccountId}/test-fundingfundOwnAgentWithTestCollateralBearer tokenClosed: agent accounts are funded from the owner's own balance
POST/v1/accounts/{accountId}/agent-accounts/{agentAccountId}/fundingsprepareAgentFundingBearer tokenPrepare funding an agent from the owner's own balance
POST/v1/accounts/{accountId}/agent-accounts/{agentAccountId}/fundings/{transferId}/confirmconfirmAgentFundingBearer tokenRead, approve or complete funding an agent
POST/v1/accounts/{accountId}/agent-accounts/{agentAccountId}/returnsreturnAgentFundsBearer tokenWithdraw from an agent to the owner's own balance
GET/v1/agents/market-selectiongetAgentAutoMarketSelectionNoneRead what auto market selection uses
GET/v1/agents/strategieslistAgentStrategiesNoneList the strategy catalog
GET/v1/agents/strategy-estimateslistAgentMoneyEstimatesNoneRead cached historical money estimates for runnable agent strategies
POST/v1/agents/strategy-estimate-scenarioscalculateAgentMoneyScenarioNoneEstimate net profit or required deposit for one strategy and market
GET/v1/agents/modelslistAgentModelsNoneList the models an agent can use, with their cost