public_candles: Get bids and asks for provided currency-pair (products) by...

Description Usage Arguments Value Examples

View source: R/public_candles.R

Description

This function is a public function and will fetch historic rates for provided currency pair (product_id). Rates are returned in grouped buckets based on requested granularity..

Usage

1
2
public_candles(product_id = "LTC-USD", start = NULL, end = NULL,
  granularity = NULL)

Arguments

product_id

Optional character parameter. This is a case insensitive value of the product id for which the order book is desired. Default to 'LTC-USD'. For all valid product ids, refer to public_info.

start

Optional parameter. Start time in ISO 8601

end

Optional parameter. End time in ISO 8601

granularity

Optional parameter. Desired timeslice in seconds. The granularity field must be one of the following values: 60, 300, 900, 3600, 21600, 86400. Otherwise, the request will be rejected. These values correspond to timeslices representing one minute, five minutes, fifteen minutes, one hour, six hours, and one day, respectively.

Value

Dataframe with a time of the candle, low, high, open , close and volume for that candle.

Examples

1
2
3
4
5
## Not run: 
public_candles()
public_candles("ETH-EUR")

## End(Not run)

JARVIS001011/rgdax documentation built on May 6, 2019, 12:06 p.m.