List ITN Assets
curl --request GET \
--url https://api.gm.ondo.finance/v1/itn/assets \
--header 'x-api-key: <api-key>'import requests
url = "https://api.gm.ondo.finance/v1/itn/assets"
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://api.gm.ondo.finance/v1/itn/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://api.gm.ondo.finance/v1/itn/assets",
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://api.gm.ondo.finance/v1/itn/assets"
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://api.gm.ondo.finance/v1/itn/assets")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gm.ondo.finance/v1/itn/assets")
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[
{
"symbol": "AAPLon",
"ticker": "AAPL",
"networks": [
{
"networkChainId": "bsc-56",
"evmChainId": 56,
"alpacaNetwork": "binance",
"tokenAddress": "0x390a684ef9cade28a7ad0dfa61ab1eb3842618c4",
"decimals": 18,
"mintFeeBps": 0,
"redeemFeeBps": 5
},
{
"networkChainId": "ethereum-1",
"evmChainId": 1,
"alpacaNetwork": "ethereum",
"tokenAddress": "0x14c3abf95cb9c93a8b82c1cdcb76d72cb87b2d4c",
"decimals": 18,
"mintFeeBps": 0,
"redeemFeeBps": 5
}
]
},
"..."
]{
"code": "MISSING_API_KEY",
"message": "missing API key",
"documentation": "https://docs.ondo.finance/api-reference/error-codes#missing_api_key"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded",
"documentation": "https://docs.ondo.finance/api-reference/error-codes#rate_limited"
}{
"code": "INTERNAL_ERROR",
"message": "An internal server error occurred. Please see the returned message and documentation for details.",
"documentation": "https://docs.ondo.finance/api-reference/error-codes#internal_error"
}ITN
List ITN Assets
This endpoint lists every asset available through Alpaca’s Instant Tokenization Network (ITN) and the networks each asset is deployed on. For each network, it returns the token contract address, the token decimals, and the ITN mint and redeem fees.
For current mint and redeem availability, see Get ITN Status.
For caching details on this endpoint, please see: Endpoint Caching.
For the complete ITN workflow, see ITN Integration.
GET
/
v1
/
itn
/
assets
List ITN Assets
curl --request GET \
--url https://api.gm.ondo.finance/v1/itn/assets \
--header 'x-api-key: <api-key>'import requests
url = "https://api.gm.ondo.finance/v1/itn/assets"
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://api.gm.ondo.finance/v1/itn/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://api.gm.ondo.finance/v1/itn/assets",
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://api.gm.ondo.finance/v1/itn/assets"
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://api.gm.ondo.finance/v1/itn/assets")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gm.ondo.finance/v1/itn/assets")
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[
{
"symbol": "AAPLon",
"ticker": "AAPL",
"networks": [
{
"networkChainId": "bsc-56",
"evmChainId": 56,
"alpacaNetwork": "binance",
"tokenAddress": "0x390a684ef9cade28a7ad0dfa61ab1eb3842618c4",
"decimals": 18,
"mintFeeBps": 0,
"redeemFeeBps": 5
},
{
"networkChainId": "ethereum-1",
"evmChainId": 1,
"alpacaNetwork": "ethereum",
"tokenAddress": "0x14c3abf95cb9c93a8b82c1cdcb76d72cb87b2d4c",
"decimals": 18,
"mintFeeBps": 0,
"redeemFeeBps": 5
}
]
},
"..."
]{
"code": "MISSING_API_KEY",
"message": "missing API key",
"documentation": "https://docs.ondo.finance/api-reference/error-codes#missing_api_key"
}{
"code": "RATE_LIMITED",
"message": "rate limit exceeded",
"documentation": "https://docs.ondo.finance/api-reference/error-codes#rate_limited"
}{
"code": "INTERNAL_ERROR",
"message": "An internal server error occurred. Please see the returned message and documentation for details.",
"documentation": "https://docs.ondo.finance/api-reference/error-codes#internal_error"
}
