curl --request GET \
--url https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet \
--header 'Authorization: Bearer <token>'import requests
url = "https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.get("https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet")
.bearer_auth(std::env::var("EDEL_API_KEY")?)
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet")
.header("Authorization", "Bearer <token>")
.asString();{
"version": "external-account-snapshot/v1",
"accountId": "<string>",
"asset": "<string>",
"snapshotSequence": 1,
"readModelDigest": "<string>",
"marginMode": "isolated",
"cashBalanceAtoms": "<string>",
"cashBalance": "<string>",
"equityAtoms": "<string>",
"equity": "<string>",
"availableForOrdersAtoms": "<string>",
"availableForOrders": "<string>",
"resync": {
"stream": "account.margin",
"fromSequence": 123
},
"consentState": "absent",
"state": "account_never_funded",
"collateralBalance": {
"accountId": "<string>",
"asset": "<string>",
"decimals": 5,
"totalAtoms": "<string>",
"lockedAtoms": "<string>",
"heldAtoms": "<string>",
"journalSequence": 1,
"freeAtoms": "<string>",
"markRevision": "<string>"
},
"withdrawalReservedAtoms": "<string>",
"withdrawalReserved": "<string>",
"initialMarginAtoms": "<string>",
"initialMargin": "<string>",
"positionInitialMarginAtoms": "<string>",
"positionInitialMargin": "<string>",
"orderReserveAtoms": "<string>",
"orderReserve": "<string>",
"riskEvidence": {
"status": "complete"
},
"liquidationCandidate": true,
"maintenanceRequirementAtoms": "<string>",
"marginHealthBps": "<string>",
"badDebtAtoms": "<string>",
"positions": [
{
"marketId": "<string>",
"unrealizedPnlAtoms": "<string>",
"signedBaseAtoms": "<string>",
"entryNotionalAtoms": "<string>",
"markPriceAtoms": "<string>",
"entryPriceAtoms": "<string>"
}
],
"spotHoldings": [
{
"asset": "<string>",
"symbol": "<string>",
"amountAtoms": "<string>",
"amount": "<string>",
"valuationPrice": "<string>",
"markPriceSource": "book_mid",
"valueAtoms": "<string>",
"value": "<string>"
}
],
"spotHoldingsValueAtoms": "<string>",
"spotHoldingsValue": "<string>",
"totalAccountValueAtoms": "<string>",
"totalAccountValue": "<string>",
"unpricedAssets": [
"<string>"
]
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}Read the bound agent account wallet and margin (v2)
Owner-scoped live account snapshot for this deployment’s bound agent trader account. Equity and available balance are exact account values; positions include current unrealized PnL. An unbound deployment cannot supply live account data.
curl --request GET \
--url https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet \
--header 'Authorization: Bearer <token>'import requests
url = "https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.get("https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet")
.bearer_auth(std::env::var("EDEL_API_KEY")?)
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testnet.edel-api.xyz/v2/accounts/{accountId}/agents/{deploymentId}/wallet")
.header("Authorization", "Bearer <token>")
.asString();{
"version": "external-account-snapshot/v1",
"accountId": "<string>",
"asset": "<string>",
"snapshotSequence": 1,
"readModelDigest": "<string>",
"marginMode": "isolated",
"cashBalanceAtoms": "<string>",
"cashBalance": "<string>",
"equityAtoms": "<string>",
"equity": "<string>",
"availableForOrdersAtoms": "<string>",
"availableForOrders": "<string>",
"resync": {
"stream": "account.margin",
"fromSequence": 123
},
"consentState": "absent",
"state": "account_never_funded",
"collateralBalance": {
"accountId": "<string>",
"asset": "<string>",
"decimals": 5,
"totalAtoms": "<string>",
"lockedAtoms": "<string>",
"heldAtoms": "<string>",
"journalSequence": 1,
"freeAtoms": "<string>",
"markRevision": "<string>"
},
"withdrawalReservedAtoms": "<string>",
"withdrawalReserved": "<string>",
"initialMarginAtoms": "<string>",
"initialMargin": "<string>",
"positionInitialMarginAtoms": "<string>",
"positionInitialMargin": "<string>",
"orderReserveAtoms": "<string>",
"orderReserve": "<string>",
"riskEvidence": {
"status": "complete"
},
"liquidationCandidate": true,
"maintenanceRequirementAtoms": "<string>",
"marginHealthBps": "<string>",
"badDebtAtoms": "<string>",
"positions": [
{
"marketId": "<string>",
"unrealizedPnlAtoms": "<string>",
"signedBaseAtoms": "<string>",
"entryNotionalAtoms": "<string>",
"markPriceAtoms": "<string>",
"entryPriceAtoms": "<string>"
}
],
"spotHoldings": [
{
"asset": "<string>",
"symbol": "<string>",
"amountAtoms": "<string>",
"amount": "<string>",
"valuationPrice": "<string>",
"markPriceSource": "book_mid",
"valueAtoms": "<string>",
"value": "<string>"
}
],
"spotHoldingsValueAtoms": "<string>",
"spotHoldingsValue": "<string>",
"totalAccountValueAtoms": "<string>",
"totalAccountValue": "<string>",
"unpricedAssets": [
"<string>"
]
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}Authorizations
The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field. When invitation-only access is enabled, private operations require the account's sign-in email to be invited. Sign-in can complete without an invitation, but private HTTP, MCP and FIX operations refuse with access_not_allowlisted (HTTP 403): "Private access is limited to invited accounts. Contact support to request access." Public market data remains available. Invitation changes apply to the next private operation, including existing FIX sessions. Do not retry until support confirms access.
Path Parameters
Response
Success
Account-wide initial margin in settlement-asset atoms: positionInitialMarginAtoms plus orderReserveAtoms at this frame's engine sequences. Includes resting-order fee and rounding reserves; excludes withdrawal holds, accrued fees and bad debt; not equity minus available capacity. Absent from legacy producers.
^[0-9]+$Account-wide initial margin for cross margin, in settlement-asset decimal units: positionInitialMargin plus orderReserve at this frame's engine sequences. Includes resting-order fee and rounding reserves; excludes withdrawal holds, accrued fees and bad debt; not equity minus available capacity. Absent from legacy producers.
^-?[0-9]+\.[0-9]+$Account-wide collateral reserved for resting orders, in settlement-asset atoms at this frame's engine sequences. Includes reserved execution fees and fragmentation rounding; excludes position initial margin, withdrawal holds, accrued fees and bad debt. Absent from legacy producers.
^[0-9]+$Account-wide collateral reserved for resting orders in cross margin, in settlement-asset decimal units at this frame's engine sequences. Includes reserved execution fees and fragmentation rounding; excludes position initial margin, withdrawal holds, accrued fees and bad debt. Absent from legacy producers.
^-?[0-9]+\.[0-9]+$A liquidation loss that neither the order book, the insurance fund nor auto-deleverage covered, in settlement-asset atoms. The account stays blocked while it is above 0. A liquidation fee and an insurance fund cover show up only as a change in the cash balance, never here.
^[0-9]+$Each spot token the account holds, with its price and its value in the account asset, ordered by asset. Display data: no margin number counts it. Empty when the account holds no token. Absent when the holdings or their prices could not be read within 250 ms (a busy database drops these fields rather than delay the answer); equity and the margin fields are exact then too.
Show child attributes
Show child attributes
The marked value of the spot tokens held, in account asset decimal units. A token is priced on its spot market against the account asset, from the venue's own book and trades only: the order book mid (best bid plus best ask, over two); with one side of the book empty, the price of the market's last trade; with neither, the token is unpriced. Display data: spot tokens are not collateral. Absent with spotHoldings.
^-?[0-9]+\.[0-9]+$