Get margin task status
perps_get_margin_task_statusRead-only. Poll the status of an add/remove-margin task. Margin add/remove returns a task_id; call this with that task_id to see whether it is pending, processing, completed, or failed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractId": "<contractId>",
"taskId": "<taskId>"
},
"name": "perps_get_margin_task_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | task_id returned by a margin add/remove execution. | |
| contractId | Yes | Numeric contract id from perps_list_contracts whose margin task to check. 0 is a real contract id, not a placeholder for "unset". |