Get Historical Market Rates
Returns historical market rates, for a given enabled pair.
Either both or none of begin
and end
query params are mandatory.
If no begin
and end
QueryParams are indicated, the default response will return market prices of the last 24 hours.
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
Path Parameters
Pair of currencies composed by a base asset and a quote asset, separated by a underscore.
Query Parameters
Sets the start of the filter, no rate befor the givn datetime will be returned.
Sets the end of the filter, no rate after the given datetime will be returned.
Sets the increment between frames.
ONE_MINUTE
, FIVE_MINUTES
, FIFTEEN_MINUTES
, THIRTY_MINUTES
, ONE_HOUR
, ONE_DAY
, ONE_WEEK
, TWO_WEEKS
, FOUR_WEEKS
Value of maximum data points to be grouped as a dynamic increment, if this parameter is given, the increment parameter will be ignored.
1 <= x <= 40
Pagination limit parameter, sets the maximum amount of items to be returned.
Offset pagination parameter, sets the number of elements that needs to be skipped.
Was this page helpful?