Get collateral assets
curl --request GET \
--url https://perp-api.phoenix.trade/v1/collateral/assetsimport requests
url = "https://perp-api.phoenix.trade/v1/collateral/assets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://perp-api.phoenix.trade/v1/collateral/assets', 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://perp-api.phoenix.trade/v1/collateral/assets",
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://perp-api.phoenix.trade/v1/collateral/assets"
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://perp-api.phoenix.trade/v1/collateral/assets")
.asString();require 'uri'
require 'net/http'
url = URI("https://perp-api.phoenix.trade/v1/collateral/assets")
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{
"assets": [
{
"assetIndex": 123,
"decimals": 1,
"symbol": "<string>",
"metadata": {
"displayColor": "<string>",
"displaySymbol": "<string>",
"logoUri": "<string>"
},
"spot": {
"currGlobalBalance": "<string>",
"isActive": true,
"maxGlobalBalance": "<string>",
"maxLiquidationDiscountBps": 1,
"maxLiquidationSize": "<string>",
"maxMarginDiscountBps": 1,
"maxPerTraderBalance": "<string>",
"minLiquidationSlippageBps": 1,
"minMarginDiscountBps": 1,
"mint": "<string>",
"oraclePrice": {
"baseLotDecimals": 123,
"tickSize": "<string>",
"ticks": "<string>",
"hardStaleMultiplier": 1,
"lastUpdateSlot": "<string>",
"lastUpdateTimestamp": "<string>",
"staleThresholdSlots": "<string>"
},
"perpAssetIndex": 1
}
}
],
"slot": "<string>"
}{
"error": "<string>"
}Exchange
Get collateral assets
Returns the registry of accepted collateral assets (the quote asset and each configured spot collateral asset), including mints, risk caps, discount curves, liquidation bounds, and current oracle price metadata.
GET
/
v1
/
collateral
/
assets
Get collateral assets
curl --request GET \
--url https://perp-api.phoenix.trade/v1/collateral/assetsimport requests
url = "https://perp-api.phoenix.trade/v1/collateral/assets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://perp-api.phoenix.trade/v1/collateral/assets', 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://perp-api.phoenix.trade/v1/collateral/assets",
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://perp-api.phoenix.trade/v1/collateral/assets"
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://perp-api.phoenix.trade/v1/collateral/assets")
.asString();require 'uri'
require 'net/http'
url = URI("https://perp-api.phoenix.trade/v1/collateral/assets")
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{
"assets": [
{
"assetIndex": 123,
"decimals": 1,
"symbol": "<string>",
"metadata": {
"displayColor": "<string>",
"displaySymbol": "<string>",
"logoUri": "<string>"
},
"spot": {
"currGlobalBalance": "<string>",
"isActive": true,
"maxGlobalBalance": "<string>",
"maxLiquidationDiscountBps": 1,
"maxLiquidationSize": "<string>",
"maxMarginDiscountBps": 1,
"maxPerTraderBalance": "<string>",
"minLiquidationSlippageBps": 1,
"minMarginDiscountBps": 1,
"mint": "<string>",
"oraclePrice": {
"baseLotDecimals": 123,
"tickSize": "<string>",
"ticks": "<string>",
"hardStaleMultiplier": 1,
"lastUpdateSlot": "<string>",
"lastUpdateTimestamp": "<string>",
"staleThresholdSlots": "<string>"
},
"perpAssetIndex": 1
}
}
],
"slot": "<string>"
}{
"error": "<string>"
}