<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HamNotEggs</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HamNotEggs"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/HamNotEggs"/>
	<updated>2026-04-13T12:38:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=MtGox/API/HTTP/v2&amp;diff=37371</id>
		<title>MtGox/API/HTTP/v2</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=MtGox/API/HTTP/v2&amp;diff=37371"/>
		<updated>2013-04-27T21:38:20Z</updated>

		<summary type="html">&lt;p&gt;HamNotEggs: /* Documentation */ trying to clear up things a bit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== API Version 2: == &lt;br /&gt;
The V2 API URL is:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;https://data.mtgox.com/api/2/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Documentation ===&lt;br /&gt;
&#039;&#039;&#039;Unofficial&#039;&#039;&#039; 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;
&#039;&#039;&#039;Official&#039;&#039;&#039; 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 &#039;&#039;&#039;URL&#039;&#039;&#039; 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 &#039;&#039;requested path&#039;&#039;  must now be included when you compute your &#039;&#039;&#039;hashed signature (Rest-Sign)&#039;&#039;&#039; for added security.&amp;lt;br&amp;gt;&amp;lt;br&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 &#039;&#039;before&#039;&#039; 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;
=== Explanation of Methods ===&lt;br /&gt;
&#039;&#039;&#039;BTCUSD/money/order/quote&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;@MagicalTux&amp;gt; it estimate the result of running an order at a given price based on market depth&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;BTCUSD/money/ticker_fast&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Solves the problem of ticker lag. (supposedly)&amp;lt;br&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;
http://pastebin.com/aXQfULyq - Remove any proprietary unlock_api_key stuff. You&#039;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&#039;s trader.python] &amp;lt;br&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;/div&gt;</summary>
		<author><name>HamNotEggs</name></author>
	</entry>
</feed>