List Swaps
Swap one asset directly for another at the current market price — this is the instant / one-shot trade flow. For recurring or scheduled buys (DCA), use the broker schedules endpoints instead.
Direction is implied by which asset is AUD:
- BUY a crypto:
src_asset="AUD",dst_asset=<crypto code> - SELL a crypto:
src_asset=<crypto code>,dst_asset="AUD"
Listing returns swap history, most recent first. Retrieving by
id returns the current state of a single swap — used after
create to check whether status has moved from
processing to processed, error, or canceled.
Placing a new swap is a two-step flow: estimate first to
preview price, fees, and amounts, ask the user to confirm, then
create to execute.
See the per-operation documentation for details.
Authorizations
Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.
Query Parameters
A page number within the paginated result set.
Number of results to return per page.