retesere20

sample nt8 On-Order-Position-update

Oct 27th, 2019
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. protected override void OnPositionUpdate(Cbi.Position position, double averagePrice, int quantity, Cbi.MarketPosition marketPosition)
  3. {
  4. base.OnPositionUpdate(position, averagePrice, quantity, marketPosition);
  5. p("POS_upd:" + bInfo() + " __"+ position.ToString());
  6. }
  7. protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string comment)
  8. {
  9. base.OnOrderUpdate(order, limitPrice, stopPrice, quantity, filled, averageFillPrice, orderState, time, error, comment);
  10. p("ORD_upd:" + bInfo() + " __" + order.ToString());
  11. }
RAW Paste Data