Bitcoin Forum
April 24, 2024, 09:36:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 [5] 6 7 8 9 10 11 »  All
  Print  
Author Topic: MtGox API version 2: Unofficial Documentation  (Read 62427 times)
TimJBenham
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 18, 2013, 12:32:09 PM
 #81

all I want right now is to monitor and issue a sell order in case of a large drop Smiley  kinda weird that isn't a standard feature yet through the web interface.

Yeah, it's weird that the big exchanges don't support standard exchange features such as order limits, short selling and margin trading.

In most markets those are broker features, not exchange features.

You are a warlord in the outskirts of the known world struggling to establish a kingdom in the wild lands.
1713994604
Hero Member
*
Offline Offline

Posts: 1713994604

View Profile Personal Message (Offline)

Ignore
1713994604
Reply with quote  #2

1713994604
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713994604
Hero Member
*
Offline Offline

Posts: 1713994604

View Profile Personal Message (Offline)

Ignore
1713994604
Reply with quote  #2

1713994604
Report to moderator
1713994604
Hero Member
*
Offline Offline

Posts: 1713994604

View Profile Personal Message (Offline)

Ignore
1713994604
Reply with quote  #2

1713994604
Report to moderator
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
April 18, 2013, 01:19:59 PM
Last edit: April 18, 2013, 01:54:05 PM by brox
 #82

Typo:

comprised <- compromised
completed useless, currently <- completely useless, currently

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
MikeH
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250


View Profile
April 18, 2013, 03:37:09 PM
 #83

Typo:

comprised <- compromised
completed useless, currently <- completely useless, currently

got the right thread? Smiley

nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 18, 2013, 04:40:13 PM
 #84

Typo:

comprised <- compromised
completed useless, currently <- completely useless, currently

Thanks, fixed Smiley


got the right thread? Smiley

He was pointing out typos in the documentation Tongue

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
Viceroy
Hero Member
*****
Offline Offline

Activity: 924
Merit: 501


View Profile
April 18, 2013, 05:03:47 PM
 #85

all I want right now is to monitor and issue a sell order in case of a large drop Smiley  kinda weird that isn't a standard feature yet through the web interface.

Yeah, it's weird that the big exchanges don't support standard exchange features such as order limits, short selling and margin trading.

In most markets those are broker features, not exchange features.

Please consider contributing such ideas to this post:  https://bitcointalk.org/index.php?topic=179147.0
baracuda
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
April 19, 2013, 09:06:10 AM
 #86

At the end of the document, money/wallet/history has an optional parameter of page (in addition to the required currency parameter already listed.)
nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 19, 2013, 09:55:20 PM
 #87

At the end of the document, money/wallet/history has an optional parameter of page (in addition to the required currency parameter already listed.)

Thanks, the ones at the bottom I haven't got around to investigating yet so the only information is what I found on the official documentation, so any information is very helpful Smiley I've published what I could find out for the method. Have you confirmed this parameter works? I don't have more than 50 transactions in any of my wallets so I can't test it myself.

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 23, 2013, 09:35:50 PM
 #88

Just added some brief information about streaming here - https://bitbucket.org/nitrous/mtgox-api/src/master/socket, including a basic websocket client for quick testing. Also documented the `stream/list_public method`. Note that I have not actually documented any of the actual streaming API, as the bitcoin wiki has a very good page on it themselves - https://en.bitcoin.it/wiki/MtGox/API/Streaming.

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
advanced
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
April 24, 2013, 07:36:40 AM
 #89

thanks! Wink

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
advanced
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
April 26, 2013, 11:11:33 AM
 #90

I finally got some spare time to put together a small repo for documenting the Java Client.
Hope it helps. Thank you guys.

https://github.com/adv0r/mtgox-api-v2-java

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 26, 2013, 01:48:22 PM
 #91

I finally got some spare time to put together a small repo for documenting the Java Client.
Hope it helps. Thank you guys.

https://github.com/adv0r/mtgox-api-v2-java


Thanks, that's great work, I linked it in my API examples section Smiley

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
advanced
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
April 26, 2013, 02:45:06 PM
 #92

You are welcome, thanks for the good words you used Wink

PS: Today I observed another unexpected behaviour of the APIs. You cannot access the method MONEY/BITCOIN/SEND_SIMPLE if you are using an yubikey. Not even if you gave permissions to the API keys.  This is weird : i mean, i need the yubikey to login into my account, but this is not stopping me to be able to place orders via API. I opened a ticket on mtg.

 

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 26, 2013, 07:56:35 PM
 #93

You are welcome, thanks for the good words you used Wink

PS: Today I observed another unexpected behaviour of the APIs. You cannot access the method MONEY/BITCOIN/SEND_SIMPLE if you are using an yubikey. Not even if you gave permissions to the API keys.  This is weird : i mean, i need the yubikey to login into my account, but this is not stopping me to be able to place orders via API. I opened a ticket on mtg.


No problem, it's important to add a spectrum of examples, from quite simple to more sophisticated, to help people get started and then improve their projects, as well as having multiple languages Smiley

Thanks, I've updated the docs to note this. Update me if you get an official response, as it does make sense for it to be denied with yubikey enabled, but it is indeed inconsistent.

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
IIzzII
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
April 27, 2013, 02:46:14 AM
 #94

Can someone help me out, I feel like I'm going crazy here. I've been reading your documentation (which is great, by the way) and I can't seem to make even the basic calls work predictably. I'm trying to get some historical data. For testing reasons, I've started at 'since=0'. This url:

https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch?since=0

properly returns trades. The timestamp of the first trade is "1279408157" which is a date of  07/17/10 @ 6:09:17pm. The timestamp of the last trade is "1282128968" which is a date of 08/18/10 @ 5:56:08am EST. Now if I take that last timestamp and attach that to the url:

https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch?since=1282128968

the first timestamp of the first trade is "1309108565" which is a date of 06/26/11 @ 12:16:05pm EST. I've also tried using microseconds as suggested by the api but that returns the same thing. The url:

https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch?since=1282128968000000

returns the same thing as above. I've tried other timestamps from the first response and the all point to this 06/25/11 set of trades.

Any idea what I'm doing wrong?
TimJBenham
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 27, 2013, 05:50:33 AM
 #95

Not exactly a V2 issue but https://data.mtgox.com/api/1/BTCUSD/ticker_fast just started failing for me with the error "This query needs to be done via data.mtgox.com". It gives an endless redirect loop. Is it still working in V2?

You are a warlord in the outskirts of the known world struggling to establish a kingdom in the wild lands.
TimJBenham
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 27, 2013, 06:26:26 AM
 #96

Looks like it's working again. Possible Cloudfare false positive?

You are a warlord in the outskirts of the known world struggling to establish a kingdom in the wild lands.
nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 27, 2013, 10:28:12 AM
 #97

Can someone help me out, I feel like I'm going crazy here. I've been reading your documentation (which is great, by the way) and I can't seem to make even the basic calls work predictably. I'm trying to get some historical data. For testing reasons, I've started at 'since=0'. This url:

https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch?since=0

properly returns trades. The timestamp of the first trade is "1279408157" which is a date of  07/17/10 @ 6:09:17pm. The timestamp of the last trade is "1282128968" which is a date of 08/18/10 @ 5:56:08am EST. Now if I take that last timestamp and attach that to the url:

https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch?since=1282128968

the first timestamp of the first trade is "1309108565" which is a date of 06/26/11 @ 12:16:05pm EST. I've also tried using microseconds as suggested by the api but that returns the same thing. The url:

https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch?since=1282128968000000

returns the same thing as above. I've tried other timestamps from the first response and the all point to this 06/25/11 set of trades.

Any idea what I'm doing wrong?

Hmm, that's very strange, it seems to work for dates after 1309108565, but not for the data gap between. I'll have to have another look later when I have some more time, but for now maybe just try from 1309108565 instead. Sorry about that, I may need to contact mtgox and see if they can help.

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
nitrous (OP)
Sr. Member
****
Offline Offline

Activity: 246
Merit: 250


View Profile
April 27, 2013, 10:29:50 AM
 #98

Looks like it's working again. Possible Cloudfare false positive?

Could be. At times of high lag/DDoS, the API can stop working properly, and it can result in undefined behaviour.

Donations: 1Q2EN7TzJ6z82xvmQrRoQoMf3Tf4rMCyvL
MtGox API v2 Unofficial Documentation: https://bitbucket.org/nitrous/mtgox-api/overview
MtGox API v2 Unofficial Documentation Forum Thread: https://bitcointalk.org/index.php?topic=164404.0
advanced
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
April 27, 2013, 10:55:30 AM
 #99

currently you can get the last price of 1 BTC from 4 sources. might be worth comparing them  and plot them for a testing period.this way we could check inconsistencies . Someone up for this?

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
IIzzII
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
April 27, 2013, 01:37:16 PM
Last edit: April 27, 2013, 10:21:18 PM by IIzzII
 #100

Sorry about that, I may need to contact mtgox and see if they can help.

You don't need to apologize! I'll see if I can get it to work from that date on. Thanks so much.

UPDATE: It seems to be working fine as long as you don't provide a timestamp before 1309108565.
Pages: « 1 2 3 4 [5] 6 7 8 9 10 11 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!