userTwapSummaries
Get aggregated TWAP order summaries for a user.
Returns one summary per TWAP order for a user, aggregating all slice fills that share the same twapId. Includes the volume-weighted average price, total size, total fees, total closed PnL, number of slices, and the time range of execution.
POST Request
Field
Type
Description
type
string
Must be "userTwapSummaries"
user
string
Ethereum address (0x-prefixed, 42 characters)
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "userTwapSummaries",
"user": "0x0000000000000000000000000000000000000000"
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'userTwapSummaries',
'user': '0x0000000000000000000000000000000000000000'
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Last updated