Bitcoin Forum
August 31, 2016, 04:01:52 PM *
News: Latest stable version of Bitcoin Core: 0.13.0 (New!) [Torrent]. Make sure you verify it.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [ANNOUNCE] WebService::MtGox - a Perl wrapper around MtGox's API  (Read 2130 times)
beppu
Newbie
*
Offline Offline

Activity: 4


View Profile
May 27, 2011, 05:06:51 AM
 #1

WebService::MtGox

https://github.com/beppu/webservice-mtgox

http://search.cpan.org/~beppu/WebService-MtGox/

If you want to use MtGox's Bitcoin Trading API via Perl, this is the module for you.

 Smiley
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
1472659312
Hero Member
*
Offline Offline

Posts: 1472659312

View Profile Personal Message (Offline)

Ignore
1472659312
Reply with quote  #2

1472659312
Report to moderator
beppu
Newbie
*
Offline Offline

Activity: 4


View Profile
June 09, 2011, 12:02:27 PM
 #2

I've released version 0.05 of WebService::MtGox.

This release may be of interest to the wider (non-Perl-using) community, because it comes with a command line client called mg that lets you play with MtGox's API from the comfort of your favorite $SHELL.

Code:
Usage:
      mg <COMMAND> [OPTION]...

Options:
    ticker
      Get ticker.

    depth
      Get trading depth.

    trades
      Get recent trades.

    balance
      Get your balance.

    buy
      Buy some bitcoins.

      --amount=NUMBER
      --price=NUMBER

    sell
      Sell some bitcoins.

      --amount=NUMBER
      --price=NUMBER

    ls
    list
      List your orders.

    cancel
      Cancel an order.

      --oid=ID
          The order id.

      --type=NUMBER
          The type may be 1 for buy or 2 for sell.

    send
      Send bitcoins from your MtGox account to a bitcoin address.

      --amount=NUMBER
      --address=BITCOIN_ADDRESS

    usd [BITCOINS]
      Display the total value of your balance in US Dollars. You can also
      use this to find the value of an arbitrary amount of bitcoins in US
      Dollars.

        # How much is 1000 btc worth in US Dollars?
        mg usd 1000

    btc [USD]
      Display the total value of your balance in bitcoins. You can also use
      this to find the value of an arbitrary amount of US Dollars in
      bitcoins.

        # How much is $400 worth in bitcoins?
        mg btc 400


If you are new to Perl, I suggest using cpanm to install this module.

Code:
cpanm WebService::MtGox

Also, check out the future of CPAN:

http://beta.metacpan.org/module/WebService::MtGox
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!