Navigation

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

    Unable to place orders

    Go SDK
    2
    4
    41
    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

      This post is deleted!
      A 1 Reply Last reply Reply Quote 0
      • A
        admin @akshaynavale20 last edited by

        HI @akshaynavale20 Post your request and response here.

        A 1 Reply Last reply Reply Quote 0
        • A
          akshaynavale20 @admin last edited by

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

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @akshaynavale20 last edited by

            Hi @akshaynavale20 We will test it and update you.

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