livermore 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: be3597babc7fa82bb8e3641ff6d71382b3418085a39c62bfe8a3ff70c46bf204
4
+ data.tar.gz: 79fdfc9626a3ac7584fc0544153bb56bd9e43004002a4002ea8c4fa94f89eea5
5
+ SHA512:
6
+ metadata.gz: 2adad4dc8d59815204f15f0c5bf063ec1ed80a3bddacbd8839a4c3d6405a4fe677a7f0e0914e97c8791e26b1219bac8eea69d5bf204bb8fc3b880a1e26141ba7
7
+ data.tar.gz: 953f945e2018f0159e22c2e3a37a042ae0746d331f0083572b3dd733835786a6662defd6f354658cf0927f9a9a0b629b44c4075f33f2396906d1871def7b2005
@@ -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,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.1
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in livermore.gemspec
6
+ gemspec
@@ -0,0 +1,49 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ livermore (0.0.0)
5
+ coin_falcon (~> 0.0.1)
6
+ thor (~> 0.20.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ byebug (10.0.0)
12
+ coderay (1.1.2)
13
+ coin_falcon (0.0.1)
14
+ diff-lcs (1.3)
15
+ method_source (0.9.0)
16
+ pry (0.11.3)
17
+ coderay (~> 1.1.0)
18
+ method_source (~> 0.9.0)
19
+ pry-byebug (3.6.0)
20
+ byebug (~> 10.0)
21
+ pry (~> 0.10)
22
+ rake (10.5.0)
23
+ rspec (3.7.0)
24
+ rspec-core (~> 3.7.0)
25
+ rspec-expectations (~> 3.7.0)
26
+ rspec-mocks (~> 3.7.0)
27
+ rspec-core (3.7.1)
28
+ rspec-support (~> 3.7.0)
29
+ rspec-expectations (3.7.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.7.0)
32
+ rspec-mocks (3.7.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.7.0)
35
+ rspec-support (3.7.1)
36
+ thor (0.20.0)
37
+
38
+ PLATFORMS
39
+ ruby
40
+
41
+ DEPENDENCIES
42
+ bundler (~> 1.16)
43
+ livermore!
44
+ pry-byebug
45
+ rake (~> 10.0)
46
+ rspec (~> 3.0)
47
+
48
+ BUNDLED WITH
49
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Tony Rom
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.
@@ -0,0 +1,51 @@
1
+ # Livermore
2
+
3
+ Trading Bot
4
+
5
+ ## Installation
6
+
7
+ ```ruby
8
+ gem install livermore
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Set up environment variables:
14
+
15
+ ```bash
16
+ export CF_KEY='your-key-here'
17
+ export CF_SECRET='your-secret-here'
18
+ ```
19
+
20
+ Configure Livermore `/path/to/livermore/config.yml.erb`:
21
+
22
+ ```yml
23
+ :exchange:
24
+ :name: :coin_falcon
25
+ :key: <%= ENV['CF_KEY'] %>
26
+ :secret: <%= ENV['CF_SECRET'] %>
27
+
28
+ :market: ETH-BTC
29
+ :base_fund: 1
30
+ :quote_fund: 0.5
31
+
32
+ :strategy:
33
+ :name: :simple
34
+ # :path: /path/to/strategy_config.yml
35
+ ```
36
+
37
+ Configure strategy `/path/to/livermore/strategies/your_strategy.yml`:
38
+
39
+ ```yml
40
+ :ask_amount: 0.01
41
+ :bid_amount: 0.01
42
+ :ask_delta: 0.5
43
+ :bid_delta: 0.5
44
+ :tact: 1
45
+ ```
46
+
47
+ Run Livermore:
48
+
49
+ ```ruby
50
+ livermore trade
51
+ ```
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "livermore"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'livermore'
4
+
5
+ trap('INT') { puts 'Shutting down.'; Livermore::Bot.new.cancel_all; exit 130 }
6
+
7
+ Livermore::CLI.start
@@ -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,12 @@
1
+ :exchange:
2
+ :name: :coin_falcon
3
+ :key: <%= ENV['CF_KEY'] %>
4
+ :secret: <%= ENV['CF_SECRET'] %>
5
+
6
+ :market: ETH-BTC
7
+ :base_fund: 1
8
+ :quote_fund: 0.5
9
+
10
+ :strategy:
11
+ :name: :simple
12
+ # :path: /path/to/strategy_config.yml
@@ -0,0 +1,24 @@
1
+ require 'erb'
2
+ require 'yaml'
3
+ require 'livermore/monkey_patch'
4
+
5
+ require 'coin_falcon'
6
+ require 'thor'
7
+
8
+ require 'livermore/cf_response'
9
+ require 'livermore/cf_order'
10
+ require 'livermore/clients'
11
+
12
+ require 'livermore/order'
13
+
14
+ require 'livermore/strategies/abstract_strategy'
15
+ require 'livermore/strategies/simple_strategy'
16
+ require 'livermore/strategies'
17
+
18
+ require 'livermore/bot'
19
+ require 'livermore/cli'
20
+
21
+ require 'livermore/version'
22
+
23
+ module Livermore
24
+ end
@@ -0,0 +1,106 @@
1
+ module Livermore
2
+ class Bot
3
+ CONFIG_PATH = 'config.yml.erb'.freeze
4
+
5
+ attr_reader :market, :best_ask, :best_bid, :base_fund, :quote_fund
6
+ attr_accessor :ask, :bid, :open_orders, :orders_to_create, :orders_to_cancel
7
+
8
+ def initialize(config_path = CONFIG_PATH)
9
+ config = load_config(config_path)
10
+
11
+ initialize_exchange_client(config)
12
+ initialize_instance_variables(config)
13
+ initialize_strategy(config)
14
+ end
15
+
16
+ def trade
17
+ @strategy.trade
18
+ end
19
+
20
+ def fetch_top_tier
21
+ response = orderbook(@market)
22
+
23
+ @best_ask = response.best_ask
24
+ @best_bid = response.best_bid
25
+ end
26
+
27
+ def fetch_orders
28
+ response = my_orders(market: @market)
29
+
30
+ @open_orders = response.open_orders
31
+ end
32
+
33
+ def cancel_orders
34
+ orders_to_cancel.each do |order|
35
+ response = cancel_order(order.id)
36
+
37
+ update_fund(:+, order) if response.code == 200
38
+ end
39
+ end
40
+
41
+ def create_orders
42
+ orders_to_create.each do |order|
43
+ response = create_order(@order_klass.new(order).as_json)
44
+
45
+ update_fund(:-, order) if response.code == 201
46
+ end
47
+
48
+ orders_to_create.clear
49
+ end
50
+
51
+ def cancel_all
52
+ fetch_orders
53
+ @orders_to_cancel = open_orders
54
+ cancel_orders
55
+ end
56
+
57
+ def update_fund(method, order)
58
+ case order.type
59
+ when Order::ASK
60
+ @base_fund = @base_fund.send(method, order.amount)
61
+ when Order::BID
62
+ @quote_fund = @quote_fund.send(method, order.amount * order.price)
63
+ end
64
+ end
65
+
66
+ def method_missing(method, *args)
67
+ if @client.respond_to?(method)
68
+ @response_klass.new(@client.send(method, *args))
69
+ else
70
+ super
71
+ end
72
+ end
73
+
74
+ private
75
+
76
+ def load_config(path)
77
+ template = ERB.new(File.read(path))
78
+
79
+ YAML.load(template.result)
80
+ end
81
+
82
+ def initialize_exchange_client(config)
83
+ name = config[:exchange][:name]
84
+ key = config[:exchange][:key]
85
+ secret = config[:exchange][:secret]
86
+
87
+ @client = CLIENTS[name][:client].new(key, secret)
88
+ @response_klass = CLIENTS[name][:response]
89
+ @order_klass = CLIENTS[name][:order]
90
+ end
91
+
92
+ def initialize_instance_variables(config)
93
+ @market = config[:market]
94
+ @base_fund = config[:base_fund]
95
+ @quote_fund = config[:quote_fund]
96
+ @orders_to_create = []
97
+ end
98
+
99
+ def initialize_strategy(config)
100
+ name = config[:strategy][:name]
101
+ path = config[:strategy][:path]
102
+
103
+ @strategy = STRATEGIES[name].new(self, path)
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,26 @@
1
+ module Livermore
2
+ class CFOrder
3
+ def initialize(order)
4
+ @order = order
5
+ end
6
+
7
+ def as_json
8
+ {
9
+ market: @order.market,
10
+ operation_type: @order.operation,
11
+ order_type: @order.type,
12
+ size: @order.amount,
13
+ price: round(@order.price)
14
+ }
15
+ end
16
+
17
+ private
18
+
19
+ def round(price)
20
+ case @order.type
21
+ when Order::ASK then price.ceil 5
22
+ when Order::BID then price.floor 5
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,46 @@
1
+ module Livermore
2
+ class CFResponse
3
+ def initialize(response)
4
+ @response = response
5
+ end
6
+
7
+ def best_ask
8
+ ask = @response.body['data']['asks'].first
9
+
10
+ Order.new(fetch_args(ask).merge(type: Order::ASK))
11
+ end
12
+
13
+ def best_bid
14
+ bid = @response.body['data']['bids'].first
15
+
16
+ Order.new(fetch_args(bid).merge(type: Order::BID))
17
+ end
18
+
19
+ def open_orders
20
+ open_orders = @response.body['data'].select do |order|
21
+ order['status'] =~ /\Aopen|partially_filled\z/
22
+ end
23
+
24
+ open_orders.map { |order| Order.new(fetch_args(order)) }
25
+ end
26
+
27
+ def code
28
+ @response.code
29
+ end
30
+
31
+ def body
32
+ @response.body
33
+ end
34
+
35
+ def fetch_args(order)
36
+ {
37
+ market: order['market_name'],
38
+ id: order['id'],
39
+ price: order['price'].to_f,
40
+ amount: order['size'].to_f,
41
+ type: order['order_type']&.to_sym,
42
+ operation: order['operation_type']&.to_sym
43
+ }
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,14 @@
1
+ module Livermore
2
+ class CLI < Thor
3
+ desc :trade, 'Trades using the Simple strategy by default'
4
+ def trade
5
+ bot.trade
6
+ end
7
+
8
+ private
9
+
10
+ def bot
11
+ @bot ||= Livermore::Bot.new
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ module Livermore
2
+ CLIENTS = {
3
+ coin_falcon: {
4
+ client: ::CoinFalcon::Client,
5
+ response: CFResponse,
6
+ order: CFOrder
7
+ }
8
+ }.freeze
9
+ end
@@ -0,0 +1,17 @@
1
+ class String
2
+ def red
3
+ "\e[31m#{self}\e[0m"
4
+ end
5
+
6
+ def green
7
+ "\e[32m#{self}\e[0m"
8
+ end
9
+
10
+ def yellow
11
+ "\e[33m#{self}\e[0m"
12
+ end
13
+
14
+ def colorize
15
+ self.yellow
16
+ end
17
+ end
@@ -0,0 +1,33 @@
1
+ module Livermore
2
+ class Order
3
+ ASK = :sell
4
+ BID = :buy
5
+ LIMIT_ORDER = :limit_order
6
+
7
+ attr_reader :market, :id, :price, :amount, :amount_filled, :status, :type, :operation, :created_at
8
+
9
+ def initialize(market:, id: nil, price:, amount: 0, type:, operation: nil)
10
+ @market = market
11
+ @id = id
12
+ @price = price
13
+ @amount = amount
14
+ @type = type
15
+ @operation = operation
16
+ end
17
+
18
+ def operation
19
+ @operation || LIMIT_ORDER
20
+ end
21
+
22
+ def to_s
23
+ format '{ price: %.7f, amount: %.7f }', price, amount
24
+ end
25
+
26
+ def colorize
27
+ case type
28
+ when ASK then to_s.red
29
+ when BID then to_s.green
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,5 @@
1
+ module Livermore
2
+ STRATEGIES = {
3
+ simple: SimpleStrategy
4
+ }.freeze
5
+ end
@@ -0,0 +1,46 @@
1
+ module Livermore
2
+ class AbstractStrategy
3
+ TICK_TIME = 0.03
4
+
5
+ attr_reader :context, :config
6
+
7
+ def initialize(context, config_path)
8
+ @context = context
9
+ @config = YAML.load_file(config_path || default_config_path)
10
+ end
11
+
12
+ def trade
13
+ raise 'Abstract method called'
14
+ end
15
+
16
+ def method_missing(method, *args)
17
+ if @context.respond_to?(method)
18
+ @context.send(method, *args)
19
+ else
20
+ super
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def default_config_path
27
+ "strategies/#{underscore}.yml"
28
+ end
29
+
30
+ def underscore
31
+ self.class.to_s.split('::').last.gsub(/([a-z])([A-Z])/, '\1_\2').downcase
32
+ end
33
+
34
+ def info
35
+ raise 'Abstract method called'
36
+ end
37
+
38
+ def tick
39
+ print "\033[2J"
40
+ sleep TICK_TIME
41
+
42
+ print info.map(&:colorize).join("\n") + "\r\033[#{info.count - 1}A"
43
+ $stdout.flush
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,91 @@
1
+ module Livermore
2
+ class SimpleStrategy < AbstractStrategy
3
+ def trade
4
+ loop do
5
+ fetch_top_tier
6
+ set_goals
7
+ adjust_orders
8
+
9
+ tick and sleep config[:tact]
10
+ end
11
+ end
12
+
13
+ private
14
+
15
+ def set_goals
16
+ set_ask
17
+ set_bid
18
+ end
19
+
20
+ def set_ask
21
+ price = best_ask.price + (best_ask.price * config[:ask_delta].to_f / 100)
22
+
23
+ context.ask = Order.new(
24
+ market: context.market,
25
+ price: price,
26
+ amount: config[:ask_amount],
27
+ type: Order::ASK,
28
+ operation: :limit_order
29
+ )
30
+ end
31
+
32
+ def set_bid
33
+ price = best_bid.price - (best_bid.price * config[:bid_delta].to_f / 100)
34
+
35
+ context.bid = Order.new(
36
+ market: context.market,
37
+ price: price,
38
+ amount: config[:bid_amount],
39
+ type: Order::BID,
40
+ operation: :limit_order
41
+ )
42
+ end
43
+
44
+ def adjust_orders
45
+ fetch_orders
46
+ mark_to_cancel
47
+ cancel_orders
48
+ populate_asks
49
+ populate_bids
50
+ create_orders
51
+ end
52
+
53
+ def mark_to_cancel
54
+ context.orders_to_cancel = open_orders.select do |order|
55
+ case order.type
56
+ when Order::ASK then order.price < ask.price
57
+ when Order::BID then order.price > bid.price
58
+ end
59
+ end
60
+ end
61
+
62
+ def populate_asks
63
+ prevent = open_orders.any? do |order|
64
+ break true if order.type == Order::ASK && order.price >= ask.price
65
+ end
66
+
67
+ context.orders_to_create << ask unless prevent
68
+ end
69
+
70
+ def populate_bids
71
+ prevent = open_orders.any? do |order|
72
+ break true if order.type == Order::BID && order.price <= bid.price
73
+ end
74
+
75
+ context.orders_to_create << bid unless prevent
76
+ end
77
+
78
+ def funds
79
+ base_name, quote_name = context.market.split('-')
80
+
81
+ [
82
+ "#{base_name}: #{context.base_fund}",
83
+ "#{quote_name}: #{context.quote_fund}"
84
+ ]
85
+ end
86
+
87
+ def info
88
+ funds + [best_ask, best_bid].concat(open_orders).sort_by(&:price).reverse
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,3 @@
1
+ module Livermore
2
+ VERSION = '0.0.0'.freeze
3
+ end
@@ -0,0 +1,31 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'livermore/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'livermore'
8
+ spec.version = Livermore::VERSION
9
+ spec.authors = ['Tony Rom']
10
+ spec.email = ['thetonyrom@gmail.com']
11
+
12
+ spec.summary = 'Trading Bot'
13
+ spec.homepage = 'https://github.com/thetonyrom/livermore'
14
+ spec.license = 'MIT'
15
+
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = 'bin'
21
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.16'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
+ spec.add_development_dependency 'pry-byebug'
28
+
29
+ spec.add_dependency 'coin_falcon', '~> 0.0.1'
30
+ spec.add_dependency 'thor', '~> 0.20.0'
31
+ end
@@ -0,0 +1,5 @@
1
+ :ask_amount: 0.01
2
+ :bid_amount: 0.01
3
+ :ask_delta: 0.5
4
+ :bid_delta: 0.5
5
+ :tact: 1
metadata ADDED
@@ -0,0 +1,157 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: livermore
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Tony Rom
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-15 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.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
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
+ - !ruby/object:Gem::Dependency
56
+ name: pry-byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coin_falcon
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.0.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.20.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.20.0
97
+ description:
98
+ email:
99
+ - thetonyrom@gmail.com
100
+ executables:
101
+ - console
102
+ - livermore
103
+ - setup
104
+ extensions: []
105
+ extra_rdoc_files: []
106
+ files:
107
+ - ".gitignore"
108
+ - ".rspec"
109
+ - ".travis.yml"
110
+ - Gemfile
111
+ - Gemfile.lock
112
+ - LICENSE.txt
113
+ - README.md
114
+ - Rakefile
115
+ - bin/console
116
+ - bin/livermore
117
+ - bin/setup
118
+ - config.yml.erb
119
+ - lib/livermore.rb
120
+ - lib/livermore/bot.rb
121
+ - lib/livermore/cf_order.rb
122
+ - lib/livermore/cf_response.rb
123
+ - lib/livermore/cli.rb
124
+ - lib/livermore/clients.rb
125
+ - lib/livermore/monkey_patch.rb
126
+ - lib/livermore/order.rb
127
+ - lib/livermore/strategies.rb
128
+ - lib/livermore/strategies/abstract_strategy.rb
129
+ - lib/livermore/strategies/simple_strategy.rb
130
+ - lib/livermore/version.rb
131
+ - livermore.gemspec
132
+ - strategies/simple_strategy.yml
133
+ homepage: https://github.com/thetonyrom/livermore
134
+ licenses:
135
+ - MIT
136
+ metadata: {}
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ requirements: []
152
+ rubyforge_project:
153
+ rubygems_version: 2.7.5
154
+ signing_key:
155
+ specification_version: 4
156
+ summary: Trading Bot
157
+ test_files: []