0.02
Low commit activity in last 3 years
A long-lived project that still receives updates
This is ruby client of bitbankcc api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.0
>= 0

Runtime

 Project Readme

RubyBitbankcc

This is ruby client implementation for Bitbankcc API.

Installation

Add this line to your application's Gemfile:

gem 'ruby_bitbankcc'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby_bitbankcc

Usage

#!/usr/bin/env ruby -Ilib
require 'ruby_bitbankcc'

bbcc = Bitbankcc.new("YOUR API KEY", "YOUR SECRET KEY")
bbcc.read_transactions('btc_jpy')
bbcc.read_ticker('btc_jpy')
bbcc.read_order_books('btc_jpy')
bbcc.read_balance()
bbcc.read_circuit_break_info('btc_jpy')
bbcc.read_active_orders('btc_jpy')
# you can omit last post_only (omit means false)
bbcc.create_order('btc_jpy', "0.001", 130000, 'buy', 'limit', false)
# you can omit last trigger_price (omit means nil)
bbcc.create_order('btc_jpy', "0.001", 130000, 'buy', 'stop_limit', false, 140000)
bbcc.cancel_order('btc_jpy', order_id)
bbcc.read_trade_history('btc_jpy')
bbcc.read_deposit_history('btc')
bbcc.read_withdrawal_account('btc')
bbcc.request_withdrawal('btc', 'ACCOUNT UUID', '0.001', 'OTP TOKEN', 'SMS TOKEN')
bbcc.read_withdrawal_history('btc')
JSON.parse(response.body)