Claim Interest
info
- Need authentication. Up to 5 requests per second per UID. Requires Earn permission on the API key.
- Claims all available yield for the specified product. Pass
productId=-1to claim yield across all your liquidity mining positions at once. - Yield is credited to your default account. Account type cannot be specified.
HTTP Request
POST/v5/earn/liquidity-mining/claim-interestRequest Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| productId | true | string | Product ID. Pass -1 to claim interest from all positions at once |
Response Parameters
None
Request Example
POST /v5/earn/liquidity-mining/claim-interest HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1741651200000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"productId": "-1"
}
Response Example
{
"retCode": 0,
"retMsg": "",
"result": {},
"retExtInfo": {},
"time": 1741651200000
}