Prices moving `amount` from this account into `toAccountId`, an account of the same owner in another currency. Nothing is reserved: the rate is the market rate of the moment, and the exchange itself is priced again when it is made.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
accountId |
path | string |
yes | The account sold from. |
Request body
application/json
· ExchangeRequest
· required
| Field | Type | Required | Description |
|---|---|---|---|
amount |
string |
yes | Amount taken from the account sold from, in its currency, fee included. |
expectedTargetAmount |
string |
no | Create only: the amount the quote showed. The exchange is refused with 409 when the rate of the moment would credit less. |
toAccountId |
string |
yes | Account bought into; same owner as the account sold from. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ExchangeQuote |
The price. |
400 |
Error |
Invalid request, or no rate is available right now. |
403 |
Error |
Exchange is not enabled for this client. |
404 |
Error |
Account not found. |
Specification
This page is generated from the OpenAPI specification, which remains the authoritative machine-readable source.