createOrder
Submit buy or sell orders on cryptocurrency exchanges by specifying account, symbol, type (market/limit), side (buy/sell), and amount. Supports additional exchange-specific parameters.
Instructions
Create a new order using a configured account
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accountName | Yes | Account name defined in the configuration file (e.g., 'bybit_main') | |
amount | Yes | Amount of base currency to trade | |
params | No | Additional exchange-specific parameters | |
price | No | Price per unit (required for limit orders) | |
side | Yes | Order side: 'buy' or 'sell' | |
symbol | Yes | Trading symbol (e.g., 'BTC/USDT') | |
type | Yes | Order type: 'market' or 'limit' |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accountName": {
"description": "Account name defined in the configuration file (e.g., 'bybit_main')",
"type": "string"
},
"amount": {
"description": "Amount of base currency to trade",
"type": "number"
},
"params": {
"additionalProperties": {},
"description": "Additional exchange-specific parameters",
"type": "object"
},
"price": {
"description": "Price per unit (required for limit orders)",
"type": "number"
},
"side": {
"description": "Order side: 'buy' or 'sell'",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"symbol": {
"description": "Trading symbol (e.g., 'BTC/USDT')",
"type": "string"
},
"type": {
"description": "Order type: 'market' or 'limit'",
"enum": [
"market",
"limit"
],
"type": "string"
}
},
"required": [
"accountName",
"symbol",
"type",
"side",
"amount"
],
"type": "object"
}