get https://api.bring.trade/api/v1/market/klines
Obtain historical candlestick data (K-line) for a trading pair, useful for technical analysis.
The K-line (Candlestick) API provides historical K-line data for a specific trading pair.
K-lines are essential for technical analysis, offering details such as open, close, high, and low prices within a specified time interval. This API can be used to retrieve candlestick data for various time frames (intervals) and specified periods.
⏳ Limit
10 requests per minutes.
🛠️ Parameters
symbol (required)
- Type: String
- Description: The symbol of the trading instrument for which you want to retrieve K-line data. For example,
BT_PERP_BTC_USD
for the BTC perpetual contract on Bring Trade.
interval (required):
- Type: String
- Description: The time interval for each candlestick (K-line). Supported intervals include: "
1m
" | "5m
" | "15m
" | "30m
" | "1H
" | "4H
" | "1D
" | "1W
" | "1M
"
end (optional):
- Type: Integer (Unix timestamp in milliseconds)
- Description: The end time for the K-line data retrieval. If not provided, it will return data up to the latest available record.
limit (optional):
- Type: string
- Description: 500 as default and max 1,000
📬 Response
Field | Type | Description |
---|---|---|
ts | string | Timestamp |
o | string | The opening price. |
h | string | The highest price. |
l | string | The lowest price. |
c | string | The price. |