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.


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


  • @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