Bitcoin Forum
December 04, 2016, 10:22:13 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: mtGox Trading API down? [solved]  (Read 2068 times)
itake
Jr. Member
*
Offline Offline

Activity: 39


View Profile
June 28, 2011, 07:25:19 PM
 #1

I keep getting this error: {"error":"Must be logged in"} or when I am logged into the site {"error":"Bad token"}

whenever I try this:

https://mtgox.com/code/getFunds.php?name=itake&pass=wouldn'ty0uliketokn0w

anyone else having the same problem?
1480846933
Hero Member
*
Offline Offline

Posts: 1480846933

View Profile Personal Message (Offline)

Ignore
1480846933
Reply with quote  #2

1480846933
Report to moderator
1480846933
Hero Member
*
Offline Offline

Posts: 1480846933

View Profile Personal Message (Offline)

Ignore
1480846933
Reply with quote  #2

1480846933
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Moxed
Newbie
*
Offline Offline

Activity: 17


View Profile WWW
June 28, 2011, 07:47:58 PM
 #2

yeah i do have the same issue since they are back online.

hope they bring them back soon !

Double your Bitcoin:    bithyip(.)com/?ref=moxed
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
June 28, 2011, 07:52:21 PM
 #3

Same issue here. I had a very quick chat about this with MagicalTux on the IRC, he told me this should be fixed this weekend. But you know how they are with deadlines at Mtgox...
CharlyBln
Newbie
*
Offline Offline

Activity: 4


View Profile
June 28, 2011, 07:58:00 PM
 #4

Have the same Problems.
By the way...Anyone knows an existing Java implementation für the Mt.Gox-API ? I have Problems to set a POST https-message.
If anyone has a short JAVA-script for me, i would be so thankful!
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
June 28, 2011, 08:24:49 PM
 #5

Sorry I can't help with Java. But FYI I use Curl and it works flawlessly. There is probably an implementation for Java?
Existence
Newbie
*
Offline Offline

Activity: 17


View Profile
June 28, 2011, 08:32:58 PM
 #6

down for me as well. when will mt.gox run smoothly? seems like they're always encountering problems.
itake
Jr. Member
*
Offline Offline

Activity: 39


View Profile
June 28, 2011, 08:57:15 PM
 #7

I am thinking about just skipping over the API and just logging into the site like a "normal user."

Slightly unrelated, but would anyone be interested in me releasing my mtGox C# library?
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
June 28, 2011, 09:26:31 PM
 #8

I am sure some will be interested in your C# library. For now I am just starting with C++...  Cheesy Thanks anyway!
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
June 30, 2011, 09:19:18 AM
 #9

FYI just received this message from Mtgox:

Quote
Hello,

It will be active by beginning of next week.

Sorry for the inconvenience and thank you for using our site and you have any other questions feel free to contact us by sending us an

mail.

Thanks,

MtGox.com Team
SlipperySlope
Hero Member
*****
Offline Offline

Activity: 686

Stephen Reed


View Profile
June 30, 2011, 03:31:21 PM
 #10

I just tried my test scripts for the Mt Gox Trading API and they also gave me the reported error.  However in my development work yesterday I discovered a sequence of commands that works.  Once logged in, only the last command needs to be input.  These are using the curl linux command line utility.  And I also have a Java version that I'm now updating to recover from the reported error using this protocol.  Note that the user and password must be HTML encoded.

Code:
curl -v -k --referer https://mtgox.com https://mtgox.com/users/login

curl -v -k --referer https://mtgox.com/users/login --data "name=XXX&pass=YYY" https://mtgox.com/users/login

curl -v -k --referer https://mtgox.com/users/login https://mtgox.com/

curl -v -k --referer http://mtgox.com/ --data "name=XXX&pass=YYY" -H "Accept: application/json" https://mtgox.com/code/getFunds.php
SlipperySlope
Hero Member
*****
Offline Offline

Activity: 686

Stephen Reed


View Profile
June 30, 2011, 03:47:59 PM
 #11

Have the same Problems.
By the way...Anyone knows an existing Java implementation für the Mt.Gox-API ? I have Problems to set a POST https-message.
If anyone has a short JAVA-script for me, i would be so thankful!

Hi.  Did you see my Java HTTPS snippet posted to your request on another thread?  If not, just respond here and I'll post my latest Java POST to get the Mt Gox funds balance - assuming that one is properly logged in.
CharlyBln
Newbie
*
Offline Offline

Activity: 4


View Profile
June 30, 2011, 07:50:12 PM
 #12

Hey,

yeah, thanks for the reply in the other thread. Well, i'm getting this ticker stuff working but now i'm trying to implement the "trading" functionality, but it's hard to develop a communication with an API, which does not work...Please inform me, when you are able to communicate in JAVA with the API, for example if you can place a buy or sell.
Thanks for the help!
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
June 30, 2011, 09:03:59 PM
 #13

I just tried my test scripts for the Mt Gox Trading API and they also gave me the reported error.  However in my development work yesterday I discovered a sequence of commands that works.  Once logged in, only the last command needs to be input.  These are using the curl linux command line utility.  And I also have a Java version that I'm now updating to recover from the reported error using this protocol.  Note that the user and password must be HTML encoded.

Code:
curl -v -k --referer https://mtgox.com https://mtgox.com/users/login

curl -v -k --referer https://mtgox.com/users/login --data "name=XXX&pass=YYY" https://mtgox.com/users/login

curl -v -k --referer https://mtgox.com/users/login https://mtgox.com/

curl -v -k --referer http://mtgox.com/ --data "name=XXX&pass=YYY" -H "Accept: application/json" https://mtgox.com/code/getFunds.php

Thanks for sharing this. I am using curl as well, fantastic little utility. FYI here below are the lines I use:

Code:
curl -s -k https://mtgox.com/code/data/ticker.php
curl -s -k -d "name=$user&pass=$pass" https://mtgox.com/code/getFunds.php
curl -s -k -d "name=$user&pass=$pass&oid=$oid&type=$type" https://mtgox.com/code/cancelOrder.php
curl -s -k -d "name=$user&pass=$pass&amount=$amount_to_buy&price=$buy" https://mtgox.com/code/buyBTC.php

So it's a bit different... but yours work at the moment, mine was working before. If it's not fixed by this weekend I will modify my code.
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
June 30, 2011, 10:17:02 PM
 #14

OK, small update. I just realized my script was not working anymore because they added something new in the ticker ("average"). If it can save you some time... Wink)
itake
Jr. Member
*
Offline Offline

Activity: 39


View Profile
July 07, 2011, 05:31:34 PM
 #15

OK, small update. I just realized my script was not working anymore because they added something new in the ticker ("average"). If it can save you some time... Wink)

does that mean the trade API is working?
QuickTrader
Newbie
*
Offline Offline

Activity: 13


View Profile
July 07, 2011, 05:45:27 PM
 #16

I can confirm the "basic" api of mt gox and tradehill works

price / market / orders / buy and sell
Coinbuck @ BTCLot
Hero Member
*****
Offline Offline

Activity: 541

The future begins today


View Profile WWW
July 08, 2011, 01:15:39 AM
 #17

I get:

{"error":"Bad token"}

Regards,

Bitcoin is the future !
old_engineer
Sr. Member
****
Offline Offline

Activity: 387


View Profile
July 08, 2011, 03:20:43 AM
 #18

Mtgox's feed seem to go up and down all the time.  An easy way to see if the problem is you or them is to look at other sites like bitcoinity.com to see if their feed is stuck, too.
angelo95
Member
**
Offline Offline

Activity: 84


View Profile
July 08, 2011, 08:12:11 AM
 #19

OK, small update. I just realized my script was not working anymore because they added something new in the ticker ("average"). If it can save you some time... Wink)

does that mean the trade API is working?

API was working perfectly 2 days ago. I stopped using it yesterday to update my computer but till there it was OK. However sometimes it's slow to get some feeds like balance or orders (the ones you have to log in).
itake
Jr. Member
*
Offline Offline

Activity: 39


View Profile
July 08, 2011, 09:42:03 PM
 #20

I get:

{"error":"Bad token"}

Regards,

I just said screw it and wrote my program to use the normal user interface.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!