Ibridgepy

dear sir

 

how i will get pandas dataframe in variable explorer, the command only prints the values

def handle_data(context, data):

    # Method 1: IBridgePy function request_historical_data(str_security, barSize, goBack)

    # Users have more controls on this function.

    # http://www.ibridgepy.com/ibridgepy-documentation/#request_historical_data

    print ('Historical Data of %s' % (str(context.security, ),))

    hist = request_historical_data(context.security, '5 mins', '5 D')

    #hist.set_index("date",inplace=True)

    print(hist)

    print(hist.iloc[-1]['close'])

Hello Pramod,



If you're using spyder the newly created dataframe will appear in the variable explorer. If you're using Jupyter then you'll have to manually print it. You can, however, install plugins to show the variable explorer.