Join & EARN

FOREX ALGOS { }

TradeType

An enum specifying the direction of a trade: Buy or Sell. All trade methods require a TradeType argument. The documentation defines it as: “TradeType – The direction of a trade order. Indicates whether it is a Buy or a Sell trade”. For example, TradeType.Buy opens a long position, and TradeType.Sell a short.