# userFundings

## Subscribe to userFundings

> Subscription to user funding events for a specific user.

```json
{"openapi":"3.1.1","info":{"title":"Hyperliquid Subscription - userFundings","version":"1.0.0"},"tags":[{"name":"userFundings"}],"servers":[{"url":"wss://api.hyperliquid.xyz/ws","description":"Mainnet WebSocket"},{"url":"wss://api.hyperliquid-testnet.xyz/ws","description":"Testnet WebSocket"}],"paths":{"/":{"post":{"tags":["userFundings"],"summary":"Subscribe to userFundings","description":"Subscription to user funding events for a specific user.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"description":"Type of subscription.","enum":["userFundings"]},"user":{"type":"string","pattern":"^0[xX][0-9a-fA-F]+$","minLength":42,"maxLength":42,"description":"User address."}},"required":["type","user"],"description":"Subscription to user funding events for a specific user."}}},"required":true},"responses":{"200":{"description":"Event of user fundings.","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"string","pattern":"^0[xX][0-9a-fA-F]+$","minLength":42,"maxLength":42,"description":"User address."},"fundings":{"type":"array","items":{"type":"object","properties":{"time":{"type":"integer","minimum":0,"description":"Timestamp of the update (in ms since epoch)."},"coin":{"type":"string","description":"Asset symbol."},"usdc":{"type":"string","pattern":"^-?[0-9]+(\\.[0-9]+)?$","description":"Amount transferred in USDC."},"szi":{"type":"string","pattern":"^-?[0-9]+(\\.[0-9]+)?$","description":"Signed position size."},"fundingRate":{"type":"string","pattern":"^-?[0-9]+(\\.[0-9]+)?$","description":"Applied funding rate."},"nSamples":{"anyOf":[{"type":"integer","minimum":0,"nullable":true}],"description":"Number of samples."}},"required":["time","coin","usdc","szi","fundingRate","nSamples"]},"description":"Array of user funding ledger updates."},"isSnapshot":{"description":"Whether this is an initial snapshot.","enum":[true]}},"required":["user","fundings"],"description":"Event of user fundings."}}}}}}}}}
```
