Skip to content

Commit

Permalink
Merge pull request #41 from mitmelon/master
Browse files Browse the repository at this point in the history
Update System.php
  • Loading branch information
zhouaini528 authored Sep 16, 2022
2 parents e30b90a + 5d6f760 commit a83c032
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Api/Spot/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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]
Expand All @@ -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.
Expand All @@ -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';
Expand All @@ -89,7 +89,7 @@ public function getHistoricalTrades(array $data=[]){

/**
*近期成交(归集)
GET /api/v1/aggTrades
GET /api/v3/aggTrades
symbol STRING YES
fromId LONG NO 从包含fromID的成交开始返回结果
Expand All @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand Down

0 comments on commit a83c032

Please sign in to comment.