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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| additionalIm | Yes | Additional IM in token native units, integer string |