Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    TriggerPrice field not present in OrderParams struct

    Go SDK
    0
    1
    17
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      akshaynavale20 last edited by akshaynavale20

      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 string json:"variety"
      TradingSymbol string json:"tradingsymbol"
      SymbolToken string json:"symboltoken"
      TransactionType string json:"transactiontype"
      Exchange string json:"exchange"
      OrderType string json:"ordertype"
      ProductType string json:"producttype"
      Duration string json:"duration"
      Price string json:"price"
      SquareOff string json:"squareoff"
      StopLoss string json:"stoploss"
      Quantity string json:"quantity"
      TriggerPrice string json:"triggerprice"
      }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post