Skip to content

Commit

Permalink
added examples/php/vaultoro-fetch-balance.php example fix ccxt#1988
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Feb 22, 2018
1 parent 6e8ced2 commit 4d81bed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions examples/php/vaultoro-fetch-balance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

$root = dirname (dirname (dirname (__FILE__)));

include $root . '/ccxt.php';

date_default_timezone_set ('UTC');

$exchange = new \ccxt\vaultoro (array (
// 'verbose' => true, // for debugging
// 'timeout' => 30000,
"apiKey" => "CEwxqNb3GzixcrhzrPkn47JkdsDpff6z",
"secret" => "ZXRBWURDN3NSVFNJSmFIRHlOWUVfd1d6UjZwSFdiTGI=",
));

try {

$result = $exchange->fetch_balance ();

print_r ($result);

} catch (\ccxt\NetworkError $e) {
echo '[Network Error] ' . $e->getMessage () . "\n";
} catch (\ccxt\ExchangeError $e) {
echo '[Exchange Error] ' . $e->getMessage () . "\n";
} catch (Exception $e) {
echo '[Error] ' . $e->getMessage () . "\n";
}

?>
2 changes: 1 addition & 1 deletion keys.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"tidex": { "skip": true },
"therock": { "apiKey": "a521b8c93466ccf5fdcd2dcad1bb1b287e41ec2b", "secret": "4b9c88b0a6f0688464542f9a74548edf85375134" },
"urdubit": { "skip": true },
"vaultoro": { "apiKey": "7omZ3XSd74T87JSCsTyKTtD5ppRBarQL", "secret": "eWIzZENZbkkzV0pCRU9LMUprWDBhN3EwV1VpOEdCWnY=" },
"vaultoro": { "apiKey": "CEwxqNb3GzixcrhzrPkn47JkdsDpff6z", "secret": "ZXRBWURDN3NSVFNJSmFIRHlOWUVfd1d6UjZwSFdiTGI=" },
"vbtc": { "skip": true },
"virwox": { "apiKey": "1ea680450b32585f743c50c051bf8e4e", "login": "IgorKroitor", "password": "HfveVskfVfvf260" },
"xbtce": { "apiKey": "dK2jBXMTppAM57ZJ", "secret": "qGNTrzs3d956DZKSRnPPJ5nrQJCwetAnh7cR6Mkj5E4eRQyMKwKqH7ywsxcR78WT", "uid": "68ef0552-3c37-4896-ba56-76173d9cd573" },
Expand Down

0 comments on commit 4d81bed

Please sign in to comment.