mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 08:48:07 +00:00
commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
- [Order Book Level Depth Extra Param](./examples/php/)
|
||||
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
include './ccxt.php';
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
// instantiate the exchange by id
|
||||
$exchange = '\\ccxt\\kraken';
|
||||
$exchange = new $exchange ();
|
||||
$limit = 10; // up to ten order on each side, for example
|
||||
var_dump ($exchange->fetch_order_book ('BTC/USD', $limit));
|
||||
|
||||
|
||||
?>
|
||||
```
|
||||
Reference in New Issue
Block a user