正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -40,7 +40,7 @@ class BinanceFutures | @@ -40,7 +40,7 @@ class BinanceFutures | ||
| 40 | return hash_hmac('sha256', $paramStr, $secret); | 40 | return hash_hmac('sha256', $paramStr, $secret); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | - private function requestAccount($method, $path, $param) | 43 | + public function requestAccount($method, $path, $param) |
| 44 | { | 44 | { |
| 45 | if(empty($this->apikey) || empty($this->secret)){ | 45 | if(empty($this->apikey) || empty($this->secret)){ |
| 46 | output('api 或 secret 为空'); | 46 | output('api 或 secret 为空'); |
| @@ -67,7 +67,7 @@ class BinanceFutures | @@ -67,7 +67,7 @@ class BinanceFutures | ||
| 67 | return json_decode($data, true); | 67 | return json_decode($data, true); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | - static private function requestMarket($method, $path, $param) | 70 | + static public function requestMarket($method, $path, $param) |
| 71 | { | 71 | { |
| 72 | $url = self::createUrl($path); | 72 | $url = self::createUrl($path); |
| 73 | if (!in_array(strtoupper($method), ['GET', 'POST', 'DELETE'])) { | 73 | if (!in_array(strtoupper($method), ['GET', 'POST', 'DELETE'])) { |
-
请 注册 或 登录 后发表评论