close_position
Close an open position for a cryptocurrency instrument by submitting a market order. Specify the instrument ID, margin mode, and position side to complete the closure.
Instructions
Close a position for an instrument via a market order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | Yes | Instrument ID, e.g. BTC-USDT | |
| marginMode | Yes | Margin mode: cross or isolated | |
| positionSide | Yes | Position side: net (One-way Mode), long or short (Hedge Mode) | |
| clientOrderId | No | Client-supplied order ID | |
| brokerId | No | Broker ID provided by BloFin |