Charts HTTP API
curl --request GET \
--url https://charts.snek.fun/v1/charts/historyimport requests
url = "https://charts.snek.fun/v1/charts/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://charts.snek.fun/v1/charts/history', 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://charts.snek.fun/v1/charts/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://charts.snek.fun/v1/charts/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://charts.snek.fun/v1/charts/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://charts.snek.fun/v1/charts/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyCharts WS Server
Charts HTTP API
Historical and initial OHLC / market-cap bars on https://charts.snek.fun/v1
GET
/
v1
/
charts
/
history
Charts HTTP API
curl --request GET \
--url https://charts.snek.fun/v1/charts/historyimport requests
url = "https://charts.snek.fun/v1/charts/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://charts.snek.fun/v1/charts/history', 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://charts.snek.fun/v1/charts/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://charts.snek.fun/v1/charts/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://charts.snek.fun/v1/charts/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://charts.snek.fun/v1/charts/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyThe charts service exposes read-only HTTP endpoints for candlestick (
/v1/charts/...) and market-cap bars (/v1/charts/mcap/...). Prefer WebSocket for live updates.
Base URL: https://charts.snek.fun/v1
Auth: Public
Resolution query parameter
All endpoints takeresolution — one of: min1, min5, hour1, day1, week1, month1 (see OpenAPI / server enum).
GET /v1/charts/history
OHLCV history for a base / quote pair over a time range.Query parameters
string
required
Base asset id (
policy.hex or . for ADA).string
required
Quote asset id.
integer
required
Range start (Unix seconds).
integer
required
Range end (Unix seconds).
string
required
e.g.
min1, hour1.Response
JSON array of bar objects (LastBarWs): pair, time, low, high, open, close, volume (decimals).
curl -sS "https://charts.snek.fun/v1/charts/history?base=…"e=.&from=1700000000&to=1700086400&resolution=min5"
GET /v1/charts/initial-state
Latest bar (and relevance flag) before subscribing over WebSocket.Response
{
"bar": {
"pair": { "base": "…", "quote": "." },
"time": 1729459260,
"low": "0.0998",
"high": "0.1015",
"open": "0.1001",
"close": "0.1009",
"volume": "345.67"
},
"isRelevant": true
}
GET /v1/charts/mcap/history
Market-cap bars over a range (same query shape ascharts/history).
GET /v1/charts/mcap/initial-state
Latest market-cap bar snapshot (mCap string, time, pair, isRelevant in the bar payload — see OpenAPI).
OpenAPI
GET /v1/docs/openapi on the same host returns the full YAML spec (includes all routes served by the process).Was this page helpful?