blockwatch.api: Internal method to execute Blockwatch API calls

Description Usage Arguments Details Value See Also Examples

View source: R/Blockwatchapi.R

Description

Internal method to execute Blockwatch API calls

Usage

1
blockwatch.api(path, http = c("GET"), postdata = NULL, ...)

Arguments

path

Path to api resource.

http

Type of http request sent.

postdata

A character or raw vector that is sent in a body.

...

Named values that are interpretted as Blockwatch API parameters. Please see https://blockwatch.cc/docs/api.

Details

Set your api_key with blockwatch.api_key function. For instructions on finding your api key go to https://blockwatch.cc/account/profile#apikey

Value

Blockwatch API response.

See Also

blockwatch.api_key

Examples

1
2
3
4
5
## Not run: 
blockwatchdata = blockwatch.api(path="series/BITFINEX:OHLCV/BTC_USD", http="GET")
plot(blockwatchdata[,1])

## End(Not run)

blockwatch-cc/blockwatch-r documentation built on May 13, 2020, 4:06 p.m.