Skip to content

Commit 6d875c0

Browse files
committed
add example
1 parent e92c60d commit 6d875c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/orders_testnet.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)