|
...
|
...
|
@@ -125,10 +125,12 @@ class CmBroker |
|
|
|
}
|
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
$this->initPosMode();
|
|
|
|
$this->initSymbolInfos();
|
|
|
|
if ($this->plat == self::PLAT_OKX && $this->apiInfo && $this->apiInfo->key != '') {
|
|
|
|
$this->initPosMode();
|
|
|
|
$this->initPositions();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function accListen(callable $onData)
|
|
|
|
{
|
|
|
|
$this->exBroker->accListen(function ($data) use ($onData) {
|
...
|
...
|
|