getPairs {KrakenR}R Documentation

Retrieve Tradable Asset Pairs Information from Kraken Exchange

Description

This function fetches detailed information about tradable asset pairs from the Kraken API, either for all pairs or a specified subset.

Usage

getPairs(pairs = "All", info = "info", country_code = NULL)

Arguments

pairs

A character vector specifying the pairs to retrieve. Use "All" to fetch data for all pairs. For specific pairs, provide their abbreviations (e.g., "ADAEUR" or c("ADAEUR", "BTCUSD")). Default is "All".

info

A character vector to specify the level of detail ("info", "leverage", "fees", "margin"). Default is "info".

country_code

A single character string specifying the country code to filter the pairs. Use NULL if not needed. Default is NULL.

Value

A data frame containing detailed information about the requested asset pairs with nested lists for columns with multiple values.

Examples

getPairs()
getPairs("ADAEUR")
getPairs(c("ADAEUR", "BTCUSD"), info = "fees")
getPairs("ADAEUR", country_code = "CH")
getPairs(country_code = "US:TX")

[Package KrakenR version 1.0.0 Index]