NAME

mg - a command line client for MtGox

SYNOPSIS

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

SEE ALSO

WebService::MtGox, Finance::Bitcoin

AUTHOR

John BEPPU <beppu (at) cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.