docs/RatesApi.md

RatesApi

All URIs are relative to http://localhost

Method | HTTP request | Description ------------- | ------------- | ------------- GetExchangeRates | GET /{currency}/rates/{height} | Returns exchange rate for a given height

GetExchangeRates

Rates GetExchangeRates(currency, height)

Returns exchange rate for a given height

Example

library(graphsense)

var.currency <- 'btc' # character | The cryptocurrency code (e.g., btc)
var.height <- 1 # integer | The block height

#Returns exchange rate for a given height
api.instance <- RatesApi$new()
api.instance$apiClient$basePath <- 'http://localhost';
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['Authorization'] <- 'WRITE_YOUR_API_KEY_HERE';
result <- api.instance$GetExchangeRates(var.currency, var.height)
dput(result)

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- currency | character| The cryptocurrency code (e.g., btc) | height | integer| The block height |

Return type

Rates

Authorization

api_key

HTTP request headers

HTTP response details

| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | OK | - |



graphsense/rgraphsense documentation built on Sept. 2, 2022, 1:45 p.m.