Check canPlaceOrder
check_can_place_orderVerify order eligibility by checking if a wallet has sufficient margin for the additional initial margin (IM) before placing an order.
Instructions
PortfolioMarginEngine.canPlaceOrder(wallet, additionalIM) — the pre-trade gate. additionalIM is integer token units (USDC 6 decimals).
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": {
"wallet": "<wallet>",
"additionalIm": "<additionalIm>"
},
"name": "check_can_place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| additionalIm | Yes | Additional IM in token native units, integer string |