Project

bitbns

0.0
The project is in a healthy, maintained state
A Ruby Wrapper around BitBns Crypto Trading APIs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Runtime

~> 1.8.0
 Project Readme

BitBns Ruby Client

Ruby Wrapper Around BitBns APIs.

Installation

  • Add through Gemfile
gem "bitbns"
  • Install through gem cli
gem install bitbns

Usage

api_client = BitBns::Client.new({
  api_key: ENV["BITBNS_PUBLIC_KEY"],
  api_secret_key: ENV["BITBNS_SECRET_KEY"]
})

# Fetch Markets
response = api_client.send_request("fetch_markets")

# Fetch Tickers
response = api_client.send_request("fetch_tickers")

# Fetch OrderBook
response = api_client.send_request("fetch_orderbook", { symbol: "BTCUSDT" })

Roadmap

  • Support Complete Api List

Contributions

Feel free to fork this repo & raise a request against the main branch if you wish to contribute. Some guidelines to contributing are.

  1. Add Plenty of Tests around the feature you add (We Use Minitest)
  2. Run Rubocop before you raise a PR.
  3. Do not implement custom API clients to add new type of requests. Build off of the existing pattern instead.