# delegatorHistory

## POST /info

> Request user staking history.

```json
{"openapi":"3.1.1","info":{"title":"Hyperliquid API - info/delegatorHistory","version":"1.0.0"},"tags":[{"name":"delegatorHistory"}],"servers":[{"url":"https://api.hyperliquid.xyz","description":"Mainnet"},{"url":"https://api.hyperliquid-testnet.xyz","description":"Testnet"}],"paths":{"/info":{"post":{"tags":["delegatorHistory"],"description":"Request user staking history.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"description":"Type of request.","enum":["delegatorHistory"]},"user":{"type":"string","pattern":"^0[xX][0-9a-fA-F]+$","minLength":42,"maxLength":42,"description":"User address."}},"required":["type","user"],"description":"Request user staking history."}}},"required":true},"responses":{"200":{"description":"Array of records of staking events by a delegator.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"time":{"type":"integer","minimum":0,"description":"Timestamp of the delegation event (in ms since epoch)."},"hash":{"type":"string","pattern":"^0[xX][0-9a-fA-F]+$","minLength":66,"maxLength":66,"description":"Transaction hash of the delegation event."},"delta":{"anyOf":[{"type":"object","properties":{"delegate":{"type":"object","properties":{"validator":{"type":"string","pattern":"^0[xX][0-9a-fA-F]+$","minLength":42,"maxLength":42,"description":"Address of the validator receiving or losing delegation."},"amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Amount of tokens being delegated or undelegated."},"isUndelegate":{"type":"boolean","description":"Whether this is an undelegation operation."}},"required":["validator","amount","isUndelegate"],"description":"Delegation operation details."}},"required":["delegate"]},{"type":"object","properties":{"cDeposit":{"type":"object","properties":{"amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Amount of tokens being deposited."}},"required":["amount"],"description":"Deposit details."}},"required":["cDeposit"]},{"type":"object","properties":{"withdrawal":{"type":"object","properties":{"amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Amount of tokens being withdrawn."},"phase":{"enum":["initiated","finalized"],"description":"Phase of the withdrawal process."}},"required":["amount","phase"],"description":"Withdrawal details."}},"required":["withdrawal"]}],"description":"Details of the update."}},"required":["time","hash","delta"],"description":"Record of a staking event by a delegator."},"description":"Array of records of staking events by a delegator."}}}},"422":{"description":"Failed to deserialize the JSON body into the target type","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"null"}}}}}}}}}
```
