Hi,
I have a problem with the Mt. Gox trading API, namely with the buy and sell scripts:
https://www.mtgox.com/code/sellBTC.php?name=USERNAME&pass=PASS&amount=3&price=30
will give me "{"error": "Not logged in. <a href='/users/login'>Log in</a>"}".
A call to
https://mtgox.com/code/getOrders.php?name=USERNAME&pass=PASS
works, however.
It does not work in a browser, but it also does not work in JS:
$.ajax({
type: 'POST',
url: 'https://mtgox.com/code/sellBTC.php?name=USERNAME&pass=PASS&amount=' + numAmount + '&price=' + numPrice,
dataType: 'json',
data: {},
success: this.onSellSuccess.bind(this, funCallback),
error: this.onSellFailure.bind(this, funCallback)
});
will not work either, yielding the same error.
As I found few people having the same problem and no answers, I'm wondering whether I'm doing something wrong....
Also Mt. Gox support did not answer my request for help.