This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
forked from jaggedsoft/php-binance-api
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically fix CA certificate issues in certain WAMP installations Several improvements + 6 commits by dmzoneill
- Loading branch information
Showing
3 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
require '../php-binance-api.php'; | ||
|
||
$api_key = "gW3TsYrpPoSBEX61rvGfor00ATivkbXNp3ODnNhmQpQjv4nfl8LnGXOX1iL9LcHa"; | ||
$api_secret = "bqNINND57jzM8wDYVi6AWRjE9uzF4Q6BJ0V0FvJzdLUmq7c0uhvwUugeW67hx8Bm"; | ||
|
||
$api1 = new Binance\API(); | ||
$balances1 = $api1->balances(); | ||
print count($balances1) . "\n"; | ||
|
||
$api2 = new Binance\API( "/home/dave/.config/jaggedsoft/php-binance-api.json" ); | ||
$balances2 = $api2->balances(); | ||
print count($balances2) . "\n"; | ||
|
||
$api3 = new Binance\API($api_key, $api_secret); | ||
$balances3 = $api3->balances(); | ||
print count($balances3) . "\n"; | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
require 'php-binance-api.php'; | ||
|
||
$api = new Binance\API(); | ||
$api->report(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters