API reference
Swap status
A trade's status by id, polled or streamed live.
GET
https://api.gum.ag/app/v1/swap/{id}Path parameters
| Parameter | Required | Description |
|---|---|---|
id | Yes | The id from POST /v1/swap. |
Response
An Activity. Poll until final is
true.
Live updates
GET /v1/swap/{id}/events streams the same object as server-sent events. The
first message is the current status and the stream closes after the final
one. See Track status.
If a trade can’t fill before its quote’s window closes, it reads failed and
GUM refunds it automatically; it then reads refunded.