TriggerPrice field not present in OrderParams struct
-
TriggerPrice is mandtory field while placing stoploss order but incase of Go SDK. Its not present in
OrderParams
struct causing failure to set stoploss order. Requesting you to please add field in struct asap.Updated JSON would look like this :
type OrderParams struct {
Variety stringjson:"variety"
TradingSymbol stringjson:"tradingsymbol"
SymbolToken stringjson:"symboltoken"
TransactionType stringjson:"transactiontype"
Exchange stringjson:"exchange"
OrderType stringjson:"ordertype"
ProductType stringjson:"producttype"
Duration stringjson:"duration"
Price stringjson:"price"
SquareOff stringjson:"squareoff"
StopLoss stringjson:"stoploss"
Quantity stringjson:"quantity"
TriggerPrice stringjson:"triggerprice"
}