作者 karlet

feat:listenkey

... ... @@ -146,6 +146,20 @@ class BinanceSpot
$method = 'GET';
return $this->requestAccount($method, $path, $param);
}
//生成 Listen Key (USER_STREAM)
public function listenKey($param)
{
$path = '/api/v3/userDataStream';
$method = 'POST';
return $this->requestAccount($method, $path, $param);
}
//延长 Listen Key 有效期 (USER_STREAM)
public function listenKeyDelay($param)
{
$path = '/api/v3/userDataStream';
$method = 'PUT';
return $this->requestAccount($method, $path, $param);
}
/*
* ==================================
... ...