From 5d6f76002ef6dea328d9230e5e2e8842bd22de30 Mon Sep 17 00:00:00 2001 From: Manomite Date: Tue, 6 Sep 2022 17:48:45 +0100 Subject: [PATCH] Update System.php --- src/Api/Spot/System.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Api/Spot/System.php b/src/Api/Spot/System.php index 4241d32..4242058 100644 --- a/src/Api/Spot/System.php +++ b/src/Api/Spot/System.php @@ -13,11 +13,11 @@ class System extends Request protected $signature=false; //Default seting - protected $version='v1'; + protected $version='v3'; /** * 测试服务器连通性 PING - GET /api/v1/ping + GET /api/v3/ping * */ public function getPing(array $data=[]){ $this->type='GET'; @@ -28,7 +28,7 @@ public function getPing(array $data=[]){ /** *获取服务器时间 - GET /api/v1/time + GET /api/v3/time * */ public function getTime(array $data=[]){ $this->type='GET'; @@ -39,7 +39,7 @@ public function getTime(array $data=[]){ /** *交易规范信息 - GET /api/v1/exchangeInfo + GET /api/v3/exchangeInfo * */ public function getExchangeInfo(array $data=[]){ $this->type='GET'; @@ -50,7 +50,7 @@ public function getExchangeInfo(array $data=[]){ /** *深度信息 - GET /api/v1/depth + GET /api/v3/depth symbol STRING YES limit INT NO 默认 100; 最大 1000. 可选值:[5, 10, 20, 50, 100, 500, 1000] @@ -64,7 +64,7 @@ public function getDepth(array $data=[]){ /** *近期成交 - GET /api/v1/trades + GET /api/v3/trades symbol STRING YES limit INT NO Default 500; max 1000. @@ -78,7 +78,7 @@ public function getTrades(array $data=[]){ /** *查询历史成交(MARKET_DATA) - GET /api/v1/historicalTrades + GET /api/v3/historicalTrades * */ public function getHistoricalTrades(array $data=[]){ $this->type='GET'; @@ -89,7 +89,7 @@ public function getHistoricalTrades(array $data=[]){ /** *近期成交(归集) - GET /api/v1/aggTrades + GET /api/v3/aggTrades symbol STRING YES fromId LONG NO 从包含fromID的成交开始返回结果 @@ -106,7 +106,7 @@ public function getAggTrades(array $data=[]){ /** *K线数据 - GET /api/v1/klines + GET /api/v3/klines * */ public function getKlines(array $data=[]){ $this->type='GET'; @@ -130,7 +130,7 @@ public function getAvgPrice(array $data=[]){ /** *系统状态 (System) - GET /sapi/v1/system/status + GET /sapi/v3/system/status * */ public function getSystemStatus(array $data=[]){ $this->type='GET'; @@ -141,7 +141,7 @@ public function getSystemStatus(array $data=[]){ /** *24hr价格变动情况 - GET /api/v1/ticker/24hr + GET /api/v3/ticker/24hr * */ public function get24hr(array $data=[]){ $this->type='GET';