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
Products → Get Product Candles
AI-generatedSummary
Retrieve historical candlestick data for a specific product based on the specified time range and granularity.
Inputs
- start — Start time for fetching candles, formatted as an ISO 8601 string.
- end — End time for fetching candles, formatted as an ISO 8601 string.
- granularity — Time interval between candlesticks, in seconds.
- ProductID-HERE (required) — The ID of the Product to retrieve candles for.
- requestOptions — Optional request settings like batching, timeout, and SSL handling.
Output shape
a list of candlestick data objects
The output will contain candlestick data including open, high, low, close values, and timestamps. Possible batching and timeouts are configurable.
Examples
Example 1: Fetch hourly candles for BTC-USD from the last week.
Set start to last week's date, end to now, granularity to '3600', and provide the Product ID 'BTC-USD'.