Get Fungible Price History
curl --request GET \
--url https://persephone.superform.xyz/v1/fungibles/{fungible_id}/history \
--header 'SF-API-KEY: <api-key>'import requests
url = "https://persephone.superform.xyz/v1/fungibles/{fungible_id}/history"
headers = {"SF-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'SF-API-KEY': '<api-key>'}};
fetch('https://persephone.superform.xyz/v1/fungibles/{fungible_id}/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://persephone.superform.xyz/v1/fungibles/{fungible_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"SF-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://persephone.superform.xyz/v1/fungibles/{fungible_id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("SF-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://persephone.superform.xyz/v1/fungibles/{fungible_id}/history")
.header("SF-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://persephone.superform.xyz/v1/fungibles/{fungible_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["SF-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"points": [
{
"fungible_id": "<string>",
"granularity": "1h",
"bucket_start": "2023-11-07T05:31:56Z",
"close_price_usd": 123,
"source": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"open_price_usd": 123,
"high_price_usd": 123,
"low_price_usd": 123
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Tokens
Get Fungible Price History
Returns exact stored hourly Datamat price points for a chain-independent fungible, including eligible chain-native implementations represented by address 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee. Only implementations that are neither explicitly denied nor registered Vault or SuperVault share contracts participate; a canonical identity with no eligible implementation returns not found. Each OHLC field contains the same stored price. The only supported granularity is 1h.
GET
/
v1
/
fungibles
/
{fungible_id}
/
history
Get Fungible Price History
curl --request GET \
--url https://persephone.superform.xyz/v1/fungibles/{fungible_id}/history \
--header 'SF-API-KEY: <api-key>'import requests
url = "https://persephone.superform.xyz/v1/fungibles/{fungible_id}/history"
headers = {"SF-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'SF-API-KEY': '<api-key>'}};
fetch('https://persephone.superform.xyz/v1/fungibles/{fungible_id}/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://persephone.superform.xyz/v1/fungibles/{fungible_id}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"SF-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://persephone.superform.xyz/v1/fungibles/{fungible_id}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("SF-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://persephone.superform.xyz/v1/fungibles/{fungible_id}/history")
.header("SF-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://persephone.superform.xyz/v1/fungibles/{fungible_id}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["SF-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"points": [
{
"fungible_id": "<string>",
"granularity": "1h",
"bucket_start": "2023-11-07T05:31:56Z",
"close_price_usd": 123,
"source": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"open_price_usd": 123,
"high_price_usd": 123,
"low_price_usd": 123
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
API key required for authentication. Use the value {{v2_api_key}} in Postman.
Path Parameters
Query Parameters
Stored price-point granularity. The only supported value is 1h.
Available options:
1h Response
A successful response.
Show child attributes
Show child attributes
