I’m trying to add multiple pairs to the array below but I can only retrieve the last pair. So how can I get both pairs / add more pairs?
$ticker = $kraken->QueryPublic('Ticker', array('pair' => 'XXBTZEUR', 'pair' => 'XXRPXXBT')); print "<pre>"; print_r($ticker); print "</pre>";
Notice: Undefined index: XXBTZEUR in /home/… on line 14
( [error] => Array ( ) [result] => Array ( [XXRPXXBT] => Array ( [a] => Array (  => 0.000028120  => 10836  => 10836.000 )
You are using this associated array:
array('pair' => 'XXBTZEUR', 'pair' => 'XXRPXXBT')
An associated array is a set of key-value pairs. The key identifies the value. Since your key of
pair is duplicate here, the latter abrogates the former. You will probably need to do as many queries as the number of pairs you need to work with.