place_oco_order
Place a combined take-profit and stop-loss order as a single OCO. When one side fills, the other is automatically cancelled, preventing order conflicts.
Instructions
Spot OCO emri: kâr hedefi (LIMIT) + stop (STOP_LOSS_LIMIT) TEK emir listesinde. Biri dolunca diğeri borsada otomatik iptal olur (true OCO). Aynı pozisyon için ayrı ayrı SL+TP emri bakiyeyi birbirinden çaldığı için imkânsızdır; bu tool ikisini tek orderList/oco çağrısında taşır. price=TP, stop_price=stop tetikleme, stop_limit_price=stop tetiklenince satılacak limit (stop_price'dan düşük olmalı).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"symbol": "<symbol>",
"side": "<side>",
"quantity": "<quantity>",
"price": "<price>",
"stop_price": "<stop_price>",
"stop_limit_price": "<stop_limit_price>",
"idempotency_key": "<idempotency_key>"
},
"name": "place_oco_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| price | Yes | Kâr hedefi (limit) fiyatı | |
| symbol | Yes | Spot USDT çifti, örn. ALICEUSDT | |
| quantity | Yes | Base asset miktarı | |
| account_id | Yes | ||
| request_id | No | ||
| stop_price | Yes | Stop tetikleme seviyesi | |
| idempotency_key | Yes | ||
| stop_limit_price | Yes | Stop tetiklenince satılacak limit fiyatı (< stop_price) |