Skip to main content
GET
/
api
/
v1
/
rates
Get Last Market 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,
    "final_buy_rate": 46391.64,
    "final_sell_rate": 44559.6494
  },
  {
    "pair": "ETH_USD",
    "last_buy_rate": 3297.4449999999997,
    "last_sell_rate": 3296.45920597,
    "final_buy_rate": 3363.3939,
    "final_sell_rate": 3230.53002185
  },
  {
    "pair": "LTC_USD",
    "last_buy_rate": 175.38302177694163,
    "last_sell_rate": 175.11074487355896,
    "final_buy_rate": 178.89068221248047,
    "final_sell_rate": 171.60852997608777
  },
  {
    "pair": "USDT_USD",
    "last_buy_rate": 1.0006,
    "last_sell_rate": 1.0005,
    "final_buy_rate": 1.020612,
    "final_sell_rate": 0.98049
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.ripio.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Minimum array length: 1
pair
string
required

Indicates pair name.

Minimum string length: 1
last_sell_rate
number
required

Indicates the latest market sell rate available for this pair, before any fee is applied.

last_buy_rate
number
required

Indicates the latest market buy rate available for this pair, before any fee is applied.

final_buy_rate
number
required

Indicates the final buy rate for this pair, with the corresponding fee already applied.

final_sell_rate
number
required

Indicates the final sell rate for this pair, with the corresponding fee already applied.