<commit_before># Poloniex

A (unofficial) Node.js API client for the [Poloniex][poloniex].

The client supports both public (unauthenticated) and private (authenticated) calls to the [Poloniex API][poloniex-api].

For private calls, the user secret is never exposed to other parts of the program or over the Web. The user key is sent as a header to the API, along with a signed request.

Repo home: [github.com/sigwo/poloniex][repo]


## License

MIT, open source. See LICENSE file.

## Clone from GitHub

    git clone https://github.com/sigwo/poloniex.git
    cd poloniex
    npm install


## Require as a module

In your app, require the module:

    var Poloniex = require('poloniex');

If not installed via NPM, then provide the path to poloniex.js

## Create an instance of the client

If only public API calls are needed, then no API key or secret is required:

    var poloniex = new Poloniex();

Or, to use Poloniex's trading API, [your API key and secret][poloniex-keys] must be provided:

    var poloniex = new Poloniex('API_KEY', 'API_SECRET');


## Make API calls

All [Poloniex API][poloniex-api] methods are supported (with some name changes to avoid naming collisions). All methods require a callback function.

The callback is passed two arguments:

1. An error object, or `null` if the API request was successful
2. A data object, the response from the API

For the most up-to-date API documentation, see [poloniex.com/api][poloniex-api].

[repo]: https://github.com/sigwo/poloniex
[poloniex]: https://poloniex.com
[poloniex-api]: https://poloniex.com/api
[poloniex-keys]: https://poloniex.com/apiKeys
<commit_msg>update repo name and added npm install<commit_after># Poloniex

A (unofficial) Node.js API client for the [Poloniex][poloniex].

The client supports both public (unauthenticated) and private (authenticated) calls to the [Poloniex API][poloniex-api].

For private calls, the user secret is never exposed to other parts of the program or over the Web. The user key is sent as a header to the API, along with a signed request.

Repo home: [github.com/sigwo/node-poloniex][repo]


## License

MIT, open source. See LICENSE file.

## Install from npm

    npm install node-poloniex

## Clone from GitHub

    git clone https://github.com/sigwo/poloniex.git
    cd poloniex
    npm install


## Require as a module

In your app, require the module:

    var Poloniex = require('node-poloniex');

If not installed via NPM, then provide the path to poloniex.js

## Create an instance of the client

If only public API calls are needed, then no API key or secret is required:

    var poloniex = new Poloniex();

Or, to use Poloniex's trading API, [your API key and secret][poloniex-keys] must be provided:

    var poloniex = new Poloniex('API_KEY', 'API_SECRET');


## Make API calls

All [Poloniex API][poloniex-api] methods are supported (with some name changes to avoid naming collisions). All methods require a callback function.

The callback is passed two arguments:

1. An error object, or `null` if the API request was successful
2. A data object, the response from the API

For the most up-to-date API documentation, see [poloniex.com/api][poloniex-api].

[repo]: https://github.com/sigwo/node-poloniex
[poloniex]: https://poloniex.com
[poloniex-api]: https://poloniex.com/api
[poloniex-keys]: https://poloniex.com/apiKeys

{'fraction_non_alphanumeric': 0.0905300774270399, 'fraction_numerical': 0.0011911852293031567, 'mean_word_length': 4.074018126888218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '2574290', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1076, 'n_words': 438}