userFills
Get the 2000 latest fills of a certain user. Includes twap fills.
POST Request
type
string
Must be "userFills"
user
string
Ethereum address (0x-prefixed, 42 characters)
builder
string
Filter to fills routed through this builder address (0x-prefixed, 42 characters). Omit (or send null) for no filtering. A malformed, empty or non-string value is a 400 rather than a silently unfiltered result (optional)
aggregateByTime
boolean
true or false false by default (optional)
dex
string
i.e. "xyz" or "main_dex" or dont pass for no filtering (optional)
venue
string
Only fills on outcome markets deployed by this permissionless venue, e.g. "skew". 2–4 ASCII letters, case-insensitive; an unknown venue returns an empty list (optional)
limit
integer
Max results to return, default 2000 (optional)
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "userFills",
"user": "0x0000000000000000000000000000000000000000"
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'userFills',
'user': '0x0000000000000000000000000000000000000000'
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Response Fields
coin
string
Asset symbol
px
string
Fill price
sz
string
Fill size
side
string
"A" (sell) or "B" (buy)
time
int
Fill timestamp (ms)
startPosition
string
Position size before the fill
dir
string
Direction (e.g. "Open Long", "Close Short")
closedPnl
string
Closed PnL from this fill
hash
string
Transaction hash
oid
int
Order ID
crossed
boolean
Whether the order crossed the spread
fee
string
Fee amount
tid
int
Trade ID
cloid
string?
Client order ID (optional)
builderFee
string?
Builder fee (optional)
deployerFee
string?
Deployer fee (optional, HIP-3 fills only)
priorityGas
string?
Priority gas fee in HYPE (optional)
feeToken
string
Fee token (e.g. "USDC")
builder
string?
Builder address (optional)
twapId
int?
TWAP order ID (null if not a TWAP fill)
txIndex
int
Transaction index
Last updated