Skip to content

nolim1t/nl-gatecoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gatecoin Ruby Client

Gem Version

Status

This is still under development and not an official library of Gatecoin. Use at your own risk!

Installing

gem build nl-gatecoin.gemspec
gem install nl-gatecoin-X.X.X.gem

The Gemfile method

source 'https://rubygems.org'

gem 'httparty'
gem 'nl-gatecoin'

Example calls

Get HKD Balance

require 'nl-gatecoin'
g = Gatecoin.new
puts g.get_Balance_Balances_HKD

Make a trade

require 'nl-gatecoin'
g = Gatecoin.new
puts g.post_Trade_Orders(code: "BTCHKD", way: "Bid", amount: "0.01", price: "100")

Get Orderbook

require 'nl-gatecoin'
g = Gatecoin.new
puts g.pubget_MarketDepth_BTCHKD