Per-asset calibration self-monitor (p95 vs band, 8d)
GET
/
v1
/
calibration
Per-asset calibration self-monitor (p95 vs band, 8d)
curl --request GET \
--url https://api.pegana.xyz/v1/calibrationimport requests
url = "https://api.pegana.xyz/v1/calibration"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pegana.xyz/v1/calibration', 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.pegana.xyz/v1/calibration",
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://api.pegana.xyz/v1/calibration"
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://api.pegana.xyz/v1/calibration")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pegana.xyz/v1/calibration")
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_body{
"count": 1,
"data": [
{
"calibration": "provisional",
"health": "<string>",
"monitoring_only": true,
"symbol": "<string>",
"depeg_bps": 123,
"drift_bps": 123,
"p95_bps": 123,
"p99_bps": 123
}
],
"generated_at": "<string>",
"ok": true
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}Response
Calibration health per active asset
List envelope: { ok, generated_at, count, data: [...] }.
Was this page helpful?
⌘I
Per-asset calibration self-monitor (p95 vs band, 8d)
curl --request GET \
--url https://api.pegana.xyz/v1/calibrationimport requests
url = "https://api.pegana.xyz/v1/calibration"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pegana.xyz/v1/calibration', 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.pegana.xyz/v1/calibration",
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://api.pegana.xyz/v1/calibration"
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://api.pegana.xyz/v1/calibration")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pegana.xyz/v1/calibration")
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_body{
"count": 1,
"data": [
{
"calibration": "provisional",
"health": "<string>",
"monitoring_only": true,
"symbol": "<string>",
"depeg_bps": 123,
"drift_bps": 123,
"p95_bps": 123,
"p99_bps": 123
}
],
"generated_at": "<string>",
"ok": true
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}