Author

Topic: I need a working PHP mtgox API script [.1 btc] (Read 765 times)

member
Activity: 100
Merit: 10
https://github.com/Someguy123/MtGOX-PHP-API
The class is pretty well documented inside the file. Just include the 1 file at the top of your script, then do for example this
Code:
$gox = new Gox('myLongAPIKey', 'Mysecretsecret');
$price = $gox->ticker();

if($price<100){
     $gox->buyBTC($amount, $price, "USD");
}
else {
     $gox->sellBTC($amount, $price, "USD");

}
Whereas $amount and $price actually have to equal something.
See this for more detail on the various functions of the library, it's code is really easy to understand
https://github.com/Someguy123/MtGOX-PHP-API/blob/master/Gox.class.php
newbie
Activity: 46
Merit: 0
Need to be able to withdraw btc and place buy orders.

v1/v2

must be in php


link to my attempts so far,
https://bitcointalksearch.org/topic/m.2237716
Jump to: