def get_strikes(df, strike, dte):
    """Get strike closest to underlying price"""
    # Sort df by DTE
    df = df[(df['daysToExpiration'] <= dte)]
    #Sort df by strike
    df =df.iloc[(df['strikePrice'] - strike).abs().argsort()[:1]]
    df.reset_index(drop=True, inplace=True)
    strike_price = df['strikePrice'][0]
    #print("Strike:", strike_price)
    return strike_price