Most recent candles for a pool
curl --request GET \
--url https://api.dexploit.dev/api/v1/candles/latest \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dexploit.dev/api/v1/candles/latest"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.dexploit.dev/api/v1/candles/latest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dexploit.dev/api/v1/candles/latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dexploit.dev/api/v1/candles/latest"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dexploit.dev/api/v1/candles/latest")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dexploit.dev/api/v1/candles/latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"pair_address": "<string>",
"token_address": "<string>",
"base_mint": "So11111111111111111111111111111111111111112",
"timeframe": "1s",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume_sol": 123,
"volume_token": 123,
"trade_count": 123,
"buy_count": 123,
"sell_count": 123,
"unique_traders": 123
}
],
"stale": true,
"priced_at": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}Candles (OHLCV)
Most recent candles for a pool
Returns the most-recent N candles for pair_address.
Requires pair_address. The legacy protocol=&pair= form is no longer accepted — sending protocol/pair (or mint) returns HTTP 400 invalid parameter: use pair_address (discover the pool via /api/v1/pairs?token_address=).
The body also carries stale and priced_at for the pool’s price, not for each bar: a bar can carry the last close forward when nothing traded. stale is true when the pool’s last priced trade is more than 600 seconds old, or there is none in the last hour; priced_at is that trade’s time (null if none in the last hour). See Stale prices.
GET
/
api
/
v1
/
candles
/
latest
Most recent candles for a pool
curl --request GET \
--url https://api.dexploit.dev/api/v1/candles/latest \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dexploit.dev/api/v1/candles/latest"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.dexploit.dev/api/v1/candles/latest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dexploit.dev/api/v1/candles/latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dexploit.dev/api/v1/candles/latest"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dexploit.dev/api/v1/candles/latest")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dexploit.dev/api/v1/candles/latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"pair_address": "<string>",
"token_address": "<string>",
"base_mint": "So11111111111111111111111111111111111111112",
"timeframe": "1s",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume_sol": 123,
"volume_token": 123,
"trade_count": 123,
"buy_count": 123,
"sell_count": 123,
"unique_traders": 123
}
],
"stale": true,
"priced_at": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}{
"success": false,
"error": {
"code": "INVALID_PARAM",
"message": "use pair_address; see /api/v1/pairs?token_address=X to discover pools"
}
}Authorizations
ApiKeyHeaderBearerAuthApiKeyQuery
Query Parameters
Response
Latest candles

