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->getClosedOrders(); |
||
16 | foreach ($orderBookResponse->getOrders() as $order) { |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
17 | echo "Order: " . $order->getTxId() . " / Canceled: " . $order->getCloseTm() . " / Reason: " . $order->getReason() . "\n"; |
||
18 | } |
||
19 | } catch (Exception $e) { |
||
20 | echo $e->getMessage(); |
||
21 | } |
||
22 |