Skip to main content
POST
https://api.hotstuff.trade
/
info
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
    }
]
Retrieve current positions for the authenticated user account.
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
    }
]

Request Body

method
string
default:"positions"
required
Must be “positions” for this endpoint
params
object
required