Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions php/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*
* [result] => Array
* (
* [XBTC] => Array
* [XXBT] => Array
* (
* [aclass] => currency
* [altname] => BTC
Expand Down Expand Up @@ -73,7 +73,7 @@
*/

// Query public ticker info for BTC/USD pair:
$res = $kraken->QueryPublic('Ticker', array('pair' => 'XBTCZUSD'));
$res = $kraken->QueryPublic('Ticker', array('pair' => 'XXBTZUSD'));
print_r($res);

/**
Expand All @@ -87,7 +87,7 @@
*
* [result] => Array
* (
* [XBTCZUSD] => Array
* [XXBTZUSD] => Array
* (
* [a] => Array
* (
Expand Down Expand Up @@ -119,7 +119,7 @@
* and it may no longer be representative of a timestamp. The best practice is to base it
* on the 'last' value returned in the result set.
*/
$res = $kraken->QueryPublic('Trades', array('pair' => 'XBTCZEUR', 'since' => '137589964200000000'));
$res = $kraken->QueryPublic('Trades', array('pair' => 'XXBTZEUR', 'since' => '137589964200000000'));
print_r($res);

/**
Expand All @@ -133,7 +133,7 @@
*
* [result] => Array
* (
* [XBTCZEUR] => Array
* [XXBTZEUR] => Array
* (
* [0] => Array
* (
Expand Down Expand Up @@ -187,7 +187,7 @@
* (
* [ZUSD] => 3415.8014
* [ZEUR] => 155.5649
* [XBTC] => 149.9688412800
* [XXBT] => 149.9688412800
* [XXRP] => 499889.51600000
* )
*
Expand Down Expand Up @@ -241,7 +241,7 @@

// Add a standard order: sell 1.123 BTC/USD @ limit $120
$res = $kraken->QueryPrivate('AddOrder', array(
'pair' => 'XBTCZUSD',
'pair' => 'XXBTZUSD',
'type' => 'sell',
'ordertype' => 'limit',
'price' => '120',
Expand Down Expand Up @@ -278,7 +278,7 @@

// Add a standard order: buy €300 worth of BTC at market at 2013-08-12T09:27:22+0000
$res = $kraken->QueryPrivate('AddOrder', array(
'pair' => 'XBTCZEUR',
'pair' => 'XXBTZEUR',
'type' => 'buy',
'ordertype' => 'market',
'oflags' => 'viqc',
Expand Down Expand Up @@ -320,7 +320,7 @@
+$10 price increase (signed stop/loss prices determined automatically using # notation):
*/
$res = $kraken->QueryPrivate('AddOrder', array(
'pair' => 'XBTCZUSD',
'pair' => 'XXBTZUSD',
'type' => 'buy',
'ordertype' => 'limit',
'price' => '101.9901',
Expand Down