Bitcoin Forum
November 02, 2024, 08:36:31 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox PHP Client for API V2 - v0.1  (Read 1172 times)
BitcoinLeader (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
September 30, 2013, 02:00:50 AM
Last edit: September 30, 2013, 02:29:35 AM by BitcoinLeader
 #1

Hi developers,

Tonight I made a MtGOX Client in PHP for the new MtGox API v2.

There was no client available in PHP yet for the newest version so I decided to make my own.

The PHP Class is open-source so you may freely distribute it and use it for your own websites.

Currently it features the following methods:
* MtGoxClient::getInfo()
* MtGoxClient::orderQuote($type = 'ask', $amount = '100000000')
* MtGoxClient::orderAdd('bid',1000000,1340293 )
* MtGoxClient::orderBuy($amount = 0.0001, $price)
* MtGoxClient::orderSell($amount = 0.0001, $price)
* MtGoxClient::orderCancel('4d484979-6237-4e66-b76d-4e8085a8b8be')
* MtGoxClient::getDepositAddress($description = null, $ipn = null)
* MtGoxClient::generateDepositAddress($account = '')
* MtGoxClient::getOrders()
* MtGoxClient::getTicker()
* MtGoxClient::getCurrency()
* MtGoxClient::setPair('BTCEUR')->getCurrency()
* MtGoxClient::getWalletHistory($currency = 'BTC', $page = 1)

These functions are sufficient to create your own Bitcoin Payment Processor.

I hope it will be useful to you. Feel free to post any feedback.

Donations are also welcome if you want to buy me a beer:
BTC = 1ABoNpvdm1e6MEAJe115bCy394ZsDgi8NJ

I'm happy to be able to contribute to the Bitcoin Community in this way.

Good luck!


kakobrekla
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


Psi laju, karavani prolaze.


View Profile
September 30, 2013, 02:20:16 AM
 #2

I added your link to teh wiki.

BitcoinLeader (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
September 30, 2013, 02:24:58 AM
 #3

I added your link to teh wiki.
Thank you Smiley I appreciate it.

b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
September 30, 2013, 11:40:59 AM
 #4

Very nice. I'm sure this will be useful to many Bitcoin users.
faiza1990
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


★☆★777Coin★☆★


View Profile
September 30, 2013, 12:18:45 PM
 #5

good work you are real helpful for this community

BitcoinLeader (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
September 30, 2013, 07:28:07 PM
 #6

Thank you and I will keep updating it. I am also working on a BTC-E API Client. And after that I will be creating an Arbitration Tool between BTC-E and MtGox.

Pages: [1]
  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!