placeOrder abstract method

void placeOrder(
  1. String params
)

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

void placeOrder(String params);