Does anyone know how to use getTradesByStatusType on BLOXY js?

Does anyone know how to use getTradesByStatusType on BLOXY js?

Im trying to make a trades checker that tells you when you have a trade that is good but I don’t know how to get the top trade does anyone know how to do this?