Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nolim1t/nl-gatecoin
Rubygem for Gatecoin API
https://github.com/nolim1t/nl-gatecoin
bitcoin exchange gatecoin gatecoin-api
Last synced: 2 days ago
JSON representation
Rubygem for Gatecoin API
- Host: GitHub
- URL: https://github.com/nolim1t/nl-gatecoin
- Owner: nolim1t
- Created: 2016-03-03T05:11:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T22:01:31.000Z (about 8 years ago)
- Last Synced: 2024-10-18T00:19:56.051Z (about 1 month ago)
- Topics: bitcoin, exchange, gatecoin, gatecoin-api
- Language: Ruby
- Homepage: https://rubygems.org/gems/nl-gatecoin
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gatecoin Ruby Client
[![Gem Version](https://badge.fury.io/rb/nl-gatecoin.svg)](https://badge.fury.io/rb/nl-gatecoin)## Status
This is still under development and not an official library of Gatecoin. Use at your own risk!## Installing
```bash
gem build nl-gatecoin.gemspec
gem install nl-gatecoin-X.X.X.gem
```### The Gemfile method
```ruby
source 'https://rubygems.org'gem 'httparty'
gem 'nl-gatecoin'
```## Example calls
### Get HKD Balance
```ruby
require 'nl-gatecoin'
g = Gatecoin.new
puts g.get_Balance_Balances_HKD
```### Make a trade
```ruby
require 'nl-gatecoin'
g = Gatecoin.new
puts g.post_Trade_Orders(code: "BTCHKD", way: "Bid", amount: "0.01", price: "100")
```
### Get Orderbook```ruby
require 'nl-gatecoin'
g = Gatecoin.new
puts g.pubget_MarketDepth_BTCHKD
```