Gem Version Build Status download MIT License

Liquid

Crypto exchange (liquid) api client

Installation

Add this line to your application's Gemfile:

gem 'ruby-liquid'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby-liquid

Usage

require 'ruby-liquid'
liquid_client = Liquid::Client.new(token: token, secret: secret)
# get
liquid_client.product
liquid_client.product_id("BCHJPY")
liquid_client.orders
liquid_client.active_orders
liquid_client.balance
liquid_client.limit_buy_price
liquid_client.limit_sell_price
# post
liquid_client.create_order(pair: "BCHJPY", side: 'buy', quantity: 0.01, price: 40000)
# put
liquid_client.cancel_order(id)

Contributing

wip

License

The gem is available as open source under the terms of the MIT License.