userNonFundingLedgerUpdates
Get a users' non funding ledger updates
POST Request
type
string
Must be "userNonFundingLedgerUpdates"
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": "userNonFundingLedgerUpdates",
"user": "0x0000000000000000000000000000000000000000",
"startTime": 0
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'userNonFundingLedgerUpdates',
'user': '0x0000000000000000000000000000000000000000'
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Response Fields
time
int
Timestamp (ms)
hash
string
Transaction hash
delta
object
Ledger update details (fields vary by delta.type, see delta types below)
delta.type
string
Type of ledger update (e.g. "send", "deposit", "withdraw", "liquidation", etc.)
delta.amount
string
Transfer amount (present on most delta types)
delta.token
string
Token symbol
delta.usdc
string
USDC amount (used by some delta types instead of amount)
delta.usdcValue
string
USD value of the transfer
delta.user
string
Sender/source user address
delta.destination
string
Destination address
delta.destinationDex
string
Destination DEX (e.g. "spot")
delta.sourceDex
string
Source DEX (e.g. "spot")
delta.fee
string
Fee amount
delta.feeToken
string
Fee token symbol
delta.nativeTokenFee
string
Native token fee amount
delta.nonce
int
Transaction nonce (null if not applicable)
Last updated