placeOrder method
- String params
override
Places a new order.
params JSON shape:
{
"symID": "NIFTY",
"price": 23000.0,
"orderType": "limit",
"orderAction": "buy",
"qty": 50,
"productType": "normal",
"triggerPrice": 22950.0
}
productType is required — a symbol can have simultaneous positions
under different product types, and this field disambiguates which one
the order is meant to protect.
triggerPrice is optional — omit for market/limit orders.
Implementation
@override
void placeOrder(String params) {
unawaited(_data.invokeMethod<void>('placeOrder', params));
}