Skip to main content
POST
Create Sweep Trade

Authorizations

X-API-KEY
string
header
required

Body

application/json

Sweep trade request

to_currency
string
required

Destination currency symbol to consolidate into.

Example:

"USDC"

account_id
integer

Settlement account ID override for balances to sweep.

Example:

42

account_reference
string

Virtual account reference override (defaults to the org primary VA).

dry_run
boolean

When true, return a quote estimate only and do not accept/execute.

Example:

false

keep_amount_usd
number

Leave at least this USD notional unswept on source balances.

Example:

0

max_amount_usd
number

Cap total sweep size at this USD notional.

Example:

10000

min_amount_usd
number

Skip balances below this USD notionals.

Example:

1

reference
string

Optional client reference stored on the order.

settlement_account_id
integer

Settlement account ID. Mutually exclusive with settlement_address.

Example:

42

settlement_address
string

External settlement wallet address. Mutually exclusive with settlement_account_id.

to_chain_id
integer

Destination chain ID for the consolidated asset.

Example:

8453

Response

OK

data
object

Response payload when the request succeeded.

error
boolean

True when the request failed.

message
string

Human-readable status or error message.