作者 karlet

feat:公共request

@@ -112,7 +112,7 @@ class BinanceSpot @@ -112,7 +112,7 @@ class BinanceSpot
112 * @param int $type (=1:行情等接口,不需要签名;=2:账户等接口需要签名) 112 * @param int $type (=1:行情等接口,不需要签名;=2:账户等接口需要签名)
113 * @return array|int|mixed 113 * @return array|int|mixed
114 */ 114 */
115 - public function request($path, $method, $param, int $type=1) 115 + public function request(string $path, string $method, array $param, int $type=1)
116 { 116 {
117 if($type==2){ 117 if($type==2){
118 return self::requestAccount($method, $path, $param); 118 return self::requestAccount($method, $path, $param);