private static void BuyLimitOrderExecuted(object sender, BitstampOrderEventArgs e) { var basePairCode = e.Order.PairCode.Substring(0, 3).ToUpper(); var counterPairCode = e.Order.PairCode.Substring(3, 3).ToUpper(); Log.Information("Buy order executed for {Amount}{BasePairCode} @{Price}{CounterPairCode}", e.Order.Amount, basePairCode, e.Order.Price, counterPairCode); }
private static void SellLimitOrderPlaced(object sender, BitstampOrderEventArgs e) { var basePairCode = e.Order.PairCode.Substring(0, 3).ToUpper(); var counterPairCode = e.Order.PairCode.Substring(3, 3).ToUpper(); Log.Information("Sell order placed for {Amount}{BasePairCode} @{Price}{CounterPairCode} ({Total:0.00}{CounterPairCode})", e.Order.Amount, basePairCode, e.Order.Price, counterPairCode, e.Order.Amount * e.Order.Price, counterPairCode); }