place-market-order
Execute a market order on a cryptocurrency exchange by specifying the trading pair, order side, and amount. Authenticate with API keys and choose the market type (spot, future, swap, option, margin).
Instructions
Place a market order on an exchange
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount to buy/sell | |
apiKey | Yes | API key for authentication | |
exchange | Yes | Exchange ID (e.g., binance, coinbase) | |
marketType | No | Market type (default: spot) | |
passphrase | No | Passphrase for authentication (required for some exchanges like KuCoin) | |
secret | Yes | API secret for authentication | |
side | Yes | Order side: buy or sell | |
symbol | Yes | Trading pair symbol (e.g., BTC/USDT) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "Amount to buy/sell",
"exclusiveMinimum": 0,
"type": "number"
},
"apiKey": {
"description": "API key for authentication",
"type": "string"
},
"exchange": {
"description": "Exchange ID (e.g., binance, coinbase)",
"type": "string"
},
"marketType": {
"description": "Market type (default: spot)",
"enum": [
"spot",
"future",
"swap",
"option",
"margin"
],
"type": "string"
},
"passphrase": {
"description": "Passphrase for authentication (required for some exchanges like KuCoin)",
"type": "string"
},
"secret": {
"description": "API secret for authentication",
"type": "string"
},
"side": {
"description": "Order side: buy or sell",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"symbol": {
"description": "Trading pair symbol (e.g., BTC/USDT)",
"type": "string"
}
},
"required": [
"exchange",
"symbol",
"side",
"amount",
"apiKey",
"secret"
],
"type": "object"
}