curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "fills",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "fills",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "fills",
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" => "fills",
"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": "fills",
"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\":\"fills\",\"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: "fills",
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)
{
"data": [
{
"instrument_id": 1,
"instrument": "BTC-PERP",
"account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"order_id": 153907712,
"cloid": "c5aaf950-5fa5-4c02-86e6-93138eb6bc2b",
"trade_id": 4992149484947072000,
"side": "b",
"position_side": "BOTH",
"direction": "openLong",
"price": "76731",
"size": "0.00141",
"closed_pnl": "0.002163",
"start_size": "0.00141",
"start_price": "76750",
"fee": "-0.002163",
"broker_fee": "0",
"fee_token_id": 1,
"crossed": false,
"tx_hash": "0x5063c6a58dd16a292307c5ea82d2ee1763b4118cb15ad569d967942074129b27",
"fill_type": 2,
"notional_value": "108.19071",
"block_timestamp": "2026-02-03T17:14:20.046Z"
}
],
"page": 1,
"limit": 100,
"total_count": 284,
"total_pages": 3,
"has_next": true,
"has_prev": false
}{
"error": "<error message>"
}Accounts
fills
Send POST request to /info with method: “fills”
POST
/
info
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "fills",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "fills",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "fills",
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" => "fills",
"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": "fills",
"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\":\"fills\",\"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: "fills",
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)
{
"data": [
{
"instrument_id": 1,
"instrument": "BTC-PERP",
"account": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"order_id": 153907712,
"cloid": "c5aaf950-5fa5-4c02-86e6-93138eb6bc2b",
"trade_id": 4992149484947072000,
"side": "b",
"position_side": "BOTH",
"direction": "openLong",
"price": "76731",
"size": "0.00141",
"closed_pnl": "0.002163",
"start_size": "0.00141",
"start_price": "76750",
"fee": "-0.002163",
"broker_fee": "0",
"fee_token_id": 1,
"crossed": false,
"tx_hash": "0x5063c6a58dd16a292307c5ea82d2ee1763b4118cb15ad569d967942074129b27",
"fill_type": 2,
"notional_value": "108.19071",
"block_timestamp": "2026-02-03T17:14:20.046Z"
}
],
"page": 1,
"limit": 100,
"total_count": 284,
"total_pages": 3,
"has_next": true,
"has_prev": false
}{
"error": "<error message>"
}Retrieve trade fills and execution history for the authenticated user account.
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "fills",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "fills",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "fills",
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" => "fills",
"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": "fills",
"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\":\"fills\",\"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: "fills",
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)