Coinone
Coinone
Gem is Ruby Language porting from Coinone API, and only support V2.
Installation
Add this line to your application’s Gemfile:
gem 'coinone'
And then execute:
$ bundle
Or install it yourself as:
$ gem install coinone
Usage
First, You set ACCESS_TOKEN
and SECRET_KEY
using figaro or dotenv
Account V2
- ACCOUNT V2 / Account Infomation
user = Coinone::Account.new(access_token: ENV['COINONE_ACCESS_TOKEN'], secret_key: ENV['COINONE_SECRET_KEY'])
user.get_user_info
OAUTH
ORDER V2
PUBLIC
Not Need ACCESS_TOKEN
and SECRET_KEY
- PUBLIC / Currency
currency = Coinone::Public.get_currency
- PUBLIC / Orderbook
orderbook = Coinone::Public.get_orderbook # Default "BTC"
btc_orderbook = Coinone::Public.get_orderbook(currency: "btc") # BTC Orderbook
eth_orderbook = Coinone::Public.get_orderbook(currency: "eth") # ETH Orderbook
etc_orderbook = Coinone::Public.get_orderbook(currency: "etc") # ETC Orderbook
- PUBLIC / Recent Complete Orders
complete_orders = Coinone::Public.get_complete_orders # Default "BTC" and "Hour"
btc_hour_complete_orders = Coinone::Public.get_complete_orders(currency: "btc", period: "hour") # BTC and Hour Complete Orders
btc_day_complete_orders = Coinone::Public.get_complete_orders(currency: "btc", period: "day") # BTC and Day Complete Orders
eth_hour_complete_orders = Coinone::Public.get_complete_orders(currency: "eth", period: "hour") # ETH and Hour Complete Orders
eth_day_complete_orders = Coinone::Public.get_complete_orders(currency: "eth", period: "day") # ETH and Day Complete Orders
etc_hour_complete_orders = Coinone::Public.get_complete_orders(currency: "etc", period: "hour") # ETC and Hour Complete Orders
etc_day_complete_orders = Coinone::Public.get_complete_orders(currency: "etc", period: "day") # ETC and Hour Complete Orders
- PUBLIC / Ticker
ticker = Coinone::Public.get_ticker # Default "BTC"
btc_ticker = Coinone::Public.get_ticker(currency: "btc") # BTC Ticker
etc_ticker = Coinone::Public.get_ticker(currency: "etc") # ETH Ticker
etc_ticker = Coinone::Public.get_ticker(currency: "etc") # ETC Ticker
all_ticker = Coinone::Public.get_ticker(currency: "all") # ALL Ticker
TRANSACTION V2
ToDo
- ACCOUNT V2 / Account Infomation
- ACCOUNT V2 / Balance
- ACCOUNT V2 / Daily Balance
- ACCOUNT V2 / Deposit Address
-
ACCOUNT V2 / Virtual Account
- OAUTH / Delete Access Token
- OAUTH / Get Access Token
- OAUTH / Get Request Token
-
OAUTH / Refresh Access Token
- ORDER V2 / Cancel All Order
- ORDER V2 / Cancel Order
- ORDER V2 / Limit Buy
- ORDER V2 / Limit Sell
- ORDER V2 / Market Buy
- ORDER V2 / Market Sell
- ORDER V2 / My Complete Orders
-
ORDER V2 / My Limit Orders
- PUBLIC / Currency
- PUBLIC / OrderBook
- PUBLIC / Recent Complete Orders
-
PUBLIC / Ticker
- TRANSACTION V2 / 2-Factor Authentication
- TRANSACTION V2 / Coin Transactions History
- TRANSACTION V2 / KRW Transactions History
- TRANSACTION V2 / Send Coin
Full documentation
The Documentation is at Coinone Docs
Change Log
Current Version 0.1.0
This link listing Change Log
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
The gem is available as open source under the terms of the MIT License.