PaxfulClient
An API wrapper for Paxful.
Installation
Add this line to your application's Gemfile:
gem 'paxful_client'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install paxful_client
Usage
client = PaxfulClient.new(host: "host", key: "key", secret: "secret")
# Get balance
response = client.get_balance
wallet = response.wallet
wallet.balance
# Get completed trades (page = 1 by default)
response = client.get_completed_trades
# Get completed trades by page
response = client.get_completed_trades(page: page)
# Get response
order_book = response.order_book
order_book.trades
Development
cp spec/config.yml{.sample,}
rspec
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/MarkFChavez/paxful_client-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the PaxfulClient project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.