|
@@ -231,12 +231,12 @@ class CmBroker |
|
@@ -231,12 +231,12 @@ class CmBroker |
|
231
|
$wsDataPos = WsDataPos::TransferBybitPos($value, $this->symbolInfos, function ($symbol) {
|
231
|
$wsDataPos = WsDataPos::TransferBybitPos($value, $this->symbolInfos, function ($symbol) {
|
|
232
|
return $this->getSymbolSt($symbol);
|
232
|
return $this->getSymbolSt($symbol);
|
|
233
|
});
|
233
|
});
|
|
234
|
- }
|
|
|
|
235
|
- if ($wsDataPos != null) {
|
|
|
|
236
|
- $pos = Pos::transferWsDataPos($wsDataPos);
|
|
|
|
237
|
- $this->positions[$wsDataPos->symbol . "_" . $wsDataPos->posSide] = $pos;
|
|
|
|
238
|
- $wsData = new WsData($this->plat, 'pos', $trade = null, $pos = $wsDataPos);
|
|
|
|
239
|
- $onData($wsData);
|
234
|
+ if ($wsDataPos != null) {
|
|
|
|
235
|
+ $pos = Pos::transferWsDataPos($wsDataPos);
|
|
|
|
236
|
+ $this->positions[$wsDataPos->symbol . "_" . $wsDataPos->posSide] = $pos;
|
|
|
|
237
|
+ $wsData = new WsData($this->plat, 'pos', $trade = null, $pos = $wsDataPos);
|
|
|
|
238
|
+ $onData($wsData);
|
|
|
|
239
|
+ }
|
|
240
|
}
|
240
|
}
|
|
241
|
return;
|
241
|
return;
|
|
242
|
}
|
242
|
}
|