Code Monkey home page Code Monkey logo

poloniex's Introduction

Poloniex

Gem Version

This gem provides a ruby wrapper to the poloniex.com api: Link

Installation

Add this line to your application's Gemfile:

gem 'poloniex'

And then execute:

$ bundle

Or install it yourself as:

$ gem install poloniex

Usage

All methods provided by Poloniex are class methods, and are of the same name as the api ( except that "return"s have been removed ).

For example, https://www.poloniex.com/public?command=returnTicker is written as Poloniex.ticker

The Poloniex module accepts a setup block for configuration:

Poloniex.setup do | config |
    config.key = 'my api key'
    config.secret = 'my secret token'
end

GET requests ( to /public ) do not need authentication, and therefor do not need Poloniex to be configured.

POST requests ( to /tradingApi ) will need authentication, and you will have to have your own key and secret token.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

poloniex's People

Contributors

lowest0ne avatar ngiger avatar pabigamito avatar ukd1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

poloniex's Issues

Please push new gem version to rubygems

Hi
Thanks a lot for your work!
I like to work with the poloniex gem.
I would appreciate if you could push a new version with the few fixes since 1.0.0 to rubygems.
Thanks in advance
Niklaus

Poloniex.CompleteBalances

Hi - awesome gem. I'm struggling to use the CompleteBalances method though and wondering what I'm missing. When doing a variable = Poloniex.CompleteBalances I get an error that the method is undefined. It's supported by the Poloniex API however:

returnCompleteBalances
Returns all of your balances, including available balance, balance on orders, and the estimated BTC value of your balance. By default, this call is limited to your exchange account; set the "account" POST parameter to "all" to include your margin and lending accounts.

I suspect I'm not meeting the requirement to set the account parameter to 'all' - how do I do this using this gem?

Thanks
Mark

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.