{"id":15459025,"url":"https://github.com/ntamvl/poloniex_ruby","last_synced_at":"2025-07-05T15:16:39.950Z","repository":{"id":56888464,"uuid":"96982041","full_name":"ntamvl/poloniex_ruby","owner":"ntamvl","description":"Poloniex API for Ruby","archived":false,"fork":false,"pushed_at":"2017-08-29T02:55:38.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T04:14:54.334Z","etag":null,"topics":["bitcoin","bitcoin-api","poloniex-api","poloniex-ruby","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntamvl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-12T08:08:43.000Z","updated_at":"2024-02-21T10:48:15.000Z","dependencies_parsed_at":"2022-08-20T16:00:25.068Z","dependency_job_id":null,"html_url":"https://github.com/ntamvl/poloniex_ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fpoloniex_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fpoloniex_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fpoloniex_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fpoloniex_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntamvl","download_url":"https://codeload.github.com/ntamvl/poloniex_ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154998,"owners_count":21056543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","bitcoin-api","poloniex-api","poloniex-ruby","rails","ruby"],"created_at":"2024-10-01T23:04:09.584Z","updated_at":"2025-04-10T04:14:59.015Z","avatar_url":"https://github.com/ntamvl.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PoloniexRuby\n\nWelcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/poloniex_ruby`. To experiment with that code, run `bin/console` for an interactive prompt.\n\nTODO: Delete this and the text above, and describe your gem\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'poloniex_ruby'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install poloniex_ruby\n\n## Usage\n\nAdd this config to `application.rb`:\n\n```ruby\nPoloniexRuby.setup do | config |\n    config.key = 'my api key'\n    config.secret = 'my secret token'\nend\n```\n\n### returnChartData\n```ruby\nPoloniexRuby.get_all_daily_exchange_rates( currency_pair )\n```\n\n### returnTicker\n```ruby\nPoloniexRuby.ticker\n```\n\n### return24hVolume\n```ruby\nPoloniexRuby.volume\n```\n\n### returnOrderBook\n```ruby\nPoloniexRuby.order_book( currency_pair )\n```\n\n### returnActiveLoans\n```ruby\nPoloniexRuby.active_loans\n```\n\n### returnLendingHistory\n```ruby\nPoloniexRuby.lending_history( start = 0, end_time: Time.now.to_i )\n```\n\n### returnCurrencies\n```ruby\nPoloniexRuby.currencies\n```\n\n### returnCompleteBalances\n```ruby\nPoloniexRuby.complete_balances\n```\n\n### returnOpenOrders\n```ruby\nPoloniexRuby.open_orders( currency_pair )\n```\n\n### returnTradeHistory\n```ruby\nPoloniexRuby.trade_history( currency_pair, start = 0, end_time = Time.now.to_i )\n```\n\n### buy\n```ruby\nPoloniexRuby.buy( currency_pair, rate, amount )\n```\n\n### sell\n```ruby\nPoloniexRuby.sell( currency_pair, rate, amount )\n```\n\n### cancelOrder\n```ruby\nPoloniexRuby.cancel_order( currency_pair, order_number )\n```\n\n### moveOrder\n```ruby\nPoloniexRuby.move_order( order_number, rate )\n```\n\n### widthdraw\n```ruby\nPoloniexRuby.withdraw( currency, amount, address )\n```\n\n### returnAvailableAccountBalances\n```ruby\nPoloniexRuby.available_account_balances\n```\n\n### returnTradableBalances\n```ruby\nPoloniexRuby.tradable_balances\n```\n\n### transferBalance\n```ruby\nPoloniexRuby.transfer_balance( currency, amount, from_ccount, to_account )\n```\n\n### returnMarginAccountSummary\n```ruby\nPoloniexRuby.margin_account_summary\n```\n\n### marginBuy\n```ruby\nPoloniexRuby.margin_buy(currency_pair, rate, amount)\n```\n\n### marginSell\n```ruby\nPoloniexRuby.margin_sell(currency_pair, rate, amount)\n```\n\n### returnDepositAddresses\n```ruby\nPoloniexRuby.deposit_addresses\n```\n\n### generateNewAddress\n```ruby\nPoloniexRuby.generate_new_address( currency )\n```\n\n### returnDepositsWithdrawals\n```ruby\nPoloniexRuby.deposits_withdrawls( start = 0, end_time = Time.now.to_i )\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ntamvl/poloniex_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Tam Nguyen](http://ntam.me/) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntamvl%2Fpoloniex_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntamvl%2Fpoloniex_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntamvl%2Fpoloniex_ruby/lists"}