Get jetton price chart data
curl --request GET \
--url https://tokens.swap.coffee/api/v3/jettons/{address}/price-chart \
--header 'X-Api-Key: <api-key>'import requests
url = "https://tokens.swap.coffee/api/v3/jettons/{address}/price-chart"
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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart', 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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart",
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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart"
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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.swap.coffee/api/v3/jettons/{address}/price-chart")
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{
"points": [
{
"value": 1.234,
"time": "2024-01-15T10:30:00Z"
}
]
}{
"error": "error description"
}{
"error": "error description"
}{
"error": "<string>"
}Jettons
Get jetton price chart data
GET
/
api
/
v3
/
jettons
/
{address}
/
price-chart
Get jetton price chart data
curl --request GET \
--url https://tokens.swap.coffee/api/v3/jettons/{address}/price-chart \
--header 'X-Api-Key: <api-key>'import requests
url = "https://tokens.swap.coffee/api/v3/jettons/{address}/price-chart"
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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart', 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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart",
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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart"
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://tokens.swap.coffee/api/v3/jettons/{address}/price-chart")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.swap.coffee/api/v3/jettons/{address}/price-chart")
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{
"points": [
{
"value": 1.234,
"time": "2024-01-15T10:30:00Z"
}
]
}{
"error": "error description"
}{
"error": "error description"
}{
"error": "<string>"
}Authorizations
Path Parameters
The jetton master address
Query Parameters
Start timestamp (ISO datetime)
End timestamp (ISO datetime)
Currency for price data
Available options:
usd, ton Response
Price chart data
Array of price chart data points
Show child attributes
Show child attributes
⌘I