<commit_before># google-scripts-bitstamp-api

BitStamp API wrapper for google scripts.

## Usage

    // setup object.
    var bs = new blacksun.BitStampAPI("<insert key>", "<insert secret>", "<insert customer id>");

    // Get public Ticker data (Will not send your authentication information)
    Logger.log(bs.getTickerData());

    // Get personal balance data
    Logger.log(bs.getBalanceData());

    // Get personal transactions
    Logger.log(bs.getTransactionData(31536000)) // 1 year of transactions<commit_msg>Updated usage in the README<commit_after># google-scripts-bitstamp-api

BitStamp API wrapper for google scripts.

## Usage

Requires [crypto-js's hmac 256 api](http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha256.js). Before you can use it, you will need to copy the source and crypto's source into your google script project. Once you have it in your project you can use it like so.

    // setup object.
    var bs = new blacksun.BitStampAPI("<insert key>", "<insert secret>", "<insert customer id>");

    // Get public Ticker data (Will not send your authentication information)
    Logger.log(bs.getTickerData());

    // Get personal balance data
    Logger.log(bs.getBalanceData());

    // Get personal transactions
    Logger.log(bs.getTransactionData(31536000)) // 1 year of transactions
{'fraction_non_alphanumeric': 0.11277072442120986, 'fraction_numerical': 0.020164301717699777, 'mean_word_length': 3.7017543859649122, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '3883374', 'n_tokens_mistral': 405, 'n_tokens_neox': 375, 'n_words': 131}