GET
/
api
/
v1
/
markets
/
{pair}
/
historical-rates
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/markets/{pair}/historical-rates \
  --header 'Authorization: Bearer <token>'
{
  "market": "ETH_ARS",
  "prices": [
    {
      "average_price": "95638.8143077163",
      "timestamp": "2022-02-22T04:44:00Z"
    },
    {
      "average_price": "95300.75424968451",
      "timestamp": "2022-02-22T04:45:00Z"
    },
    {
      "average_price": "95651.17851615207",
      "timestamp": "2022-02-22T04:46:00Z"
    },
    {
      "average_price": "95593.46221762343",
      "timestamp": "2022-02-22T04:47:00Z"
    },
    {
      "average_price": "95387.45525295581",
      "timestamp": "2022-02-22T04:48:00Z"
    },
    {
      "average_price": "95150.37934643241",
      "timestamp": "2022-02-22T04:49:00Z"
    },
    {
      "average_price": "95786.13943068423",
      "timestamp": "2022-02-22T04:50:00Z"
    },
    {
      "average_price": "95360.19525512702",
      "timestamp": "2022-02-22T04:51:00Z"
    },
    {
      "average_price": "95670.28209361361",
      "timestamp": "2022-02-22T04:52:00Z"
    },
    {
      "average_price": "95693.0849776592",
      "timestamp": "2022-02-22T04:53:00Z"
    },
    {
      "average_price": "95497.92466995025",
      "timestamp": "2022-02-22T04:54:00Z"
    },
    {
      "average_price": "95282.96795733641",
      "timestamp": "2022-02-22T04:55:00Z"
    },
    {
      "average_price": "95770.61123047466",
      "timestamp": "2022-02-22T04:56:00Z"
    },
    {
      "average_price": "95421.07629358338",
      "timestamp": "2022-02-22T04:57:00Z"
    },
    {
      "average_price": "95172.83964890789",
      "timestamp": "2022-02-22T04:58:00Z"
    },
    {
      "average_price": "95457.27157264609",
      "timestamp": "2022-02-22T04:59:00Z"
    },
    {
      "average_price": "95368.74568971257",
      "timestamp": "2022-02-22T05:00:00Z"
    },
    {
      "average_price": "95540.20823974122",
      "timestamp": "2022-02-22T05:01:00Z"
    },
    {
      "average_price": "95771.70205378703",
      "timestamp": "2022-02-22T05:02:00Z"
    },
    {
      "average_price": "95279.00497750723",
      "timestamp": "2022-02-22T05:03:00Z"
    },
    {
      "average_price": "95672.3730277765",
      "timestamp": "2022-02-22T05:04:00Z"
    },
    {
      "average_price": "95436.2849265131",
      "timestamp": "2022-02-22T05:05:00Z"
    },
    {
      "average_price": "95445.24007951409",
      "timestamp": "2022-02-22T05:06:00Z"
    },
    {
      "average_price": "95727.13382933388",
      "timestamp": "2022-02-22T05:07:00Z"
    },
    {
      "average_price": "95520.59849547275",
      "timestamp": "2022-02-22T05:08:00Z"
    }
  ],
  "total_rows": 534
}

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

Path Parameters

pair
string
required

Pair of currencies composed by a base asset and a quote asset, separated by a underscore.

Query Parameters

begin
string

Sets the start of the filter, no rate befor the givn datetime will be returned.

end
string

Sets the end of the filter, no rate after the given datetime will be returned.

increment
enum<string>
default:
ONE_MINUTE

Sets the increment between frames.

Available options:
ONE_MINUTE,
FIVE_MINUTES,
FIFTEEN_MINUTES,
THIRTY_MINUTES,
ONE_HOUR,
ONE_DAY,
ONE_WEEK,
TWO_WEEKS,
FOUR_WEEKS
max_data_point
integer

Value of maximum data points to be grouped as a dynamic increment, if this parameter is given, the increment parameter will be ignored.

Required range: 1 <= x <= 40
limit
integer
default:
25

Pagination limit parameter, sets the maximum amount of items to be returned.

offset
integer

Offset pagination parameter, sets the number of elements that needs to be skipped.

Response

200 - application/json
Successful response
market
string

Pair of currencies composed by a base asset and a quote asset, separated by a underscore.

prices
object[]