1 | <?php |
||
2 | /** |
||
3 | * @author Fabian Hanisch |
||
4 | * @since 16.07.2017 02:55 |
||
5 | * @version 1.0 |
||
6 | */ |
||
7 | require_once(__DIR__ . '/../vendor/autoload.php'); |
||
8 | |||
9 | try { |
||
10 | $api = new \HanischIt\KrakenApi\KrakenApi( |
||
11 | "Your-API-Key", |
||
12 | "Your-API-Sign" |
||
13 | ); |
||
14 | |||
15 | $orderBookResponse = $api->getOpenOrders(); |
||
16 | foreach ($orderBookResponse->getOrders() as $order) { |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
17 | echo "Order: " . $order->getTxId() . "\n"; |
||
18 | } |
||
19 | |||
20 | } catch (Exception $e) { |
||
21 | echo $e->getMessage(); |
||
22 | } |
||
23 |