Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: pangu on April 20, 2013, 11:00:39 PM



Title: mtgox api
Post by: pangu on April 20, 2013, 11:00:39 PM
how can i get the history of my orders? when i try:

Quote
public function getmyOrders($type){
$this->setPath("generic", "private", "order/result");
return $this->sendRequest();
}
+
echo '<pre>' . print_r($gox->getmyOrders(bid),true) . '</pre>';

i get:

Quote
Fatal error: Uncaught exception 'Exception' with message 'Query Failed... (Parameter "type" must have value "bid" or "ask":https://data.mtgox.com/api/1/generic/private/order/result?nonce=...

-> any ideas? thx