Skip to content

Commit

Permalink
#981 Added first working version of the happy acker
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjstevo committed Nov 23, 2023
1 parent 1e82fb5 commit 3c20fa6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class BasketTradingConstituentProvider(val table: DataTable, val omsApi: OmsApi)

omsApi.addListener(new OmsListener {
override def onAck(ack: Ack): Unit = {
table.processUpdate(ack.clientOrderId, RowWithData(ack.clientOrderId, Map[String, Any](BTC.OrderStatus -> OrderStates.ACKED)),clock.now())
table.processUpdate(ack.clientOrderId, RowWithData(ack.clientOrderId, Map[String, Any](BTC.InstanceIdRic -> ack.clientOrderId,
BTC.OrderStatus -> OrderStates.ACKED)),clock.now())
}
override def onCancelAck(ack: CancelAck): Unit = ???
override def onReplaceAck(ack: ReplaceAck): Unit = ???
Expand Down

0 comments on commit 3c20fa6

Please sign in to comment.