getTradeDirection function

Get trade direction