getLeverageBrackets
Retrieve notional and leverage brackets for cryptocurrency trading positions to manage risk and margin requirements on the Aster exchange.
Instructions
Get notional and leverage brackets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getLeverageBrackets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No |
Implementation Reference
- src/index.ts:679-680 (handler)The handler logic for the 'getLeverageBrackets' tool. It invokes a signed GET request to the Binance Futures API endpoint '/fapi/v1/leverageBracket' using the generic makeRequest function.
case 'getLeverageBrackets': return makeRequest('GET', '/fapi/v1/leverageBracket', args, true); - src/index.ts:493-498 (schema)Input schema for the 'getLeverageBrackets' tool, defining 'symbol' as a required string property.
inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, }, }, - src/index.ts:490-499 (registration)Registration of the 'getLeverageBrackets' tool in the tools list provided to the MCP server.setTools method.
{ name: 'getLeverageBrackets', description: 'Get notional and leverage brackets.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, }, }, },