Batch peg signal for every active asset (data array, each signal carries its mint)
GET
/
v1
/
peg
/
feed
Batch peg signal for every active asset (data array, each signal carries its mint)
curl --request GET \
--url https://api.pegana.xyz/v1/peg/feedimport requests
url = "https://api.pegana.xyz/v1/peg/feed"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pegana.xyz/v1/peg/feed', 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/peg/feed",
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/peg/feed"
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/peg/feed")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pegana.xyz/v1/peg/feed")
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": [
{
"anchor": "USD",
"calibration": "provisional",
"class": "<string>",
"decimals": 123,
"mint": "<string>",
"monitoring_only": true,
"name": "<string>",
"peg_target": "<string>",
"receipt_url": "<string>",
"stale": true,
"symbol": "<string>",
"confidence": "high",
"discount": "<string>",
"discount_bps": 123,
"intrinsic_usd": "<string>",
"jitter_bps_24h": "<string>",
"market_cap": "<string>",
"market_usd": "<string>",
"risk_score": 1,
"state": "PEGGED",
"systemic": {
"advisory_note": "<string>",
"cascade": [
{
"liquidatable_usd": "<string>",
"positions": "<string>",
"shock_bps": 123
}
],
"coverage": "<string>",
"loop_exposure_usd": "<string>",
"protocols": [
"<string>"
],
"updated_at": "<string>"
},
"updated_at": "<string>",
"worst_abs_24h": "<string>"
}
],
"generated_at": "<string>",
"methodology": "<string>",
"ok": true
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}Response
Peg signal for all active assets as a data array; index by each signal's mint
Batch envelope: a data array of per-asset signals (each carries its own
mint), consistent with every other /v1 list. methodology is the global
version stamped once on the envelope (not repeated per signal). tokens.xyz
indexes data[] by each signal's mint into its own per-currency buckets.
Was this page helpful?
⌘I
Batch peg signal for every active asset (data array, each signal carries its mint)
curl --request GET \
--url https://api.pegana.xyz/v1/peg/feedimport requests
url = "https://api.pegana.xyz/v1/peg/feed"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pegana.xyz/v1/peg/feed', 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/peg/feed",
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/peg/feed"
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/peg/feed")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pegana.xyz/v1/peg/feed")
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": [
{
"anchor": "USD",
"calibration": "provisional",
"class": "<string>",
"decimals": 123,
"mint": "<string>",
"monitoring_only": true,
"name": "<string>",
"peg_target": "<string>",
"receipt_url": "<string>",
"stale": true,
"symbol": "<string>",
"confidence": "high",
"discount": "<string>",
"discount_bps": 123,
"intrinsic_usd": "<string>",
"jitter_bps_24h": "<string>",
"market_cap": "<string>",
"market_usd": "<string>",
"risk_score": 1,
"state": "PEGGED",
"systemic": {
"advisory_note": "<string>",
"cascade": [
{
"liquidatable_usd": "<string>",
"positions": "<string>",
"shock_bps": 123
}
],
"coverage": "<string>",
"loop_exposure_usd": "<string>",
"protocols": [
"<string>"
],
"updated_at": "<string>"
},
"updated_at": "<string>",
"worst_abs_24h": "<string>"
}
],
"generated_at": "<string>",
"methodology": "<string>",
"ok": true
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}{
"error": "<string>",
"message": "<string>",
"asset": "<string>"
}