|
...
|
...
|
@@ -105,6 +105,24 @@ class BinanceSpot |
|
|
|
return json_decode($data, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $path
|
|
|
|
* @param $method
|
|
|
|
* @param $param
|
|
|
|
* @param int $type (=1:行情等接口,不需要签名;=2:账户等接口需要签名)
|
|
|
|
* @return array|int|mixed
|
|
|
|
*/
|
|
|
|
public function request($path, $method, $param, int $type=1)
|
|
|
|
{
|
|
|
|
if($type==2){
|
|
|
|
return self::requestAccount($method, $path, $param);
|
|
|
|
}else if($type==1){
|
|
|
|
return self::requestMarket($method, $path, $param);
|
|
|
|
}else{
|
|
|
|
return ['code'=>1000,'msg'=>'type参数错误'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//查询用户万向划转历史
|
|
|
|
public function getTransfer($param)
|
|
|
|
{
|
...
|
...
|
|