Feel free to fork, modify & redistribute under the MIT license.
Add this line to your application's Gemfile:
gem 'bitso'
More info at: https://bitso.com/api_info
Bitso.setup do |config|
config.key = YOUR_API_KEY
config.secret = YOUR_API_SECRET
config.client_id = YOUR_BITSO_USERNAME
end
If you fail to set your key
or secret
or client_id
a MissingConfigExeception
will be raised.
Returns an array with your open orders.
Bitso.orders.all
Returns an Order
object.
Bitso.orders.sell(amount: 1.0, price: 111)
Returns an Order
object.
Bitso.orders.buy(amount: 1.0, price: 111)
Returns an Array
of UserTransaction
.
Bitso.user_transactions.all
To be continued!*
If you'd like to run the tests you need to set the following environment variables:
export BITSO_KEY=xxx
export BITSO_SECRET=yyy
export BITSO_CLIENT_ID=zzz
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request