smartAPI.optionGreek not able to fetch data


  • Hello Team,

    I am trying to fetch the option greek data

    orderparams = {
    "name": "TCS",
    "expiry": "30MAY2024"
    }

    I am getting a response
    response {'message': 'Invalid expiry date', 'errorcode': 'AB9022', 'status': False, 'data': None}

    I am running this on sunday. Is it the reason I am not getting any data...?


  • @abhijitpa1992 If you run it on Sunday, you'll still get the data if data available because we passed May 30th in the request, so you will receive the data for May 30th if avail else no data avail you can receive on response.

    Regards,
    SmartAPI Team


  • I am also facing same issue optionGreek always gives wrong invalid date error

    optionGreek({"name":TCS","expirydate":"29AUG2024"})

    Request: {'name': '{name}', 'expirydate': '{expiry}'}, Response: {'message': 'Invalid expiry date', 'errorcode': 'AB9022', 'status': False, 'data': None}