Create a swap offer
POST/v1/swaps
By submitting a request to this endpoint, users can propose a swap offer, where they specify the assets they would like to exchange and the amount of units, either from the source or from the target asset.
The request triggers the creation of a swap offer that can later be accepted by the user within its validity (as defined in offer_validity & expires_at response parameters).
The users can swap any asset that is present in their portfolio to any other supported digital asset on our platform. When swapping an asset, it is first sold as a fiat token (F-Token) before the desired asset is bought. This happens to avoid price fluctuations.
Request
Responses
- 201
- 400
- 401
- 403
- 410
- 422
- 429
- 500
- 503
Success Response (New offer has been created)
Bad request
Unauthorized
Forbidden
Gone
Validation Errors
Too Many Requests
Response Headers
The rate limit ceiling for the current time window. Envoy may include multiple limits and window metadata.
50, 50;w=1The number of requests remaining in the current rate limit window.
0The number of seconds until the current rate limit window resets.
1Indicates the request was rate limited by the Envoy proxy.
trueInternal Error
Maintenance or Service unavailable