Swap Reusable Quotes
Create Swap Reusable Quotes
SwapReusableQuotes are “held rates” offered by Ripio to swap assets at a specific price within a period of time. The typical Quotes workflow is as follows:
- Partner performs a POST request to Swap Reusable Quote Endpoint, B2B will respond a price for a price valid for 30 second.
- Present the offered price to the end-user, with a timer indicating the time to expiration (30 seconds).
- If a user accepts the price, call Create Swap Reusable Quote Execution passing the reusable quote id, end user external ref, operation type and base or quote amount.
- Call Get Transaction or Get Transaction List to query trade status information.
POST
Authorizations
B2B’s White Label API uses OAuth2. Currently there is only one supported authentication flow:
- clientCredentials allows you to access your own B2B account (First-Party Integration) and performs transactions against the public API. This oauth2 flow is well suited for this API, as it allows machine-to-machine communication.
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
Body
Response
201 - application/json
Successful Response