Inconsistent data in instrument dump


  • @admin,

    I have two issues here regarding the instrument list:

    1. Instrument list is having invalid values for instrument token filed. Given a example below. Notice the "Space" between numbers for the token key. Could you fix this ?
    {"token":"45041 42620","symbol":"BANKNIFTY20FEB20MARFUT","name":"BANKNIFTY","expiry":"27FEB2020","strike":"-1.000000","lotsize":"20","instrumenttype":"FUTIDX","exch_seg":"NFO","tick_size":"5.000000"},
    

    Further more, the same token is repeated for more than one instrument. May be the implementation is for the continues future chain, but the same appears for completely un-related token. Check for the token:56060 in the below set.

    {"token":"56060 44713","symbol":"SHREECEM19AUG19SEPFUT","name":"SHREECEM","expiry":"29AUG2019","strike":"-1.000000","lotsize":"50","instrumenttype":"FUTSTK","exch_seg":"NFO","tick_size":"5.000000"}
    {"token":"46936 56060","symbol":"SHREECEM19JUL19AUGFUT","name":"SHREECEM","expiry":"25JUL2019","strike":"-1.000000","lotsize":"50","instrumenttype":"FUTSTK","exch_seg":"NFO","tick_size":"5.000000"}
    {"token":"42626 56060","symbol":"NIFTYIT20MAR20APRFUT","name":"NIFTYIT","expiry":"26MAR2020","strike":"-1.000000","lotsize":"50","instrumenttype":"FUTIDX","exch_seg":"NFO","tick_size":"100.000000"}
    {"token":"56060 95735","symbol":"NIFTYIT20APR20JUNFUT","name":"NIFTYIT","expiry":"30APR2020","strike":"-1.000000","lotsize":"50","instrumenttype":"FUTIDX","exch_seg":"NFO","tick_size":"100.000000"}
    {"token":"45043 56060","symbol":"NIFTYIT20FEB20APRFUT","name":"NIFTYIT","expiry":"27FEB2020","strike":"-1.000000","lotsize":"50","instrumenttype":"FUTIDX","exch_seg":"NFO","tick_size":"100.000000"}
    {"token":"56060 52463","symbol":"NIFTYIT20APR20MAYFUT","name":"NIFTYIT","expiry":"30APR2020","strike":"-1.000000","lotsize":"50","instrumenttype":"FUTIDX","exch_seg":"NFO","tick_size":"100.000000"}
    
    1. Instrument list API certificate have certificate error when used from command line tools. Though not a showstopper, should be fixed. I have workaround for now
    vagrant@ubuntulab:/opt/kite$ wget https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
    --2020-12-17 00:09:53--  https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
    Resolving margincalculator.angelbroking.com (margincalculator.angelbroking.com)... 3.7.249.209
    Connecting to margincalculator.angelbroking.com (margincalculator.angelbroking.com)|3.7.249.209|:443... connected.
    ERROR: cannot verify margincalculator.angelbroking.com's certificate, issued by ‘CN=GeoTrust RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US’:
      Unable to locally verify the issuer's authority.
    

  • @dheepi said in Inconsistent data in instrument dump:

    Instrument list API certificate have certificate error when used from command line tools. Though not a showstopper, should be fixed. I have workaround for now

    vagrant@ubuntulab:/opt/kite$ wget https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
    --2020-12-17 00:09:53-- https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
    Resolving margincalculator.angelbroking.com (margincalculator.angelbroking.com)... 3.7.249.209
    Connecting to margincalculator.angelbroking.com (margincalculator.angelbroking.com)|3.7.249.209|:443... connected.
    ERROR: cannot verify margincalculator.angelbroking.com's certificate, issued by ‘CN=GeoTrust RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US’:
    Unable to locally verify the issuer's authority.

    @dheepi Please try wget with --no-check-certificate --quiet option as below :

    wget --no-check-certificate --quiet
    --method GET
    --timeout=0
    --header ''
    'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json'


  • @dheepi said in Inconsistent data in instrument dump:

    Instrument list is having invalid values for instrument token filed. Given a example below. Notice the "Space" between numbers for the token key. Could you fix this ?

    Hi @dheepi , Thank you for bringing this to our notice. These are spread contracts which are currently not tradable through SmartAPIs. We will remove them from our list.