All URIs are relative to http://localhost
Method | HTTP request | Description ------------- | ------------- | ------------- GetExchangeRates | GET /{currency}/rates/{height} | Returns exchange rate for a given height
Rates GetExchangeRates(currency, height)
Returns exchange rate for a given height
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)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- currency | character| The cryptocurrency code (e.g., btc) | height | integer| The block height |
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | OK | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.