Questions? Join our Discord.
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "positions",
"params": {
"user": "0xxxx"
}
}'
[
{
"user": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"instrument_id": 1,
"instrument": "BTC-PERP",
"position_side": "BOTH",
"size": "-0.00128",
"entry_price": "76856",
"position_value": "98.37568",
"margin_mode": "isolated",
"leverage": "50",
"updated_at": 1770139417
}
]
Send POST request to /info with method: “positions”
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "positions",
"params": {
"user": "0xxxx"
}
}'
[
{
"user": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"instrument_id": 1,
"instrument": "BTC-PERP",
"position_side": "BOTH",
"size": "-0.00128",
"entry_price": "76856",
"position_value": "98.37568",
"margin_mode": "isolated",
"leverage": "50",
"updated_at": 1770139417
}
]
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "positions",
"params": {
"user": "0xxxx"
}
}'
[
{
"user": "0x42C183edba036906447372a7c81Eb89D0B9f2175",
"instrument_id": 1,
"instrument": "BTC-PERP",
"position_side": "BOTH",
"size": "-0.00128",
"entry_price": "76856",
"position_value": "98.37568",
"margin_mode": "isolated",
"leverage": "50",
"updated_at": 1770139417
}
]