curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "user_fees",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "user_fees",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "user_fees",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
};
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
})
.then((response) => response.json())
.then((data) => console.log(data));
<?php
$url = "https://api.hotstuff.trade/info";
$payload = json_encode([
"method" => "user_fees",
"params" => [
"user" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
]
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.hotstuff.trade/info"
payload := map[string]interface{}{
"method": "user_fees",
"params": map[string]string{
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
}
jsonData, _ := json.Marshal(payload)
resp, _ := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;
URL url = new URL("https://api.hotstuff.trade/info");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"user_fees\",\"params\":{\"user\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"}}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = in.readLine();
System.out.println(response);
require 'net/http'
require 'json'
uri = URI('https://api.hotstuff.trade/info')
payload = {
method: "user_fees",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
request.body = payload.to_json
response = http.request(request)
puts JSON.parse(response.body)
{
"account": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"spot_volume_14d": "0",
"spot_volume_30d": "0",
"stable_spot_volume_14d": "0",
"stable_spot_volume_30d": "0",
"perp_volume_14d": "0",
"perp_volume_30d": "0",
"option_volume_14d": "0",
"option_volume_30d": "0",
"total_volume_threshold": 1000000,
"perp_maker_fee_rate": -0.00002,
"perp_taker_fee_rate": 0.00025,
"spot_maker_fee_rate": 0,
"spot_taker_fee_rate": 0.0003,
"stable_spot_maker_fee_rate": -0.0001,
"stable_spot_taker_fee_rate": 0.0001,
"option_maker_fee_rate": 0.0003,
"option_taker_fee_rate": 0.00035
}{
"error": "<error message>"
}Accounts
user_fees
Send POST request to /info with method: “user_fees”
POST
/
info
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "user_fees",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "user_fees",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "user_fees",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
};
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
})
.then((response) => response.json())
.then((data) => console.log(data));
<?php
$url = "https://api.hotstuff.trade/info";
$payload = json_encode([
"method" => "user_fees",
"params" => [
"user" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
]
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.hotstuff.trade/info"
payload := map[string]interface{}{
"method": "user_fees",
"params": map[string]string{
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
}
jsonData, _ := json.Marshal(payload)
resp, _ := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;
URL url = new URL("https://api.hotstuff.trade/info");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"user_fees\",\"params\":{\"user\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"}}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = in.readLine();
System.out.println(response);
require 'net/http'
require 'json'
uri = URI('https://api.hotstuff.trade/info')
payload = {
method: "user_fees",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
request.body = payload.to_json
response = http.request(request)
puts JSON.parse(response.body)
{
"account": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"spot_volume_14d": "0",
"spot_volume_30d": "0",
"stable_spot_volume_14d": "0",
"stable_spot_volume_30d": "0",
"perp_volume_14d": "0",
"perp_volume_30d": "0",
"option_volume_14d": "0",
"option_volume_30d": "0",
"total_volume_threshold": 1000000,
"perp_maker_fee_rate": -0.00002,
"perp_taker_fee_rate": 0.00025,
"spot_maker_fee_rate": 0,
"spot_taker_fee_rate": 0.0003,
"stable_spot_maker_fee_rate": -0.0001,
"stable_spot_taker_fee_rate": 0.0001,
"option_maker_fee_rate": 0.0003,
"option_taker_fee_rate": 0.00035
}{
"error": "<error message>"
}Retrieve fee information for a user including trading volumes and fee rates for perpetuals, spot, and options trading.
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "user_fees",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "user_fees",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "user_fees",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
};
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
})
.then((response) => response.json())
.then((data) => console.log(data));
<?php
$url = "https://api.hotstuff.trade/info";
$payload = json_encode([
"method" => "user_fees",
"params" => [
"user" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
]
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.hotstuff.trade/info"
payload := map[string]interface{}{
"method": "user_fees",
"params": map[string]string{
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
}
jsonData, _ := json.Marshal(payload)
resp, _ := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;
URL url = new URL("https://api.hotstuff.trade/info");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"user_fees\",\"params\":{\"user\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"}}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = in.readLine();
System.out.println(response);
require 'net/http'
require 'json'
uri = URI('https://api.hotstuff.trade/info')
payload = {
method: "user_fees",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
request.body = payload.to_json
response = http.request(request)
puts JSON.parse(response.body)
Response
Successful response