Skip to main content
GET
/
api
/
private
/
swaps
/
List Swaps
curl --request GET \
  --url https://app.digitalsurge.com.au/api/private/swaps/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "src_asset": "<string>",
      "dst_asset": "<string>",
      "bought_amount": "<string>",
      "sold_amount": "<string>",
      "src_fee": "<string>",
      "dst_fee": "<string>",
      "aud_value": "<string>",
      "req_get_amount": "<string>",
      "req_spend_amount": "<string>",
      "expected_price": "<string>"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Authorizations

Authorization
string
header
required

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

page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Response

200 - application/json
count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?page=2"