You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ProbitSocket.js
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -127,9 +127,10 @@ class ProbitSocket extends EventEmitter {
127
127
128
128
case"open_order": {
129
129
message.data.forEach((order)=>{
130
-
this.emit('order',{
130
+
this.emit('openorder',{
131
131
id : Number(order.id),
132
132
userId : order.user_id,
133
+
marketId : order.market_id,
133
134
type : order.type,
134
135
side : order.side,
135
136
quantity : Number(order.quantity),
@@ -149,11 +150,13 @@ class ProbitSocket extends EventEmitter {
149
150
150
151
case"order_history": {
151
152
message.data.forEach((order)=>{
152
-
this.emit('order',{
153
+
this.emit('orderhistory',{
153
154
//clickity clickity clack, my mouse goes up the back. the clock strikes one, my shirt cones undone. and all the boys give me pretty horse gifts wait what.
155
+
//the sea of time floats by while I am blind the whole time.
154
156
id : Number(order.id),
155
157
userId : order.user_id,
156
-
type : order.type,
158
+
marketId : order.market_id,
159
+
type : order.type,
157
160
side : order.side,
158
161
quantity : Number(order.quantity),
159
162
price : Number(order.limit_price),
@@ -175,15 +178,15 @@ class ProbitSocket extends EventEmitter {
0 commit comments