<commit_before># Ruby wrapper for the Mt. Gox Trade API

Mt. Gox allows you to trade US Dollars (USD) for Bitcoins (BTC) or Bitcoins for
US Dollars.

Installation
------------
    gem install mtgox

Alias
-----
After installing the gem, you can get the current price for 1 BTC in USD by
typing `btc` in your bash shell simply by setting the following alias:

    alias btc='ruby -r rubygems -r mtgox -e "puts MtGox.ticker.last"'

Documentation
-------------
[http://rdoc.info/gems/mtgox](http://rdoc.info/gems/mtgox)

Donate
------
If you find this library useful, please consider sending a donation to the
author, which you can do using the following script:

    require 'rubygems'
    require 'mtgox'

    # Certain methods require authentication
    MtGox.configure do |config|
      config.name = YOUR_MTGOX_USERNAME
      config.pass = <PASSWORD>GO<PASSWORD>
    end

    MtGox.withdraw 1.0, "<PASSWORD>"

Continuous Integration
----------------------
[![Build Status](https://secure.travis-ci.org/sferik/mtgox.png)](http://travis-ci.org/sferik/mtgox)

Usage Examples
--------------
    require 'rubygems'
    require 'mtgox'

    # Fetch the latest price for 1 BTC in USD
    puts MtGox.ticker.last

    # Fetch open asks
    puts MtGox.asks

    # Fetch open bids
    puts MtGox.bids

    # Fetch the last 48 hours worth of trades (takes a minute)
    puts MtGox.trades

    # Certain methods require authentication
    MtGox.configure do |config|
      config.name = YOUR_MTGOX_USERNAME
      config.pass = <PASSWORD>
    end
<commit_msg>Fix documentation to reflect username/password changed introduced in commit #7fb22c5d.<commit_after># Ruby wrapper for the Mt. Gox Trade API

Mt. Gox allows you to trade US Dollars (USD) for Bitcoins (BTC) or Bitcoins for
US Dollars.

Installation
------------
    gem install mtgox

Alias
-----
After installing the gem, you can get the current price for 1 BTC in USD by
typing `btc` in your bash shell simply by setting the following alias:

    alias btc='ruby -r rubygems -r mtgox -e "puts MtGox.ticker.last"'

Documentation
-------------
[http://rdoc.info/gems/mtgox](http://rdoc.info/gems/mtgox)

Donate
------
If you find this library useful, please consider sending a donation to the
author, which you can do using the following script:

    require 'rubygems'
    require 'mtgox'

    # Certain methods require authentication
    MtGox.configure do |config|
      config.username = YOUR_MTGOX_USERNAME
      config.password = <PASSWORD>
    end

    MtGox.withdraw 1.0, "1KxSo9bGBfPVFEtWNLpnUK1bfLNNT4q31L"

Continuous Integration
----------------------
[![Build Status](https://secure.travis-ci.org/sferik/mtgox.png)](http://travis-ci.org/sferik/mtgox)

Usage Examples
--------------
    require 'rubygems'
    require 'mtgox'

    # Fetch the latest price for 1 BTC in USD
    puts MtGox.ticker.last

    # Fetch open asks
    puts MtGox.asks

    # Fetch open bids
    puts MtGox.bids

    # Fetch the last 48 hours worth of trades (takes a minute)
    puts MtGox.trades

    # Certain methods require authentication
    MtGox.configure do |config|
      config.username = YOUR_MTGOX_USERNAME
      config.password = <PASSWORD>
    end

{'fraction_non_alphanumeric': 0.11799687010954617, 'fraction_numerical': 0.006885758998435055, 'mean_word_length': 2.7076566125290022, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1100893', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1025, 'n_words': 345}