We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92c60d commit 6d875c0Copy full SHA for 6d875c0
1 file changed
examples/orders_testnet.php
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+require '../php-binance-api.php';
4
5
+// @see home_directory_config.php
6
+// use config from ~/.confg/jaggedsoft/php-binance-api.json
7
+$api = new Binance\API("<testnet api key>","<testnet secret>", true);
8
9
+// Place a LIMIT order using the testnet
10
+$quantity = 1000;
11
+$price = 0.0005;
12
+$order = $api->buy("BNBBTC", $quantity, $price);
13
+print_r($order);
14
0 commit comments