Navigation

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

    history-api related issue

    Bugs
    2
    3
    22
    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.
    • S
      smit last edited by

      Inspite of giving exchange type as NSE i am getting data of instrument on CDS for example
      JSON.stringify({"exchange":"NSE","symboltoken":"4481",
      "interval":"ONE_DAY","fromdate": formatDate(date),
      "todate": formatDate(today)});

      on using symbol token 4481 for NSE i am getting data of EURINR21O1489PE instead of AARTIDRUGS. Please help me out if i am doing something wrong.

      S 1 Reply Last reply Reply Quote 0
      • S
        smit @smit last edited by

        @smit said in history-api related issue:

        Inspite of giving exchange type as NSE i am getting data of instrument on CDS for example
        JSON.stringify({"exchange":"NSE","symboltoken":"4481",
        "interval":"ONE_DAY","fromdate": formatDate(date),
        "todate": formatDate(today)});

        on using symbol token 4481 for NSE i am getting data of EURINR21O1489PE instead of AARTIDRUGS. Please help me out if i am doing something wrong.

        @admin

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

          HI @smit Kinldy find the req and res:
          historicParam={
          "exchange": "NSE",
          "symboltoken": "4481",
          "interval": "ONE_DAY",
          "fromdate": '2021-08-22 09:41',
          "todate": '2021-08-23 10:21'
          }
          df = obj.getCandleData(historicParam)
          print (df)

          {'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': [['2021-08-23T00:00:00+05:30', 607.0, 609.8, 580.0, 586.55, 250155]]}

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