Error while placing cover order

arjunender
Hi,

Receiving Invalid `api_key` or `access_token if placing order with variety : CO or BO

Dictionary response = kite.PlaceOrder(
Exchange: "NSE",
TradingSymbol: "ACC",
TransactionType: "BUY",
Quantity: 1,
Price: 1520.0m,
Product: "MIS",
OrderType: "LIMIT",
TriggerPrice: 1580.5m,
Variety: "CO"
);

If i remove variety then order is placed successfully.

Thanks
This discussion has been closed.