<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=MtGox%2FAPI%2FHTTP%2Fv2</id>
	<title>MtGox/API/HTTP/v2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=MtGox%2FAPI%2FHTTP%2Fv2"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=MtGox/API/HTTP/v2&amp;action=history"/>
	<updated>2026-05-15T09:16:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=MtGox/API/HTTP/v2&amp;diff=5973&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;== API Version 2: ==  The V2 API URL is:  '''https://data.mtgox.com/api/2/'''  === Documentation === '''Unofficial''' documentation (So far the best we have) is provided at :...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=MtGox/API/HTTP/v2&amp;diff=5973&amp;oldid=prev"/>
		<updated>2019-06-17T05:20:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== API Version 2: ==  The V2 API URL is:  &amp;#039;&amp;#039;&amp;#039;https://data.mtgox.com/api/2/&amp;#039;&amp;#039;&amp;#039;  === Documentation === &amp;#039;&amp;#039;&amp;#039;Unofficial&amp;#039;&amp;#039;&amp;#039; documentation (So far the best we have) is provided at :...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== API Version 2: == &lt;br /&gt;
The V2 API URL is:&lt;br /&gt;
&lt;br /&gt;
'''https://data.mtgox.com/api/2/'''&lt;br /&gt;
&lt;br /&gt;
=== Documentation ===&lt;br /&gt;
'''Unofficial''' documentation (So far the best we have) is provided at : https://bitbucket.org/nitrous/mtgox-api/overview (The bitcointalk forum link is: https://bitcointalk.org/index.php?topic=164404.0 )&lt;br /&gt;
&lt;br /&gt;
'''Official''' docs are on: https://github.com/MtGox/mtgox-doc&lt;br /&gt;
&lt;br /&gt;
===== Differences between v1 and v2: ===== &lt;br /&gt;
&lt;br /&gt;
* The '''URL''' is now something along the lines of BTCUSD/money/order/add instead of BTCUSD/private/order/add in api1. All current known methods are found in the money category.&lt;br /&gt;
* The ''requested path''  must now be included when you compute your '''hashed signature (Rest-Sign)''' for added security.&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;br&amp;amp;gt; In version 1, Rest-Sign is created through base64-encoding the 256-digest HMAC hashing of your post data (which of course must include your nonce) with your API secret, previously base64 decoded. Now in version 2,  you must simply add ''before'' your post data the relative path you are requesting (anything after the /api/2/ base, ie: BTCUSD/money/ticker), concatenated with a NUL character (ASCII code 0). So the signature is now made starting from your relative path + NUL character + post data (which must include your nonce!).&lt;br /&gt;
&lt;br /&gt;
* fast ticker&lt;br /&gt;
 http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
 &lt;br /&gt;
 http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast?pretty&lt;br /&gt;
&lt;br /&gt;
=== Explanation of Methods ===&lt;br /&gt;
'''BTCUSD/money/order/quote''' &amp;amp;lt;br&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;@MagicalTux&amp;amp;gt; it estimate the result of running an order at a given price based on market depth&amp;amp;lt;br&amp;amp;gt;&lt;br /&gt;
'''BTCUSD/money/ticker_fast'''&amp;amp;lt;br&amp;amp;gt;&lt;br /&gt;
Solves the problem of ticker lag. (supposedly)&amp;amp;lt;br&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Code Examples: ===&lt;br /&gt;
&lt;br /&gt;
====Java:====&lt;br /&gt;
&lt;br /&gt;
https://github.com/adv0r/mtgox-api-v2-java Java lib for API V2, under development&lt;br /&gt;
&lt;br /&gt;
====C# :====&lt;br /&gt;
&lt;br /&gt;
https://bitbucket.org/pipe2grep/cryptocoinxchange C# lib for V2 API and socketIO&lt;br /&gt;
&lt;br /&gt;
====Python v 2.7.3====&lt;br /&gt;
&lt;br /&gt;
https://bitbucket.org/karlb/gox2 -  A minimalistic API wrapper &amp;amp;lt;br&amp;amp;gt;&lt;br /&gt;
http://pastebin.com/aXQfULyq - Remove any proprietary unlock_api_key stuff. You'll need [https://github.com/genbtc/trader.python/blob/master/lib/json_ascii.py json_ascii] also. Works on API 0/1/2. Link to git-repo: [https://github.com/genbtc/trader.python/ genbtc's trader.python] &amp;amp;lt;br&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Perl====&lt;br /&gt;
https://en.bitcoin.it/wiki/MtGox/API/HTTP#PHP    The Perl example on the main page is compatible with v2&lt;br /&gt;
&lt;br /&gt;
====PHP====&lt;br /&gt;
https://github.com/pathaksa/MtGox-PHP-API-V2&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&lt;br /&gt;
[http://bitcoin.it/ http://bitcoin.it/]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
==See Also on BitcoinWiki==&lt;br /&gt;
* [[Customizable Basic Income]]&lt;br /&gt;
* [[MedicalChain]]&lt;br /&gt;
* [[BTCBear]]&lt;br /&gt;
* [[Tourist Review]]&lt;br /&gt;
* [[PM7]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>