GET
/
api
/
v1
/
swap-quotes
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/swap-quotes/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 36,
  "next": "https://sandbox-b2b.ripio.com/api/v1/swap-quotes/?page=2",
  "previous": null,
  "results": [
    {
      "id": "d1230c26-b1ba-4adc-a1cd-7a3b3a1d34d6",
      "status": "PEN",
      "pair": "BTC_ETH",
      "base_asset": "BTC",
      "quote_asset": "ETH",
      "buy_rate": "63250.00000000000000",
      "sell_rate": "27200.00000000000000",
      "swap_rate": "63250.00000000000000",
      "usd_rate": "63250.00000000000000",
      "external_ref": "op1",
      "created_at": "2022-01-03T10:56:28.829179Z",
      "expires_at": "2022-01-03T10:56:58.828810Z"
    },
    {
      "id": "aa682b84-0092-4eef-975e-93eb7c3307e5",
      "pair": "USDT_ETH",
      "status": "EXP",
      "base_asset": "USDT",
      "quote_asset": "ETH",
      "buy_rate": "1.00050000",
      "sell_rate": "1.00020000",
      "swap_rate": "1.00020000",
      "usd_rate": "1.00020000",
      "external_ref": "op2",
      "created_at": "2021-09-10T15:23:39.955150-03:00",
      "expires_at": "2021-09-10T15:24:09.954402-03:00"
    },
    {
      "id": "aa682b84-0092-4eef-975e-93eb7c3307e5",
      "pair": "USDT_ETH",
      "status": "EXP",
      "base_asset": "USDT",
      "quote_asset": "ETH",
      "buy_rate": "1.00060000",
      "sell_rate": "1.00030000",
      "swap_rate": "1.00030000",
      "usd_rate": "1.00030000",
      "external_ref": "op3",
      "created_at": "2021-09-10T15:23:39.955150-03:00",
      "expires_at": "2021-09-10T15:24:09.954402-03:00"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

pair
string

Filter by currency pair

date_gt
string

Filter by date, greater than value

Response

200 - application/json
Successful response
count
integer

Indicates total count of quotes.

next
string | null

Indicates next page by URL.

previous
string | null

Indicates previous page by URL.

results
object[]

List of fetched quotes.