Create Reusable Quote
ReusableQuotes are “held rates” offered by Ripio to buy or sell assets at a specific price within a period of time - for example, the option to buy ETH within the next 30 seconds for $10,000.
The typical Quotes workflow is as follows:
- Call List Market Rates to get the latest available quoted prices for the assets you want to buy or sell. Please note that these rates are subject to change depending on the amount of base/quote currency the end user is willing to trade.
- Partner performs a POST request to ReusableQuote 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 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.
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
Indicates pair name.
1
Arbitrary identifier issued by the partner. Serves as an external identifier for lookups.
1
Response
UUID used as quote identifier.
Indicates pair name involved in the quotation.
Indicates the base currency involved in the quotation.
Indicates the quote currency involved in the quotation.
Indicates the exchange rate used for conversion.
Indicates the exchange rate used for conversion.
Arbitrary identifier issued by the partner. Serves as an external identifier for lookups.
128
ISO DateTime indicating creation date.
ISO DateTime indicating expiration date of the quote. Quote will be invalid after that date.
COM
, PEN
, EXP
, UNA_PRICE
Was this page helpful?