curl --request GET \
--url https://testnet.edel-api.xyz/v2/organizations/{organizationId}/deposits \
--header 'Authorization: Bearer <token>'import requests
url = "https://testnet.edel-api.xyz/v2/organizations/{organizationId}/deposits"
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}/deposits', 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}/deposits")
.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}/deposits"
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}/deposits")
.header("Authorization", "Bearer <token>")
.asString();[
{
"id": "<string>",
"txid": "<string>",
"timestamp": 1,
"datetime": "<string>",
"updated": 1,
"addressFrom": "<string>",
"addressTo": "<string>",
"currency": "<string>",
"amount": "<string>",
"status": "pending",
"type": "deposit",
"fee": null,
"info": {
"listingRequestId": "<string>",
"reference": {
"key": "<string>",
"value": "<string>"
},
"senderParty": "<string>",
"instructionId": "<string>",
"instrumentAdmin": "<string>",
"instrumentId": "<string>",
"decimals": 5,
"amountAtoms": "<string>",
"state": "accepting"
}
}
]{
"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>"
}
}List your organization's deposits, newest first
Returns the deposits of the organization’s listing requests as transactions of type deposit, newest first: id, txid (the ledger update that accepted it, or null), timestamp, datetime, updated, addressFrom (the sender party read from the transfer), addressTo (the venue’s custody party), currency (the token’s instrument id), amount (decimal text in whole token units), status and fee null, and info with the listing request id, the reference the transfer carried (the metadata key edel.finance/listing-request-id and the request id), the sender party, the instruction id, the instrument, the decimals, amountAtoms and the venue’s own state. status is pending while the venue’s accept is not proven (state accepting), ok once it is accepted, failed when the ledger refused the accept (nothing is in custody). since (epoch milliseconds, inclusive, at most 8640000000000000) and limit (1 to 100, 50 by default) work as follows: without since the page is the newest rows; with since it is the oldest rows at or after since, still newest first. Use afterId with since to resume after the given timestamp and id. To walk the whole history, start with since=0, then send the first row’s timestamp as since and its id as afterId until the page is empty. Rows sharing a millisecond are ordered by id. Organization keys need listings_deposits read. Members need the page grant for the requested resource. Authenticate with a partner session or an organization API key for the organization in the path. The route checks the page grant or API key permission for its action. Another organization answers 404 organization_not_found. The request limit is 120 per minute (429 with Retry-After). While partner_dashboard is off the route answers 403 feature_disabled. The listing parts also need the partner listings feature: while it is off the route answers 403 feature_disabled with featureFlag partner_listings.
Method and path: GET /v2/organizations/{organizationId}/deposits
Authentication: partner session or organization API key with listings_deposits read required.
Request schema: none.
Response schema: OrganizationDepositList.
Error envelope: V2ErrorResponse (contains ExternalRestError external-rest-error/v1 as info).
curl --request GET \
--url https://testnet.edel-api.xyz/v2/organizations/{organizationId}/deposits \
--header 'Authorization: Bearer <token>'import requests
url = "https://testnet.edel-api.xyz/v2/organizations/{organizationId}/deposits"
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}/deposits', 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}/deposits")
.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}/deposits"
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}/deposits")
.header("Authorization", "Bearer <token>")
.asString();[
{
"id": "<string>",
"txid": "<string>",
"timestamp": 1,
"datetime": "<string>",
"updated": 1,
"addressFrom": "<string>",
"addressTo": "<string>",
"currency": "<string>",
"amount": "<string>",
"status": "pending",
"type": "deposit",
"fee": null,
"info": {
"listingRequestId": "<string>",
"reference": {
"key": "<string>",
"value": "<string>"
},
"senderParty": "<string>",
"instructionId": "<string>",
"instrumentAdmin": "<string>",
"instrumentId": "<string>",
"decimals": 5,
"amountAtoms": "<string>",
"state": "accepting"
}
}
]{
"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
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.
Query Parameters
Response
Success