okex-ruby-api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ec2d0c0ee3a810735420175e6dfa11a25c9b5bf37d9ca9c1f1a06386e22990b
4
+ data.tar.gz: 917e0911819a63fe5c42ab6159fb5617164fd024c9e172d854dc84efef77bbd5
5
+ SHA512:
6
+ metadata.gz: 7d1005119c5a496122e0340dda52abd7f23eb2d059811a82e219fabbcccff8a99c3b8f170d7739ad8baa224e0e800054ce26912d0b8cf3312aa2a544e6e74ec7
7
+ data.tar.gz: 5d139dba46035e69bbdcd02c685c2a9a7b4faa29485e5ab5f3131d4b4d961f700c2bf56c9f5e6d86152bbe1fc1556a1b5be87592a57b8c810f14ca4333f5ea94
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0.1
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-10-11
4
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at benskinner@certoris.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in okex-api.gemspec
6
+ gemspec
7
+
8
+ group :test do
9
+ gem 'simplecov', '< 0.18'
10
+ gem 'httparty', '~> 0.19'
11
+ gem 'openssl', '~> 2.2'
12
+ end
13
+
14
+ gem "rake", "~> 13.0"
15
+ gem "minitest", "~> 5.0"
16
+ gem "rubocop", "~> 1.7"
17
+
18
+ group :development, :test do
19
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
20
+ gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
21
+ gem "pry-rails"
22
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,72 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ okex-ruby-api (0.1.0)
5
+ httparty (~> 0.19)
6
+ openssl (~> 2.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.2)
12
+ byebug (11.1.3)
13
+ coderay (1.1.3)
14
+ docile (1.4.0)
15
+ httparty (0.20.0)
16
+ mime-types (~> 3.0)
17
+ multi_xml (>= 0.5.2)
18
+ json (2.5.1)
19
+ method_source (1.0.0)
20
+ mime-types (3.3.1)
21
+ mime-types-data (~> 3.2015)
22
+ mime-types-data (3.2021.0901)
23
+ minitest (5.14.4)
24
+ multi_xml (0.6.0)
25
+ openssl (2.2.0)
26
+ parallel (1.21.0)
27
+ parser (3.0.2.0)
28
+ ast (~> 2.4.1)
29
+ pry (0.14.1)
30
+ coderay (~> 1.1)
31
+ method_source (~> 1.0)
32
+ pry-rails (0.3.9)
33
+ pry (>= 0.10.4)
34
+ rainbow (3.0.0)
35
+ rake (13.0.6)
36
+ regexp_parser (2.1.1)
37
+ rexml (3.2.5)
38
+ rubocop (1.22.1)
39
+ parallel (~> 1.10)
40
+ parser (>= 3.0.0.0)
41
+ rainbow (>= 2.2.2, < 4.0)
42
+ regexp_parser (>= 1.8, < 3.0)
43
+ rexml
44
+ rubocop-ast (>= 1.12.0, < 2.0)
45
+ ruby-progressbar (~> 1.7)
46
+ unicode-display_width (>= 1.4.0, < 3.0)
47
+ rubocop-ast (1.12.0)
48
+ parser (>= 3.0.1.1)
49
+ ruby-progressbar (1.11.0)
50
+ simplecov (0.17.1)
51
+ docile (~> 1.1)
52
+ json (>= 1.8, < 3)
53
+ simplecov-html (~> 0.10.0)
54
+ simplecov-html (0.10.2)
55
+ unicode-display_width (2.1.0)
56
+
57
+ PLATFORMS
58
+ x86_64-darwin-20
59
+
60
+ DEPENDENCIES
61
+ byebug
62
+ httparty (~> 0.19)
63
+ minitest (~> 5.0)
64
+ okex-ruby-api!
65
+ openssl (~> 2.2)
66
+ pry-rails
67
+ rake (~> 13.0)
68
+ rubocop (~> 1.7)
69
+ simplecov (< 0.18)
70
+
71
+ BUNDLED WITH
72
+ 2.2.15
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 benskinner
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
+ # OKEX::API
2
+
3
+ This gem is a ruby SDK for the OKEX crypto exchange REST API.
4
+
5
+ API docs can be found on the [OKEX developer site](https://www.okex.com/docs/)
6
+
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'okex-ruby-api'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle install
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install okex-ruby-api
23
+
24
+ ## Usage
25
+
26
+ ### Futures
27
+
28
+ Initialize a futures session:
29
+ ```ruby
30
+ futures = OKEX::API::Futures.new
31
+ ```
32
+
33
+ Query for all current futures specs:
34
+ ```ruby
35
+ futures.list
36
+ ```
37
+
38
+ Query for all current futures prices:
39
+ ```ruby
40
+ futures.tickers
41
+ ```
42
+
43
+ Fetch a single current futures price:
44
+ ```ruby
45
+ futures.ticker('BTC-USDT-220325')
46
+ ```
47
+
48
+ ## Development
49
+
50
+ After checking out the repo, run `bin/setup` to install dependencies.
51
+
52
+ You'll then need to add environment variables `ENV['OKEX_KEY']` and `ENV['OKEX_SECRET']`. API keys can be created in your [OKEX settings page](https://www.okex.com/account/users/myApi).
53
+
54
+ Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
55
+
56
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
57
+
58
+ ## Contributing
59
+
60
+ Bug reports and pull requests are welcome on GitHub at https://github.com/benrs44/okex-ruby-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/benrs44/okex-ruby-api/blob/master/CODE_OF_CONDUCT.md).
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 Ftx::Api project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/benrs44/okex-ruby-api/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "okex/api"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ require "pry"
12
+ Pry.start
13
+
14
+ # require "irb"
15
+ # IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/ext/array.rb ADDED
@@ -0,0 +1,11 @@
1
+ class Array
2
+
3
+ def symbolize_keys
4
+ map(&:symbolize_keys)
5
+ end
6
+
7
+ def compact_empty
8
+ delete_if {|i| i.respond_to?(:empty?) ? !!i.empty? : !i }
9
+ end
10
+
11
+ end
data/lib/ext/base.rb ADDED
@@ -0,0 +1,2 @@
1
+ require_relative 'hash'
2
+ require_relative 'array'
data/lib/ext/hash.rb ADDED
@@ -0,0 +1,7 @@
1
+ class Hash
2
+
3
+ def symbolize_keys
4
+ transform_keys(&:to_sym)
5
+ end
6
+
7
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+
5
+ class OKEX::API::Base
6
+
7
+ attr_reader :config, :key, :secret
8
+
9
+ include HTTParty
10
+ base_uri 'https://aws.okex.com/api'
11
+
12
+ def initialize(args = {})
13
+ @config = OKEX::API::Config.new(args.dig(:config))
14
+ @key = args.dig(:key)
15
+ @secret = args.dig(:secret)
16
+ end
17
+
18
+ protected
19
+
20
+ def send_request(method, path, headers, query)
21
+ uuid = SecureRandom.uuid
22
+ print_log(:info, "[API] #{uuid} #{method.upcase} '#{path}' query = #{query}")
23
+
24
+ if method == :get
25
+ body_or_query = :query
26
+ else
27
+ body_or_query = :body
28
+ query = query.to_json
29
+ end
30
+
31
+ begin
32
+ response = self.class.send(
33
+ method,
34
+ path,
35
+ headers: headers,
36
+ timeout: @config.timeout,
37
+ body_or_query.to_sym => query
38
+ )
39
+
40
+ print_log(:info, "[API] #{uuid} response #{response}")
41
+ return parse_response(response)
42
+ rescue => error
43
+ print_log(:error, "[API] #{uuid} raise exception #{error.message}")
44
+ raise error
45
+ end
46
+ end
47
+
48
+ private
49
+
50
+ def parse_response(response)
51
+ response.parsed_response.symbolize_keys
52
+ end
53
+
54
+ def print_log(method, message)
55
+ logger = @config.logger
56
+ if logger
57
+ puts "#{method}: #{message}"
58
+ end
59
+ end
60
+
61
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class OKEX::API::Config
4
+
5
+ attr_accessor :timeout, :logger
6
+
7
+ def initialize(data = nil)
8
+ data ||= {}
9
+ @timeout = data.fetch(:timeout, 30)
10
+ @logger = data.dig(:logger)
11
+ end
12
+
13
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'public'
4
+
5
+ class OKEX::API::Futures < OKEX::API::Public
6
+
7
+ def list
8
+ send_request(:get, '/futures/v3/instruments', {})
9
+ end
10
+
11
+ def tickers
12
+ send_request(:get, '/futures/v3/instruments/ticker', {})
13
+ end
14
+
15
+ def ticker(futures_name)
16
+ send_request(:get, "/futures/v3/instruments/#{futures_name}/ticker", {})
17
+ end
18
+
19
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'base'
4
+
5
+ class OKEX::API::Private < OKEX::API::Base
6
+
7
+ protected
8
+
9
+ def send_request(method, path, query)
10
+ super(method, path, headers(method, path, query), query)
11
+ end
12
+
13
+ def headers(*args)
14
+ {
15
+ # 'OKEX-KEY' => key,
16
+ # 'OKEX-SIGN' => signature(*args),
17
+ # 'OKEX-TS' => ts.to_s,
18
+ 'Content-Type' => 'application/json',
19
+ 'Accepts' => 'application/json',
20
+ }
21
+ end
22
+
23
+ def signature(*args)
24
+ OpenSSL::HMAC.hexdigest(digest, secret, signature_payload(*args))
25
+ end
26
+
27
+ def signature_payload(method, path, query)
28
+ payload = [ts, method.to_s.upcase, "/api", path].compact_empty
29
+
30
+ if method==:post
31
+ payload << query.to_json
32
+ elsif method==:get
33
+ payload << ("?" + URI.encode_www_form(query))
34
+ end unless query.empty?
35
+
36
+ payload.join.encode("UTF-8")
37
+ end
38
+
39
+ def ts
40
+ @ts ||= (Time.now.to_f * 1000).to_i
41
+ end
42
+
43
+ def digest
44
+ @digest ||= OpenSSL::Digest.new('sha256')
45
+ end
46
+
47
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'base'
4
+
5
+ class OKEX::API::Public < OKEX::API::Base
6
+
7
+ protected
8
+
9
+ def send_request(method, path, query)
10
+ super(method, path, {}, query)
11
+ end
12
+
13
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OKEX
4
+ module API
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
data/lib/okex/api.rb ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ require_relative "../ext/base"
3
+ require_relative "api/version"
4
+ require_relative "api/config"
5
+ require_relative "api/futures"
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/okex/api/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "okex-ruby-api"
7
+ spec.version = OKEX::API::VERSION
8
+ spec.authors = ["benrs44"]
9
+ spec.email = ["ben@certoris.com"]
10
+
11
+ spec.summary = "Ruby gem for the OKEX Exchange API"
12
+ spec.description = "Ruby gem for the OKEX Exchange API"
13
+ spec.homepage = "https://github.com/benrs44/okex-ruby-api"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 3.0.1"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/benrs44/okex-ruby-api"
21
+ spec.metadata["changelog_uri"] = "https://github.com/benrs44/okex-ruby-api/blob/master/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ spec.add_dependency "httparty", "~> 0.19"
36
+ spec.add_dependency "openssl", "~> 2.2"
37
+
38
+ # For more information and examples about making a new gem, checkout our
39
+ # guide at: https://bundler.io/guides/creating_gem.html
40
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: okex-ruby-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - benrs44
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-10-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.19'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.19'
27
+ - !ruby/object:Gem::Dependency
28
+ name: openssl
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.2'
41
+ description: Ruby gem for the OKEX Exchange API
42
+ email:
43
+ - ben@certoris.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".rubocop.yml"
49
+ - CHANGELOG.md
50
+ - CODE_OF_CONDUCT.md
51
+ - Gemfile
52
+ - Gemfile.lock
53
+ - LICENSE.txt
54
+ - README.md
55
+ - Rakefile
56
+ - bin/console
57
+ - bin/setup
58
+ - lib/ext/array.rb
59
+ - lib/ext/base.rb
60
+ - lib/ext/hash.rb
61
+ - lib/okex/api.rb
62
+ - lib/okex/api/base.rb
63
+ - lib/okex/api/config.rb
64
+ - lib/okex/api/futures.rb
65
+ - lib/okex/api/private.rb
66
+ - lib/okex/api/public.rb
67
+ - lib/okex/api/version.rb
68
+ - okex-ruby-api.gemspec
69
+ homepage: https://github.com/benrs44/okex-ruby-api
70
+ licenses:
71
+ - MIT
72
+ metadata:
73
+ homepage_uri: https://github.com/benrs44/okex-ruby-api
74
+ source_code_uri: https://github.com/benrs44/okex-ruby-api
75
+ changelog_uri: https://github.com/benrs44/okex-ruby-api/blob/master/CHANGELOG.md
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 3.0.1
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubygems_version: 3.2.15
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: Ruby gem for the OKEX Exchange API
95
+ test_files: []