cURL
curl --request GET \
--url https://api.woox.io/v3/spotMargin/interestRate \
--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/spotMargin/interestRate"
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/spotMargin/interestRate', 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/spotMargin/interestRate",
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/spotMargin/interestRate"
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/spotMargin/interestRate")
.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/spotMargin/interestRate")
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": "MATIC",
"currentHourlyBaseRate": "0.000001",
"estHourlyBaseRate": "0.000001",
"currentAnnualBaseRate": "0.00876",
"estAnnualBaseRate": "0.00876",
"estTime": 1632394800000
},
{
"token": "USDT",
"currentHourlyBaseRate": "0.000008",
"estHourlyBaseRate": "0.000008",
"currentAnnualBaseRate": "7008",
"estAnnualBaseRate": "0.07008%",
"estTime": 1632394800000
},
{
"token": "WOO",
"currentHourlyBaseRate": "0.00001",
"estHourlyBaseRate": "0.00001",
"currentAnnualBaseRate": "0.0876",
"estAnnualBaseRate": "0.0876",
"estTime": 1632394800000
},
...
]
},
"timestamp": 1721351502594
}
Spot Margin
Get margin interest rates
Get spot margin interest rate
GET
/
v3
/
spotMargin
/
interestRate
cURL
curl --request GET \
--url https://api.woox.io/v3/spotMargin/interestRate \
--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/spotMargin/interestRate"
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/spotMargin/interestRate', 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/spotMargin/interestRate",
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/spotMargin/interestRate"
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/spotMargin/interestRate")
.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/spotMargin/interestRate")
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": "MATIC",
"currentHourlyBaseRate": "0.000001",
"estHourlyBaseRate": "0.000001",
"currentAnnualBaseRate": "0.00876",
"estAnnualBaseRate": "0.00876",
"estTime": 1632394800000
},
{
"token": "USDT",
"currentHourlyBaseRate": "0.000008",
"estHourlyBaseRate": "0.000008",
"currentAnnualBaseRate": "7008",
"estAnnualBaseRate": "0.07008%",
"estTime": 1632394800000
},
{
"token": "WOO",
"currentHourlyBaseRate": "0.00001",
"estHourlyBaseRate": "0.00001",
"currentAnnualBaseRate": "0.0876",
"estAnnualBaseRate": "0.0876",
"estTime": 1632394800000
},
...
]
},
"timestamp": 1721351502594
}
Limit 10 requests per 60 seconds
{
"success": true,
"data": {
"rows": [
{
"token": "MATIC",
"currentHourlyBaseRate": "0.000001",
"estHourlyBaseRate": "0.000001",
"currentAnnualBaseRate": "0.00876",
"estAnnualBaseRate": "0.00876",
"estTime": 1632394800000
},
{
"token": "USDT",
"currentHourlyBaseRate": "0.000008",
"estHourlyBaseRate": "0.000008",
"currentAnnualBaseRate": "7008",
"estAnnualBaseRate": "0.07008%",
"estTime": 1632394800000
},
{
"token": "WOO",
"currentHourlyBaseRate": "0.00001",
"estHourlyBaseRate": "0.00001",
"currentAnnualBaseRate": "0.0876",
"estAnnualBaseRate": "0.0876",
"estTime": 1632394800000
},
...
]
},
"timestamp": 1721351502594
}
Headers
api-key
Example:
"abcdef123456"
api-signature
Example:
"signaturestring"
api-timestamp
Example:
"1718943200000"
⌘I