coss_api_ruby_wrapper 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7cbc9f414e57f076fdcd586ac10eb289711195cb02b7002bdebc2204f073d2db
4
+ data.tar.gz: c567e689523e862345e0edd008b97f666ba5fb153b66d8ac195af6f27291c859
5
+ SHA512:
6
+ metadata.gz: a974e4c99956b07fe8bcdbf91c86f58ffc5a9424ba317a3f7e02aefaaa42c00c418820faab83f797406ddd37cd0da8bace4b74394eb2b71fed909b100d907d79
7
+ data.tar.gz: dcbc50669537bad7cfb61750d3ae80ce920eb3331ccd32b6d0458d4297bb3d15cf55935dd46323e442712a149d494a4d99b8e9ed2680645afc600c0e46e8cd3c
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ .byebug_history
13
+ .DS_Store
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,35 @@
1
+ require: rubocop-rspec
2
+ AllCops:
3
+ Exclude:
4
+ - 'db/**/*'
5
+ - 'vendor/**/*'
6
+ - 'bin/**/*'
7
+ TargetRubyVersion: 2.5.1
8
+ Rails:
9
+ Enabled: false
10
+
11
+ Metrics/LineLength:
12
+ Enabled: false
13
+ Style/Documentation:
14
+ Enabled: false
15
+ Metrics/MethodLength:
16
+ Enabled: false
17
+ Metrics/ModuleLength:
18
+ Enabled: false
19
+ Metrics/AbcSize:
20
+ Enabled: false
21
+ Metrics/ClassLength:
22
+ Enabled: false
23
+ Metrics/BlockLength:
24
+ Enabled: false
25
+
26
+ Style/ClassAndModuleChildren:
27
+ Enabled: false
28
+ RSpec/MultipleExpectations:
29
+ Enabled: false
30
+ RSpec/ExampleLength:
31
+ Enabled: false
32
+ RSpec/EmptyExampleGroup:
33
+ Enabled: false
34
+ RSpec/MessageSpies:
35
+ EnforcedStyle: receive
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ablebeam@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in coss_api_ruby_wrapper.gemspec
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ coss_api_ruby_wrapper (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ byebug (10.0.2)
10
+ diff-lcs (1.3)
11
+ rake (10.5.0)
12
+ rspec (3.8.0)
13
+ rspec-core (~> 3.8.0)
14
+ rspec-expectations (~> 3.8.0)
15
+ rspec-mocks (~> 3.8.0)
16
+ rspec-core (3.8.0)
17
+ rspec-support (~> 3.8.0)
18
+ rspec-expectations (3.8.2)
19
+ diff-lcs (>= 1.2.0, < 2.0)
20
+ rspec-support (~> 3.8.0)
21
+ rspec-mocks (3.8.0)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.8.0)
24
+ rspec-support (3.8.0)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ bundler (~> 1.17)
31
+ byebug
32
+ coss_api_ruby_wrapper!
33
+ rake (~> 10.0)
34
+ rspec (~> 3.0)
35
+
36
+ BUNDLED WITH
37
+ 1.17.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Viktor Vsk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # CossApiRubyWrapper
2
+
3
+ API wrapper for trading on cryptocurrency exchange [coss.io](https://coss.io/c/reg?r=BDMG5L7K9J)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'coss_api_ruby_wrapper'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install coss_api_ruby_wrapper
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ coss = CossApiRubyWrapper::Exchange.new(public_key: 'YourPublicKey', private_key: 'YourPrivateKey')
25
+ coss.exchange_info # { ... }
26
+ ```
27
+
28
+ ### Exchange Instance Methods
29
+
30
+ |Method |Required Parameters | Optional Parameters| Notes |
31
+ | --------------------- | ------------------ | ------------------ | ------- |
32
+ | place_limit_order | symbol, price, side, amount)| None | |
33
+ | place_market_order | symbol, price, side, amount)| None | |
34
+ | order_details | order_id | None | |
35
+ | open_orders | symbold | limit, page | |
36
+ | completed_orders | symbol | limit, page | |
37
+ | all_orders | symbol, from_order_id | limit | |
38
+ | cancel_order | symbol, order_id | None | |
39
+ | market_price | symbol | None | |
40
+ | pair_depth | symbol | None | |
41
+ | market_summary | symbol | None | Not implemented on COSS side |
42
+ | exchange_info | None | None | |
43
+ | account_balances | None | None | |
44
+ | account_details | None | None | |
45
+
46
+ ### Errors
47
+
48
+ In case if invalid request parameters were supplied, error of class `CossApiRubyWrapper::ParamsValidations::InvalidParameter` will be thrown with text indicating specific parameters.
49
+
50
+ In case if request was sent but response status was not 200 OK, next hash will be provided:
51
+
52
+ ```ruby
53
+ {
54
+ status: 400,
55
+ error: 'Invalid request'
56
+ }
57
+ ```
58
+
59
+ error may contain any string: Error text, JSON object, or HTML page.
60
+
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
65
+
66
+ ## Code of Conduct
67
+
68
+ Everyone interacting in the CossApiRubyWrapper project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ablebeam/coss_api_ruby_wrapper/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'coss_api_ruby_wrapper'
6
+
7
+ require 'irb'
8
+ IRB.start(__FILE__)
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'coss_api_ruby_wrapper/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'coss_api_ruby_wrapper'
9
+ spec.version = CossApiRubyWrapper::VERSION
10
+ spec.authors = ['Viktor Vsk']
11
+ spec.email = ['ablebeam@gmail.com']
12
+
13
+ spec.summary = 'Trading API wrapper for cryptocurrency exchange https://coss.io'
14
+ spec.homepage = 'https://github.com/ablebeam/coss_api_ruby_wrapper'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
18
+ `git ls-files -z`.split("\x0")
19
+ end
20
+ spec.bindir = 'bin'
21
+ spec.executables = []
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.17'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'coss_api_ruby_wrapper/version'
4
+ require 'coss_api_ruby_wrapper/params_validations'
5
+ require 'coss_api_ruby_wrapper/exchange'
6
+ require 'net/http'
7
+ require 'net/https'
8
+ require 'json'
9
+ require 'openssl'
10
+
11
+ module CossApiRubyWrapper
12
+ HOST_URL = 'https://trade.coss.io/c/api/v1'
13
+ ANOTHER_HOST_URL = 'https://engine.coss.io/api/v1'
14
+ end
@@ -0,0 +1,143 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CossApiRubyWrapper
4
+ class Exchange
5
+ attr_accessor :recv_window
6
+
7
+ def initialize(public_key:, private_key:, recv_window: 5000)
8
+ @public_key = public_key
9
+ @private_key = private_key
10
+ @recv_window = recv_window
11
+ end
12
+
13
+ def place_limit_order(symbol, price, side, amount)
14
+ request(:post, '/order/add', order_symbol: symbol.to_s.strip, order_price: price.to_f, order_side: side.to_s.strip, order_size: amount.to_f, type: 'limit')
15
+ end
16
+
17
+ def place_market_order(symbol, price, side, amount)
18
+ request(:post, '/order/add', order_symbol: symbol.to_s.strip, order_price: price.to_f, order_side: side.to_s.strip, order_size: amount.to_f, type: 'market')
19
+ end
20
+
21
+ def order_details(order_id)
22
+ request(:post, '/order/details', order_id: order_id.to_s.strip)
23
+ end
24
+
25
+ def open_orders(symbol, limit = 10, page = 0)
26
+ request(:post, '/order/list/open', limit: limit.to_i, page: page.to_i, symbol: symbol.to_s.strip)
27
+ end
28
+
29
+ def completed_orders(symbol, limit = 10, page = 0)
30
+ request(:post, '/order/list/completed', limit: limit.to_i, page: page.to_i, symbol: symbol.to_s.strip)
31
+ end
32
+
33
+ def all_orders(symbol, from_order_id, limit = 10)
34
+ request(:post, '/order/list/all', symbol: symbol.to_s.strip, from_id: from_order_id.to_s.strip, limit: limit.to_i)
35
+ end
36
+
37
+ def cancel_order(symbol, order_id)
38
+ request(:delete, '/order/cancel', order_id: order_id.to_s.strip, order_symbol: symbol.to_s.strip)
39
+ end
40
+
41
+ # public request
42
+ def market_price(symbol)
43
+ request(:get, '/market-price', symbol: symbol.to_s.strip)
44
+ end
45
+
46
+ # public request
47
+ def pair_depth(symbol)
48
+ request(:get, '/dp', symbol: symbol.to_s.strip)
49
+ end
50
+
51
+ # public request
52
+ def market_summary(symbol)
53
+ request(:get, '/getmarketsummaries', symbol: symbol.to_s.strip)
54
+ end
55
+
56
+ # public request
57
+ def exchange_info
58
+ request(:get, '/exchange-info')
59
+ end
60
+
61
+ def account_balances
62
+ request(:get, '/account/balances')
63
+ end
64
+
65
+ def account_details
66
+ request(:get, '/account/details')
67
+ end
68
+
69
+ private
70
+
71
+ def timestamp
72
+ Time.now.to_i * 1000
73
+ end
74
+
75
+ def request(method, endpoint, params = {})
76
+ validate!(endpoint, params)
77
+
78
+ uri = URI("#{host_url(endpoint)}#{endpoint}")
79
+ http = Net::HTTP.new(uri.host, uri.port)
80
+ http.use_ssl = true
81
+ params = normalized_params(params, endpoint)
82
+
83
+ # GET requests parameters are passed only as URL address params and POST/DELETE requests require JSON parameters
84
+ payload = method == :get ? URI.encode_www_form(params) : params.to_json
85
+ request_path = method == :get ? [uri.path, payload].join('?') : uri.path
86
+
87
+ req = Net::HTTP.const_get(method.capitalize).new(request_path, 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest')
88
+ if private_request?(endpoint)
89
+ req['Authorization'] = @public_key
90
+ req['Signature'] = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), @private_key, payload)
91
+ end
92
+ req.body = payload unless method == :get # Do not set payload inside request body for GET requests - use URL address parameters
93
+ response = http.request(req)
94
+
95
+ # Return error for both: JSON and HTML formats
96
+ unless response.code == '200'
97
+ return { status: response.code, error: (begin
98
+ JSON.parse(response.body)
99
+ rescue StandardError
100
+ response.body
101
+ end) }
102
+ end
103
+
104
+ JSON.parse(response.body)
105
+ end
106
+
107
+ def validate!(endpoint, params)
108
+ # Run request parameters validations
109
+ validations = ParamsValidations.new(endpoint, params)
110
+ validations.run!
111
+ raise CossApiRubyWrapper::ParamsValidations::InvalidParameter, validations.errors.join("\n") unless validations.errors.empty?
112
+ end
113
+
114
+ def normalized_params(params, endpoint)
115
+ if private_request?(endpoint)
116
+ params[:recvWindow] = recv_window.to_i
117
+ params[:timestamp] = timestamp
118
+ end
119
+ # Some COSS endpoints require params to be sorted alphabetically
120
+ Hash[params.sort_by(&:first)]
121
+ end
122
+
123
+ def host_url(endpoint)
124
+ # At this point COSS has different hosts for some endpoints
125
+ case endpoint
126
+ when %r{^\/market_price.*}, %r{^\/dp.*}
127
+ ANOTHER_HOST_URL
128
+ else
129
+ HOST_URL
130
+ end
131
+ end
132
+
133
+ def private_request?(endpoint)
134
+ # Public requqests are not required to be signed with public/private keys
135
+ case endpoint
136
+ when %r{^\/market-price.*}, %r{^\/dp.*/, /^\/exchange-info.*}, %r{^\/getmarketsummaries.*}
137
+ false
138
+ else
139
+ true
140
+ end
141
+ end
142
+ end
143
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CossApiRubyWrapper
4
+ class ParamsValidations
5
+ class InvalidParameter < StandardError; end
6
+ attr_reader :errors, :endpoint, :params
7
+
8
+ def initialize(endpoint, params)
9
+ @endpoint = endpoint
10
+ @params = params
11
+ @errors = []
12
+ end
13
+
14
+ def run!
15
+ case endpoint
16
+ when '/order/add'
17
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:order_symbol] =~ /\w+_\w+/
18
+ @errors << '"price" parameter should be convertable to float and be greater than zero' if params[:order_price] <= 0
19
+ @errors << '"side" parameter should be either BUY or SELL string' unless %w[BUY SELL].include?(params[:order_side])
20
+ @errors << '"amount" parameter should be convertable to float and be greater than zero' if params[:order_size] <= 0
21
+ when '/order/cancel'
22
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:order_symbol] =~ /\w+_\w+/
23
+ @errors << '"order_id" parameter should be a non-empty string' if params[:order_id].empty?
24
+ when '/order/details'
25
+ @errors << '"order_id" parameter should be a non-empty string' if params[:order_id].empty?
26
+ when '/order/list/open'
27
+ @errors << '"limit" parameter should be a positive integer' if params[:limit] <= 0
28
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:symbol] =~ /\w+_\w+/
29
+ when '/order/list/completed'
30
+ @errors << '"limit" parameter should be a positive integer' if params[:limit] <= 0
31
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:symbol] =~ /\w+_\w+/
32
+ when '/order/list/all'
33
+ @errors << '"limit" parameter should be a positive integer' if params[:limit] <= 0
34
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:symbol] =~ /\w+_\w+/
35
+ @errors << '"from_order_id" parameter should be a non-empty string' if params[:from_order_id].empty?
36
+ when '/market-price'
37
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:symbol] =~ /\w+_\w+/
38
+ when '/dp'
39
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:symbol] =~ /\w+_\w+/
40
+ when '/getmarketsummaries'
41
+ @errors << '"symbol" parameter should be a string representing trading pair, for example: "COSS_ETH"' unless params[:symbol] =~ /\w+_\w+/
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CossApiRubyWrapper
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe CossApiRubyWrapper do
4
+ it 'has a version number' do
5
+ expect(CossApiRubyWrapper::VERSION).not_to be nil
6
+ end
7
+
8
+ it 'does something useful' do
9
+ expect(false).to eq(true)
10
+ end
11
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/setup'
4
+ require 'coss_api_ruby_wrapper'
5
+
6
+ RSpec.configure do |config|
7
+ # Enable flags like --only-failures and --next-failure
8
+ config.example_status_persistence_file_path = '.rspec_status'
9
+
10
+ # Disable RSpec exposing methods globally on `Module` and `main`
11
+ config.disable_monkey_patching!
12
+
13
+ config.expect_with :rspec do |c|
14
+ c.syntax = :expect
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: coss_api_ruby_wrapper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Viktor Vsk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - ablebeam@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - Gemfile.lock
69
+ - LICENSE.txt
70
+ - README.md
71
+ - Rakefile
72
+ - bin/console
73
+ - coss_api_ruby_wrapper.gemspec
74
+ - lib/coss_api_ruby_wrapper.rb
75
+ - lib/coss_api_ruby_wrapper/exchange.rb
76
+ - lib/coss_api_ruby_wrapper/params_validations.rb
77
+ - lib/coss_api_ruby_wrapper/version.rb
78
+ - spec/coss_api_ruby_wrapper_spec.rb
79
+ - spec/spec_helper.rb
80
+ homepage: https://github.com/ablebeam/coss_api_ruby_wrapper
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubygems_version: 3.0.0
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: Trading API wrapper for cryptocurrency exchange https://coss.io
103
+ test_files: []