Future lot aize

samnpti
How to get future lotsize auto when buy order.
  • rakeshr
    You can fetch lot size detail from the complete instrument list.
  • tahseen

    import pandas as pd
    df = pd.read_csv( "allinstrument_list_file" )
    df = df[(df.instrument_type == 'FUT') & (df.segment == 'NFO-FUT')]
    lot_size_map = dict( zip( df.tradingsymbol, df.lot_size ) )

    lot_size_map[ "TRADINGSYMBOL"] # would return lot size

Sign In or Register to comment.