1. Get live prices (no auth required)
Public market data works without an account. Fetch the current buy/sell price for every tradeable asset:2. Create an API key
Private endpoints need an API key:- Log in to the Digital Surge app.
- Go to Account Settings → API Keys.
- Choose Read Only (portfolio access) or Read & Write (can also trade and withdraw).
- Confirm with your two-factor code, then copy the key immediately — it is shown only once.
3. Read your balances
Send the key as a Bearer token:4. Quote a swap
Swaps are how you trade on Digital Surge: AUD → crypto is a buy, crypto → AUD is a sell. Always estimate first — the estimate is your binding quote:estimated_price_exact and the fees you’d pay.
5. Execute the swap
Pass the same parameters plusexpected_price from the estimate — if the market moves beyond tolerance, the swap is rejected instead of filling at a worse price:
id with status: "processing". Poll GET /api/private/swaps/{id}/ about once per second (up to ~10 seconds) until the status becomes processed.
Next steps
API Reference
Withdrawals, recurring buys, price triggers, transaction history, and more.
Connect an AI agent
Skip the code entirely — let Claude or another agent use your account via MCP.