PCM

by rand-tech
Verified

set-margin-mode

Configure margin mode (cross or isolated) for futures trading on exchanges like Binance or Bybit using API keys and symbol details.

Instructions

Set margin mode for futures trading

Input Schema

NameRequiredDescriptionDefault
apiKeyYesAPI key for authentication
exchangeYesExchange ID (e.g., binance, bybit)
marginModeYesMargin mode: cross or isolated
marketTypeNoMarket type (default: future)future
secretYesAPI secret for authentication
symbolYesTrading pair symbol (e.g., BTC/USDT)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "apiKey": { "description": "API key for authentication", "type": "string" }, "exchange": { "description": "Exchange ID (e.g., binance, bybit)", "type": "string" }, "marginMode": { "description": "Margin mode: cross or isolated", "enum": [ "cross", "isolated" ], "type": "string" }, "marketType": { "default": "future", "description": "Market type (default: future)", "enum": [ "future", "swap" ], "type": "string" }, "secret": { "description": "API secret for authentication", "type": "string" }, "symbol": { "description": "Trading pair symbol (e.g., BTC/USDT)", "type": "string" } }, "required": [ "exchange", "symbol", "marginMode", "apiKey", "secret" ], "type": "object" }
ID: ma2f8iji6w