cURL
curl --request GET \
--url https://testnet.edel-api.xyz/v2/organizations/{organizationId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://testnet.edel-api.xyz/v2/organizations/{organizationId}"
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/organizations/{organizationId}', 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/organizations/{organizationId}")
.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/organizations/{organizationId}"
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/organizations/{organizationId}")
.header("Authorization", "Bearer <token>")
.asString();{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"logoUrl": "<string>",
"activeSubAccountCount": 1,
"activeSubAccountLimit": 4503599627370495,
"state": "active",
"motherAccountId": "<string>",
"motherAccountUnavailableReason": "sub_account_mother_not_configured",
"visiblePages": {
"sub_accounts": true,
"transfers": true,
"api_keys": true,
"team": true,
"listings_markets": true,
"listings_deposits": true,
"listings_funding": true,
"listings_fees": true,
"listings_analytics": true,
"fee_tier": true
},
"timestamp": 1,
"datetime": "<string>",
"info": {},
"motherAccountPartyId": "<string>"
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}Organizations / Partners
Read your organization
Returns the authorized organization, including the caller’s page visibility, its read-only motherAccountId, activeSubAccountCount and activeSubAccountLimit. When no mother is available, motherAccountId is null and motherAccountUnavailableReason identifies the issue to reconcile. Authenticate with a partner session or an organization key for the organization in the path.
Method and path: GET /v2/organizations/{organizationId}
Authentication: partner session or organization API key required for the organization.
Request schema: none.
Response schema: Organization.
Error envelope: V2ErrorResponse (contains ExternalRestError external-rest-error/v1 as info).
GET
/
v2
/
organizations
/
{organizationId}
cURL
curl --request GET \
--url https://testnet.edel-api.xyz/v2/organizations/{organizationId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://testnet.edel-api.xyz/v2/organizations/{organizationId}"
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/organizations/{organizationId}', 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/organizations/{organizationId}")
.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/organizations/{organizationId}"
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/organizations/{organizationId}")
.header("Authorization", "Bearer <token>")
.asString();{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"logoUrl": "<string>",
"activeSubAccountCount": 1,
"activeSubAccountLimit": 4503599627370495,
"state": "active",
"motherAccountId": "<string>",
"motherAccountUnavailableReason": "sub_account_mother_not_configured",
"visiblePages": {
"sub_accounts": true,
"transfers": true,
"api_keys": true,
"team": true,
"listings_markets": true,
"listings_deposits": true,
"listings_funding": true,
"listings_fees": true,
"listings_analytics": true,
"fee_tier": true
},
"timestamp": 1,
"datetime": "<string>",
"info": {},
"motherAccountPartyId": "<string>"
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}{
"name": "AccountNotEnabled",
"message": "<string>",
"code": "promo_code_unknown",
"retryable": true,
"timestamp": 1,
"datetime": "<string>",
"info": {
"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": "feature_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused",
"info": {
"group": "sub_accounts",
"level": "read"
},
"positions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"tokens": [
{
"asset": "<string>",
"amount": "<string>"
}
],
"progress": {
"accountId": "<string>",
"cancelledOrdersCount": 1,
"filledDuringClosureCount": 1,
"remainingOrdersCount": 1,
"remainingPositionsCount": 1,
"remainingPositions": [
{
"marketId": "<string>",
"side": "long",
"size": "<string>",
"sizeAtoms": "<string>"
}
],
"closedPositionsCount": 1,
"revokedKeysCount": 1,
"returnedAmount": "<string>",
"returnedAsset": "<string>",
"transferId": "<string>",
"transferIds": [
"<string>"
]
},
"rateLimit": {
"limiter": "trader",
"requestsPerWindow": 123,
"windowMs": 123
},
"rule": "amount_step",
"field": "<string>",
"limit": "<string>",
"nearestValid": "<string>",
"minCost": "<string>",
"free": "<string>",
"price": "<string>",
"cost": "<string>",
"minAmount": "<string>"
}
}Authorizations
Response
Success