From c7a0bd316df4155f2038bba650a21817552d03a7 Mon Sep 17 00:00:00 2001 From: zhouaini528 <465382251@qq.com> Date: Wed, 30 Oct 2024 10:27:35 +0800 Subject: [PATCH] add binance future --- tests/binance.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/binance.php b/tests/binance.php index 92c1f8c..923ff84 100644 --- a/tests/binance.php +++ b/tests/binance.php @@ -130,6 +130,7 @@ break; } case 151:{ + $exchanges=new Exchanges('binance',$key,$secret,'https://testnet.binance.vision'); //The original parameters $_client_id=md5(rand(1,999999999));//custom ID $result=$exchanges->trader()->buy([ @@ -137,7 +138,7 @@ 'symbol'=>'BTCUSDT', 'type'=>'LIMIT', 'quantity'=>'0.01', - 'price'=>'2000', + 'price'=>'50000', 'timeInForce'=>'GTC', ]); break; @@ -152,6 +153,7 @@ break; } case 153:{ + $exchanges=new Exchanges('binance',$key,$secret,'https://testnet.binance.vision'); //The original parameters $_client_id=md5(rand(1,999999999));//custom ID $result=$exchanges->trader()->sell([ @@ -159,7 +161,7 @@ 'symbol'=>'BTCUSDT', 'type'=>'LIMIT', 'quantity'=>'0.01', - 'price'=>'9000', + 'price'=>'90000', 'timeInForce'=>'GTC', ]); break;