collect_funding_fee
Collect accumulated funding fees for your open perpetual position. Provide the position ID and market index to claim earnings from the Typus Perp DEX.
Instructions
Collect accumulated funding fees for a position. Requires PRIVATE_KEY in .env.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positionId | Yes | The position ID to collect funding fees from | |
| marketIndex | Yes | The market index the position belongs to. Use get_positions to find the marketIndex for each position. |