Swap Quote Executions performs assets using a Reusable Quote obtained from the Swap Reusable Quote Creation flow.
The asset, and guaranteed price/rate of the execution are specified by the quote with ID quote_id
.
The amount to swap must be specified by setting the following attribute:
base_amount
to specify the amount of crypto that will be debited from base asset in order to accredit the equivalent quote asset.An otherwise-valid request to create a quote execution may fail with the following types of errors:
swap_quote_id
has expired.end_user_id
has insufficient available balance to fund the execution.B2B’s White Label API uses OAuth2. Currently there is only one supported authentication flow:
Every call to the API has to be authenticated with an OAuth2 Token. In order to request this token, you will need to have sandbox or production API Keys (client id and client secret) that will be needed to generate a credential in order to negotiate an ephemeral access token.
Every request must be accompianed by an Authorization
header with a value that follows the following schema: Bearer ACCESS_TOKEN
Successful response
If the transaction represents a BUY, SELL or SWAP operation, this object will detail the trade operation information.