Get Swap
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>.
Path Parameters
Response
Read-only view of a swap, extending the create serializer with aud_value.
aud_value is null while the swap is processing and populated once it reaches a terminal state (processed/rejected). For AUD-involved trades the value is exact; for crypto-to-crypto it is the ticker-estimated AUD value at the time of finalization.
5- quote10- pending12- estimated15- processing20- error40- rejected60- processed
5, 10, 12, 15, 20, 40, 60 Final amount bought by the customer
Final amount sold by the customer
For reference purposes only.
Net amount, after subtracting the fee
Total amount, incl. the fee