|
...
|
...
|
@@ -40,7 +40,7 @@ class BinanceFutures |
|
|
|
return hash_hmac('sha256', $paramStr, $secret);
|
|
|
|
}
|
|
|
|
|
|
|
|
private function requestAccount($method, $path, $param)
|
|
|
|
public function requestAccount($method, $path, $param)
|
|
|
|
{
|
|
|
|
if(empty($this->apikey) || empty($this->secret)){
|
|
|
|
output('api 或 secret 为空');
|
|
...
|
...
|
@@ -67,7 +67,7 @@ class BinanceFutures |
|
|
|
return json_decode($data, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
static private function requestMarket($method, $path, $param)
|
|
|
|
static public function requestMarket($method, $path, $param)
|
|
|
|
{
|
|
|
|
$url = self::createUrl($path);
|
|
|
|
if (!in_array(strtoupper($method), ['GET', 'POST', 'DELETE'])) {
|
...
|
...
|
|