mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 16:58:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
- [Watchpositionsforsymbols](./examples/php/)
|
||||
|
||||
|
||||
```php
|
||||
<?php
|
||||
namespace ccxt;
|
||||
include_once (__DIR__.'/../../ccxt.php');
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
||||
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
error_reporting(E_ALL);
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
use ccxt\Precise;
|
||||
use React\Async;
|
||||
use React\Promise;
|
||||
|
||||
|
||||
// AUTO-TRANSPILE //
|
||||
function example() {
|
||||
return Async\async(function () {
|
||||
$exchange = new \ccxt\pro\binanceusdm(array(
|
||||
'apiKey' => 'YOUR_API_KEY',
|
||||
'secret' => 'Your_API_SECRET',
|
||||
));
|
||||
$symbols = ['BTC/USDT:USDT', 'ETH/USDT:USDT', 'DOGE/USDT:USDT'];
|
||||
while (true) {
|
||||
$trades = Async\await($exchange->watch_positions($symbols));
|
||||
var_dump($trades);
|
||||
}
|
||||
}) ();
|
||||
}
|
||||
|
||||
|
||||
Async\await(example());
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user