Description Usage Arguments Value Examples
View source: R/public_candles.R
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. A maximum of 300 records are returned. If the date range and granularity are not within the resultant volume set, it will be rejected by Coinbase Pro.
1 2 3 4 5 6 |
product_id |
Optional character parameter. This is a case insensitive value of the product id for which the order book is desired. Default to |
start |
Optional string parameter. Start time in ISO 8601. Format YYYY-MM-DD |
end |
Optional string parameter. End time in ISO 8601. Format YYYY-MM-DD |
granularity |
Optional parameter. Desired timeslice in seconds. The granularity field must be one of the following values: |
Dataframe with a time of the candle, low, high, open , close and volume for that candle.
1 2 3 4 5 6 | ## Not run:
public_candles()
public_candles("ETH-EUR")
ublic_candles("ETH-EUR",start="2012-01-18", end="2012-01-25",granularity=3600)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.