-
- self.orders.append(Order(self.order_action(inverted), delta, rate, currency, self.market))
+ # FOO
+ delta = delta_in_base
+ # sell:
+ # I have 10 BTC worth of FOO, and I want to sell 9 BTC worth of it
+ # At rate 1 Foo = 0.1 BTC
+ # Action: "buy" "9 BTC" at rate "1/0.1" "FOO" on market
+ # buy:
+ # I want to buy 9 / 0.1 FOO
+ # Action: "sell" "9 BTC" at rate "1/0.1" "FOO" on "market"
+
+ self.orders.append(Order(self.order_action(inverted), delta, rate, currency, self.trade_type, self.market))