diff --git a/php-binance-api.php b/php-binance-api.php index 2b2d3309..b293b046 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -3078,4 +3078,44 @@ public function bswapQuote($baseAsset, $quoteAsset, $quoteQty) { return $this->httpRequest("v1/bswap/quote", 'GET', $opt, true); } + + /** + * payHistory - get Binance Pay transactions. + * + * @property int $limit + * + * @return array containing the response + * @throws \Exception + */ + public function payHistory($limit) + { + $opt = [ + 'sapi' => true, + 'limit' => $limit + ]; + + return $this->httpRequest("v1/pay/transactions", 'GET', $opt, true); + } + + /** + * transfer - transfer coins from wallet to another. + * + * @property string $asset + * @property float $amount + * @property string $type (ex: FUNDING_MAIN: funding to mail wallet, MAIN_FUNDING: main to funding wallet) + * + * @return array containing the response + * @throws \Exception + */ + public function transfer($asset, $amount, $type) + { + $opt = [ + 'sapi' => true, + 'type' => $type, + 'asset' => $asset, + 'amount' => $amount, + ]; + + return $this->httpRequest("v1/asset/transfer", 'POST', $opt, true); + } }