Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
MtGox V1 API library written in PHP
branch: master

This branch is 4 commits ahead of daftspunk:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
README.md
mtgox_api_base.php
mtgox_api_objects.php
mtgox_merchant_api.php
mtgox_private_api.php
mtgox_public_api.php

README.md

php-mtgox-v2

MtGox V2 API library written in PHP

Private API usage example

$api = new MtGox_Private_Api();
$api->set_currency('USD');
$api->set_authentication('ENTER-MTGOX-KEY-HERE', 'ENTER-MTGOX-SECRET-HERE');
$history = $api->get_wallet_history('USD');
print_r($history);

Public API usage example

$api = new MtGox_Public_Api();
$api->set_currency('USD');
$depth = $this->pub_api->get_depth();
$buys = $depth['bids'];
$sells = $depth['asks']; 
print_r($buys);
Something went wrong with that request. Please try again.