Upon presentation of a trade offer, this endpoint facilitates the user's acceptance of the offer, effectively signalling their agreement to proceed with the trade under the specified conditions. A user can only accept the newest offer created and it can be done within its validity.
When a user submits a request to accept a trade offer, the platform immediately begins to process this request to finalise the trade.
However, there are instances when the processing cannot be completed within a short, predefined time frame (e.g. 10 seconds). In such cases, rather than leaving the user uncertain of the request's status, the API responds with a 202 Accepted
status code.
This response serves as an acknowledgment that the user's request has been successfully received and is in the queue for processing (in progress
status), but it has not yet been finalised.
After receiving 202 Accepted
, check the offer status using the Offer Status endpoint.
Offer has been accepted
Accepted
Unauthorized
Forbidden
The external transaction already exists. / This offer exists and it has another external transaction id associated.
Offer already accepted / A newer offer was created
Offer expired / invalid offer id
Error
Too Many Requests
Error
Maintenance or Service unavailable
{- "data": {
- "id": "2e4c89ac-1290-426f-8de0-4c7b40b91d3a",
- "trade_id": "2e4c89ac-1290-426f-8de0-4c7b40b91d3a",
- "type": "buy",
- "fiat_id": 1,
- "asset_id": 1,
- "fiat_amount": "1.89",
- "tax_amount": "0.1",
- "total_amount": "1.99",
- "asset_amount": "0.00004884",
- "asset_price": "40743.41527688",
- "time": "2021-07-01T14:56:45+03:00",
- "spread": "0.12000000",
- "fees_after_cost": "0.12000000",
- "warning": [
- {
- "message": "Tax withholding provider is not available",
- "message_key": "tax.withholding.not.available",
- "helpdesk_article_id": "",
- "link_message": "",
- "link_message_key": ""
}
]
}
}