GET
/
api
/
v1
/
rates
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/rates/ \
  --header 'Authorization: Bearer <token>'
[
  {
    "pair": "BTC_USD",
    "last_buy_rate": 45482,
    "last_sell_rate": 45469.03
  },
  {
    "pair": "ETH_USD",
    "last_buy_rate": 3297.4449999999997,
    "last_sell_rate": 3296.45920597
  },
  {
    "pair": "LTC_USD",
    "last_buy_rate": 175.38302177694163,
    "last_sell_rate": 175.11074487355896
  },
  {
    "pair": "USDT_USD",
    "last_buy_rate": 1.0006,
    "last_sell_rate": 1.0005
  }
]

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

Response

200 - application/json
Successful response
pair
string
required

Indicates pair name.

Minimum length: 1
last_sell_rate
number
required

Indicates the latest sale rate available for this pair.

last_buy_rate
number
required

Indicates the latest buy rate available for this pair.