not able to get the INSTRUMENT LIST

jitendra
When I am trying to retrieve the Instrument list for Exchange NFO, we are getting some irrelevant data like this.....

Exchange: NFO Array ( [0] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [1] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [2] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [3] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [4] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [5] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [6] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [7] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [8] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [9] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [10] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [11] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [12] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [13] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [14] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [15] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [16] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [17] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [18] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [19] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [20] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [21] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [22] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [23] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [24] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [25] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [26] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [27] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [28] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [29] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [30] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [31] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [32] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [33] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [34] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [35] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [36] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [37] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [38] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [39] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [40] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [41] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [42] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [43] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [44] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [45] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [46] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [47] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [48] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [49] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [50] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] => 0 [lot_size] => 0 ) [51] => Array ( [scalar] => [last_price] => 0 [strike] => 0 [tick_size] =
  • rakeshr
    I just checked $kite->getInstruments("NFO") and it's rendering fine including both exchange-wise and all. Make sure, you are using the latest PHP kiteconnect version.
    [9766] => stdClass Object
    (
    [instrument_token] => 17167874
    [exchange_token] => 67062
    [tradingsymbol] => BHARTIARTL23JUL940PE
    [name] => BHARTIARTL
    [last_price] => 0
    [expiry] => DateTime Object
    (
    [date] => 2023-07-27 00:00:00.000000
    [timezone_type] => 3
    [timezone] => Asia/Kolkata
    )

    [strike] => 940
    [tick_size] => 0.05
    [lot_size] => 950
    [instrument_type] => PE
    [segment] => NFO-OPT
    [exchange] => NFO
    )
Sign In or Register to comment.