void OnChildOrderTransactionChanged(object sender, BfxChildOrderTransactionEventArgs args) { Console.WriteLine($"Requested time :{args.State.RequestedTime}"); Console.WriteLine($"Accepted time :{args.State.AcceptedTime}"); Console.WriteLine($"Confirmed time :{args.State.OrderDate}"); Console.WriteLine($"Ordering status :{args.State.OrderingStatus}"); Console.WriteLine($"Canceling status :{args.State.CancelingStatus}"); }
static void OnChildOrderTransactionStateChanged(object sender, BfxChildOrderTransactionEventArgs args) { Console.WriteLine($"{args.Time.ToString("yyyy-MM-dd HH:mm:ss.fff")} Child order state changed to {args.Kind}"); if (args.Kind == BfxOrderTransactionEventKind.OrderFailed) { Console.WriteLine(args.State.OrderFailedException.Message); } }