Actions51
- Accounts Actions
- Products Actions
- Orders Actions
- Portfolio Actions
- List Portfolios
- Create Portfolio
- Move Portfolio Funds
- Get Portfolio Breakdown
- Delete Portfolio
- Edit Portfolio
- Get Futures Balance Summary
- Get Intraday Margin Setting
- Set Intraday Margin Setting
- Get Current Margin Window
- List Futures Positions
- Get Futures Position
- Schedule Futures Sweep
- List Futures Sweeps
- Cancel Pending Futures Sweep
- Allocate Portfolio
- Get Perpetuals Portfolio Summary
- List Perpetuals Positions
- Get Perpetuals Position
- Get Portfolios Balances
- Opt Inor Outof Multi Asset Collateral
- Fees Actions
- Converts Actions
- Public Actions
- Payment Methods Actions
- Data Actions
Public → Get Public Product Candles
AI-generatedSummary
Retrieve historical market data for a specified product from the Coinbase API based on the provided parameters.
Inputs
- product_id (required) — The ID of the product.
- start — The start time of the requested candles.
- end — The end time of the requested candles.
- granularity — The granularity (in seconds) for the candle data.
- limit — The maximum number of candle data points to retrieve.
- requestOptions — Additional options for the request, including batching and SSL settings.
Output shape
a list of candle data points
Returned data includes historical candles for the specified product ID within the defined time range. If 'limit' is not specified, a default maximum will be applied.
Examples
Example 1: Retrieve 50 candles for BTC-USD from the last week
Set 'product_id' to 'BTC-USD', 'start' to 'one week ago', 'end' to 'now', and 'limit' to 50.