K-line OHLCV (GET)

K-line OHLCV: Credit Usage 10

This API is used to get the open / high / low / close prices and trading volume of K-lines for a specific trading pair

URL

Header: X-API-KEY

(Please do not disclose your API Key to anyone. If you are at risk of losing it, please refresh it.)

Parameters

{chain} solana / bsc Required
{pair} Pair Contract Address Required
{interval} 1s / 30s / 1m / 5m / 15m / 30m / 1h / 4h / 12h / 1d Required
{end} K-line end time, in milliseconds timestamp, returns 100 data points before this time Required

Notes

  1. X-API-KEY can be obtained in your "Dashboard", go to check: Dashboard

  2. In the paging type interface, use the next field in the return value as the query parameter for the next page (if next == null, it means that paging has ended)

Results

{
	"err": false,
	"res": [
		{
			"time": 1750211580000,
			"open": 0.00003703485814540744,
			"high": 0.00004583545646248797,
			"low": 0.00003703485814540744,
			"close": 0.00004013297579521927,
			"volume": 11348.46893515788
		}
	],
	"docs": "https://dbotx.com/docs"
}

Response Parameters

  • time: K-line time

  • open: Open price

  • high: High price

  • low: Low price

  • close: Close price

  • volume: Trading volume

Last updated