Sell at Market

Does anyone know what parameters are used to create the logic below in Python?