Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. akshaynavale20
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    akshaynavale20

    @akshaynavale20

    0
    Reputation
    3
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    akshaynavale20 Follow

    Best posts made by akshaynavale20

    This user hasn't posted anything yet.

    Latest posts made by akshaynavale20

    • 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 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"
      }

      posted in Go SDK
      A
      akshaynavale20
    • RE: Unable to place orders

      @admin
      Hi, one of your API for getting LTP data has ltp type of string in struct however API returning it with float64 so the struct facing an issue for binding different data types

      Currently market.go has LTPResponse Data structure like this:

      type LTPResponse struct {
      Exchange string json:"exchange"
      TradingSymbol string json:"tradingsymbol"
      SymbolToken string json:"symboltoken"
      Open string json:"open"
      High string json:"high"
      Low string json:"low"
      Close string json:"close"
      Ltp string json:"ltp"
      }

      Expected struct :

      type LTPResponse struct {
      Exchange string json:"exchange"
      TradingSymbol string json:"tradingsymbol"
      SymbolToken string json:"symboltoken"
      Open float64 json:"open"
      High float64 json:"high"
      Low float64 json:"low"
      Close float64 json:"close"
      Ltp float64 json:"ltp"
      }

      posted in Go SDK
      A
      akshaynavale20