watchcow 0.0.1

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: 190013ace8f0a7d0ef2025cb766d42a9fdb60594d530e4cd977bf828c0f0af29
4
+ data.tar.gz: 71ca5b0d7f88bd1ef3062e7025ecff773ef52c6bf235016ebf00e1c169bec70a
5
+ SHA512:
6
+ metadata.gz: df69250920b9ac2858655cc00778881b711bd768faf9ac32cee5a7aa0286b1351e38faf499064525f08ab97615ca36b62f5f0cf2c724a05c8376b213b0258239
7
+ data.tar.gz: 13c323b3124bc39e6151c7062862c1a34fbd29413b109df07d3865646352f85d091f8a0d9f60b10a9f763e1e3b3307afb5a98935b6729ff8d0971b0e2271de20
@@ -0,0 +1,18 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 2.6.3
14
+ - name: Run the default task
15
+ run: |
16
+ gem install bundler -v 2.2.6
17
+ bundle install
18
+ bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,11 @@
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
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -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 drine@client.com.au. 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,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in watchcow.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 DrinE Liu
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,43 @@
1
+ # Watchcow
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/watchcow`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'watchcow'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install watchcow
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/watchcow. 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/[USERNAME]/watchcow/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Watchcow project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/watchcow/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,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "watchcow"
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
@@ -0,0 +1,11 @@
1
+ require 'sidekiq'
2
+ require 'watchcow'
3
+
4
+ class NotificationWorker
5
+
6
+ include Sidekiq::Worker
7
+
8
+ def perform
9
+ Watchcow::Client.call
10
+ end
11
+ end
data/lib/watchcow.rb ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+ require 'json'
3
+ require "redis"
4
+ require 'httparty'
5
+ require "pry"
6
+ require 'watchcow/client'
@@ -0,0 +1,13 @@
1
+ module Watchcow
2
+ module ApiSymbol
3
+ class << self
4
+ def contract_list
5
+ %w{btc eth link dot eos trx ada ltc bch xrp bsv etc fil}
6
+ end
7
+
8
+ def dm_types
9
+ %w{nq cq}
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,99 @@
1
+ require 'watchcow/api_symbol'
2
+ require 'watchcow/contract_info'
3
+ require 'watchcow/market_depth'
4
+ require 'active_support'
5
+ require 'watchcow/rate'
6
+
7
+ $redis = Redis.new(url: ENV["REDIS_URL"] || "redis://localhost:6379/0")
8
+
9
+ module Watchcow
10
+ class Client
11
+ class << self
12
+ def call
13
+ while true
14
+ results = Watchcow::Rate.call
15
+ best_cq = results[:cq_best]
16
+ best_nq = results[:nq_best]
17
+ mark! best_cq
18
+ # CQ
19
+ coin = best_cq.dig(:coin)
20
+ best_margin = "annual margin: #{best_cq.dig(:margin)}%"
21
+ days_remained = "days remained: #{best_cq.dig(:days)}"
22
+ expected_margin = "expected margin: #{best_cq.dig(:expected_margin)}%"
23
+ real_margin = "landed margin: #{best_cq.dig(:real_margin_expected)}%"
24
+ puts "---"
25
+ puts "Best current quarter"
26
+ puts "#{coin}, #{best_margin}, #{days_remained}, #{expected_margin}, #{real_margin}"
27
+ # NQ
28
+ coin = best_nq.dig(:coin)
29
+ best_margin = "annual margin: #{best_nq.dig(:margin)}%"
30
+ days_remained = "days remained: #{best_nq.dig(:days)}"
31
+ expected_margin = "expected margin: #{best_nq.dig(:expected_margin)}%"
32
+ real_margin = "landed margin: #{best_nq.dig(:real_margin_expected)}%"
33
+ puts "Best next quarter"
34
+ puts "#{coin}, #{best_margin}, #{days_remained}, #{expected_margin}, #{real_margin}"
35
+ puts "---"
36
+ sleep(30)
37
+ end
38
+ end
39
+
40
+ private
41
+ def mark! coin_offer
42
+ offer_margin = coin_offer.dig(:margin)
43
+ if better_than_best? offer_margin
44
+ key = Time.now.strftime('%m-%d')
45
+ set_redis coin_offer
46
+ if worth_notification?(offer_margin)
47
+ # TODO
48
+ # Trigger SMS notification
49
+ end
50
+ end
51
+ end
52
+
53
+ def set_redis coin_offer
54
+ coin_info_str = "#{coin_offer.dig(:coin)}, #{coin_offer.dig(:margin)}, #{coin_offer.dig(:days)}, record at #{Time.now.strftime('%m-%d %H:%M')}"
55
+ coin_attr = {coin: coin_offer.dig(:coin), margin: coin_offer.dig(:margin), days: coin_offer.dig(:days), record_at: Time.now.strftime('%Y-%m-%d %H:%M')}
56
+ best_margin_of_day = $redis.get('margin_of_day')
57
+ if best_margin.blank? || two_hous_past?
58
+ $redis.set('offer', coin_info_str)
59
+ $redis.set('coin', coin_attr.to_json)
60
+ end
61
+ if best_margin_of_day.blank? || coin_offer.dig(:margin).to_f - best_margin_of_day.to_f > 1
62
+ $redis.set('margin_of_day', coin_offer.dig(:margin))
63
+ end
64
+ end
65
+
66
+ def best_margin
67
+ key = $redis.get('margin_of_day')
68
+ if key.blank?
69
+ nil
70
+ else
71
+ key.to_f
72
+ end
73
+ end
74
+
75
+ def better_than_best? offer_margin
76
+ return true if best_margin.blank?
77
+ return true if best_margin > 30 && offer_margin > best_margin
78
+ end
79
+
80
+ def worth_notification? offer_margin
81
+ return true if best_margin > 30 && (offer_margin - best_margin) > 2
82
+ end
83
+
84
+ def two_hous_past?
85
+ (Time.now - last_time_records).ceil / 3600 >= 2
86
+ end
87
+
88
+ def last_time_records
89
+ key = $redis.get('coin')
90
+ if key.blank?
91
+ puts "redis 'coin' nothing returns"
92
+ return nil
93
+ else
94
+ JSON.parse(key).dig('record_at').to_datetime
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,12 @@
1
+ module Watchcow
2
+ class ContractInfo
3
+ URL = "https://api.hbdm.com/api/v1/contract_contract_info"
4
+
5
+ class << self
6
+ # Get days remain
7
+ def call
8
+ JSON.parse(HTTParty.get(URL))
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,36 @@
1
+ module Watchcow
2
+ class MarketDepth
3
+
4
+ URLDM = "https://api.hbdm.com/market/depth"
5
+ URLPRO = "https://api.huobi.pro/market/depth"
6
+
7
+ class << self
8
+
9
+ # Spot market or Futures market all goes here
10
+ def call(params:, k:)
11
+ url = target_url(params, k)
12
+ HTTParty.get(url)
13
+ end
14
+
15
+ def prepared_params(params, k)
16
+ return '' if params.nil?
17
+ step =
18
+ if k == :future
19
+ "&type=step6"
20
+ else
21
+ "&type=step2"
22
+ end
23
+ arr = []
24
+ params.each_pair do |k,v|
25
+ arr.push "#{k}=#{v}"
26
+ end
27
+ return "#{arr.join('&')}#{step}"
28
+ end
29
+
30
+ def target_url(params, k)
31
+ prefix = k == :future ? URLDM : URLPRO
32
+ "#{prefix}?#{prepared_params(params, k)}"
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,59 @@
1
+ require 'active_support/core_ext'
2
+
3
+ module Watchcow
4
+ class Rate
5
+ class << self
6
+ def call
7
+ results = []
8
+ Watchcow::ApiSymbol.contract_list.each do |coin|
9
+ Watchcow::ApiSymbol.dm_types.each do |t|
10
+ dm_symbol = {symbol: "#{coin}_#{t}"}
11
+ spot_symbol = {symbol: "#{coin}usdt"}
12
+
13
+ begin
14
+ dm_result = Watchcow::MarketDepth.call(params: dm_symbol, k: :future)
15
+ # puts dm_symbol.dig(:symbol)
16
+ spot_result = Watchcow::MarketDepth.call(params: spot_symbol, k: :spot)
17
+ # puts spot_symbol.dig(:symbol)
18
+ rescue
19
+ redo
20
+ end
21
+ dm_result = JSON.parse dm_result
22
+ days_remain = self.days_remain_of(coin, t)
23
+ dm_first_bid = dm_result.dig('tick', 'bids')[0][0].to_f
24
+ spot_first_bid = spot_result.dig('tick', 'bids')[0][0].to_f
25
+
26
+ margin_annual = (((dm_first_bid - spot_first_bid) / spot_first_bid) / days_remain * 365 * 100).round(6)
27
+ margin_expect = margin_annual / 365 * days_remain
28
+
29
+ real_margin_expect = (1.0 / spot_first_bid - 1.0 / dm_first_bid) * spot_first_bid * 100
30
+
31
+ result = {
32
+ coin: "#{coin}_#{t}",
33
+ margin: margin_annual,
34
+ days: days_remain,
35
+ expected_margin: margin_expect,
36
+ real_margin_expected: real_margin_expect
37
+ }
38
+ results.push(result)
39
+ end
40
+ end
41
+ results_cq = results.select{|x| x[:coin].include?('cq')}
42
+ results_nq = results.select{|x| x[:coin].include?('nq')}
43
+ {
44
+ cq_best: results_cq.sort{|x,y| y[:expected_margin] <=> x[:expected_margin]}.first,
45
+ nq_best: results_nq.sort{|x,y| y[:expected_margin] <=> x[:expected_margin]}.first,
46
+ }
47
+ end
48
+
49
+ def days_remain_of symbol, t
50
+ @contract_info ||= Watchcow::ContractInfo.call
51
+ line = @contract_info.dig('data').select do |h|
52
+ mark = t == 'cq' ? 'quarter' : 'next_quarter'
53
+ h.dig('symbol') == symbol.upcase && h.dig('contract_type') == mark
54
+ end.first
55
+ (line.dig("delivery_date").to_s.to_date - Time.now.to_date).to_i
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Watchcow
4
+ VERSION = "0.0.1"
5
+ end
Binary file
data/watchcow.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require_relative "lib/watchcow/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "watchcow"
8
+ spec.version = Watchcow::VERSION
9
+ spec.authors = ["DrinE Liu"]
10
+ spec.email = ["drineliu@gmail.com"]
11
+ spec.summary = "The margin watcher"
12
+ spec.description = "The margin watcher"
13
+ spec.homepage = "https://rubygems.org/gems"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.2.2")
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
23
+ end
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ # Uncomment to register a new dependency of your gem
29
+ # spec.add_dependency "example-gem", "~> 1.0"
30
+
31
+ spec.add_dependency "httparty", '~> 0.14', ">= 0.14.0"
32
+ spec.add_dependency "redis", '~> 3.3', ">= 3.3.5"
33
+ spec.add_dependency "sidekiq", '~> 5.2', ">= 5.2.9"
34
+ spec.add_dependency "pry-rails", "~> 0.3.9"
35
+
36
+ # For more information and examples about making a new gem, checkout our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: watchcow
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - DrinE Liu
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date:
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.14.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.14'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.14.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.14'
33
+ - !ruby/object:Gem::Dependency
34
+ name: redis
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '3.3'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.3.5
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '3.3'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.3.5
53
+ - !ruby/object:Gem::Dependency
54
+ name: sidekiq
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '5.2'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 5.2.9
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '5.2'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 5.2.9
73
+ - !ruby/object:Gem::Dependency
74
+ name: pry-rails
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: 0.3.9
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: 0.3.9
87
+ description: The margin watcher
88
+ email:
89
+ - drineliu@gmail.com
90
+ executables: []
91
+ extensions: []
92
+ extra_rdoc_files: []
93
+ files:
94
+ - ".github/workflows/main.yml"
95
+ - ".gitignore"
96
+ - ".rspec"
97
+ - CODE_OF_CONDUCT.md
98
+ - Gemfile
99
+ - LICENSE.txt
100
+ - README.md
101
+ - Rakefile
102
+ - bin/console
103
+ - bin/setup
104
+ - lib/notification_worker.rb
105
+ - lib/watchcow.rb
106
+ - lib/watchcow/api_symbol.rb
107
+ - lib/watchcow/client.rb
108
+ - lib/watchcow/contract_info.rb
109
+ - lib/watchcow/market_depth.rb
110
+ - lib/watchcow/rate.rb
111
+ - lib/watchcow/version.rb
112
+ - watchcow-0.0.1.gem
113
+ - watchcow.gemspec
114
+ homepage: https://rubygems.org/gems
115
+ licenses:
116
+ - MIT
117
+ metadata:
118
+ homepage_uri: https://rubygems.org/gems
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 2.2.2
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubygems_version: 3.0.8
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: The margin watcher
138
+ test_files: []