cURL
curl --request GET \
--url https://api.woox.io/v3/account/tokenConfig \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>'import requests
url = "https://api.woox.io/v3/account/tokenConfig"
headers = {
"x-api-key": "<x-api-key>",
"x-api-signature": "<x-api-signature>",
"x-api-timestamp": "<x-api-timestamp>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-api-key': '<x-api-key>',
'x-api-signature': '<x-api-signature>',
'x-api-timestamp': '<x-api-timestamp>'
}
};
fetch('https://api.woox.io/v3/account/tokenConfig', 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.woox.io/v3/account/tokenConfig",
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: <x-api-key>",
"x-api-signature: <x-api-signature>",
"x-api-timestamp: <x-api-timestamp>"
],
]);
$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.woox.io/v3/account/tokenConfig"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-api-signature", "<x-api-signature>")
req.Header.Add("x-api-timestamp", "<x-api-timestamp>")
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.woox.io/v3/account/tokenConfig")
.header("x-api-key", "<x-api-key>")
.header("x-api-signature", "<x-api-signature>")
.header("x-api-timestamp", "<x-api-timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woox.io/v3/account/tokenConfig")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-api-signature"] = '<x-api-signature>'
request["x-api-timestamp"] = '<x-api-timestamp>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"rows": [
{
"token": "BTC",
"collateralRatio": "0.85",
"marginFactor": "0.00000023",
"collateral": true, // if the token is now used as collateral
"canCollateral": true, // if the token can be used as collateral
"canShort": true, // if the token supports short selling
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "ETH",
"collateralRatio": "0.85",
"marginFactor": 0.00000025",
"collateral": true,
"canCollateral": true,
"canShort": true,
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "WOO",
"collateralRatio": "0.6",
"marginFactor": "0.00000025",
"collateral": false,
"canCollateral": false,
"canShort": false,
"marginMaxLeverage": 5,
"marginMaxPosition": 100000000000
}
]
},
"timestamp": 1721351502594
}
Account
Token config
Get the token level configurations.
GET
/
v3
/
account
/
tokenConfig
cURL
curl --request GET \
--url https://api.woox.io/v3/account/tokenConfig \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>'import requests
url = "https://api.woox.io/v3/account/tokenConfig"
headers = {
"x-api-key": "<x-api-key>",
"x-api-signature": "<x-api-signature>",
"x-api-timestamp": "<x-api-timestamp>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-api-key': '<x-api-key>',
'x-api-signature': '<x-api-signature>',
'x-api-timestamp': '<x-api-timestamp>'
}
};
fetch('https://api.woox.io/v3/account/tokenConfig', 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.woox.io/v3/account/tokenConfig",
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: <x-api-key>",
"x-api-signature: <x-api-signature>",
"x-api-timestamp: <x-api-timestamp>"
],
]);
$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.woox.io/v3/account/tokenConfig"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-api-signature", "<x-api-signature>")
req.Header.Add("x-api-timestamp", "<x-api-timestamp>")
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.woox.io/v3/account/tokenConfig")
.header("x-api-key", "<x-api-key>")
.header("x-api-signature", "<x-api-signature>")
.header("x-api-timestamp", "<x-api-timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woox.io/v3/account/tokenConfig")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-api-signature"] = '<x-api-signature>'
request["x-api-timestamp"] = '<x-api-timestamp>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"rows": [
{
"token": "BTC",
"collateralRatio": "0.85",
"marginFactor": "0.00000023",
"collateral": true, // if the token is now used as collateral
"canCollateral": true, // if the token can be used as collateral
"canShort": true, // if the token supports short selling
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "ETH",
"collateralRatio": "0.85",
"marginFactor": 0.00000025",
"collateral": true,
"canCollateral": true,
"canShort": true,
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "WOO",
"collateralRatio": "0.6",
"marginFactor": "0.00000025",
"collateral": false,
"canCollateral": false,
"canShort": false,
"marginMaxLeverage": 5,
"marginMaxPosition": 100000000000
}
]
},
"timestamp": 1721351502594
}
Limit: 10 requests per 1 second
Get the token level configurations.
Get the token level configurations.
{
"success": true,
"data": {
"rows": [
{
"token": "BTC",
"collateralRatio": "0.85",
"marginFactor": "0.00000023",
"collateral": true, // if the token is now used as collateral
"canCollateral": true, // if the token can be used as collateral
"canShort": true, // if the token supports short selling
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "ETH",
"collateralRatio": "0.85",
"marginFactor": 0.00000025",
"collateral": true,
"canCollateral": true,
"canShort": true,
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "WOO",
"collateralRatio": "0.6",
"marginFactor": "0.00000025",
"collateral": false,
"canCollateral": false,
"canShort": false,
"marginMaxLeverage": 5,
"marginMaxPosition": 100000000000
}
]
},
"timestamp": 1721351502594
}
Headers
api-key
Example:
"abcdef123456"
api-signature
Example:
"signaturestring"
api-timestamp
Example:
"1718943200000"
⌘I