getPositionMarginHistory
Retrieve historical margin adjustments for cryptocurrency futures positions on Aster Finance, tracking changes over specified time periods to monitor position management activity.
Instructions
Get position margin change history.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | ||
| limit | No | ||
| startTime | No | ||
| symbol | Yes | ||
| type | No |
Implementation Reference
- src/index.ts:671-672 (handler)Handler for getPositionMarginHistory tool: makes a signed GET request to the Aster API endpoint '/fapi/v1/positionMargin/history'.case 'getPositionMarginHistory': return makeRequest('GET', '/fapi/v1/positionMargin/history', args, true);
- src/index.ts:436-450 (registration)Registration of the getPositionMarginHistory tool in the listTools response, including description and input schema.{ name: 'getPositionMarginHistory', description: 'Get position margin change history.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, type: { type: 'number', enum: [1, 2] }, startTime: { type: 'number' }, endTime: { type: 'number' }, limit: { type: 'number' }, }, required: ['symbol'], }, },