Get supported collateral info
curl --request GET \
--url https://api.orderly.org/v1/public/tokenimport requests
url = "https://api.orderly.org/v1/public/token"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/token', 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.orderly.org/v1/public/token",
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.orderly.org/v1/public/token"
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.orderly.org/v1/public/token")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/token")
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{
"success": true,
"data": {
"rows": [
{
"token": "ETH",
"base_weight": 0.8,
"discount_factor": 0.02,
"haircut": 0.95,
"user_max_qty": 111,
"is_collateral": true,
"decimals": 6,
"minimum_withdraw_amount": 0.000001,
"on_chain_swap": true,
"token_hash": "0xd6aca1be9729c13d677335161321649cccae6a591554772516700f986f942eaa",
"chain_details": [
{
"chain_id": 43113,
"contract_address": "0x5d64c9cfb0197775b4b3ad9be4d3c7976e0d8dc3",
"cross_chain_withdrawal_fee": 0,
"decimals": 18,
"withdraw_fee": 2,
"display_name": "ETH",
"exclusive_deposit_supported": false
}
]
}
]
},
"timestamp": 1702989203989
}Market info
Get supported collateral info
Limit: 10 requests per 1 second per IP address
GET /v1/public/token
Retrieves the available tokens to be used as collateral within Orderly.
GET
/
v1
/
public
/
token
Get supported collateral info
curl --request GET \
--url https://api.orderly.org/v1/public/tokenimport requests
url = "https://api.orderly.org/v1/public/token"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/token', 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.orderly.org/v1/public/token",
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.orderly.org/v1/public/token"
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.orderly.org/v1/public/token")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/token")
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{
"success": true,
"data": {
"rows": [
{
"token": "ETH",
"base_weight": 0.8,
"discount_factor": 0.02,
"haircut": 0.95,
"user_max_qty": 111,
"is_collateral": true,
"decimals": 6,
"minimum_withdraw_amount": 0.000001,
"on_chain_swap": true,
"token_hash": "0xd6aca1be9729c13d677335161321649cccae6a591554772516700f986f942eaa",
"chain_details": [
{
"chain_id": 43113,
"contract_address": "0x5d64c9cfb0197775b4b3ad9be4d3c7976e0d8dc3",
"cross_chain_withdrawal_fee": 0,
"decimals": 18,
"withdraw_fee": 2,
"display_name": "ETH",
"exclusive_deposit_supported": false
}
]
}
]
},
"timestamp": 1702989203989
}⌘I