userFunding
Get a users' funding payment history
Get a users' funding payment history.
POST Request
Field
Type
Description
type
string
Must be "userFunding"
user
string
Ethereum address (0x-prefixed, 42 characters)
startTime
int
Start time in ms (inclusive)
endTime
int
End time in ms (optional)
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "userFunding",
"user": "0x0000000000000000000000000000000000000000",
"startTime": 0
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'userFunding',
'user': '0x0000000000000000000000000000000000000000',
'startTime': 0
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Response Fields
Field
Type
Description
time
int
Timestamp (ms)
hash
string
Transaction hash
delta
object
Funding payment details
delta.type
string
Always "funding"
delta.coin
string
Asset symbol
delta.usdc
string
USDC amount of funding payment
delta.szi
string
Position size at time of funding
delta.fundingRate
string
Funding rate applied
delta.nSamples
int
Number of samples (null if not applicable)
Last updated