alpaca-trade-api 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: d0745d9ff9c3a0a67985cbccd1f39490dc2cbd5ad4e49fc84bfe5ce303b91820
4
+ data.tar.gz: 4c6958398bbbedad4e86fb229d36377a922dbb4b16bd747d8013949c616ec06e
5
+ SHA512:
6
+ metadata.gz: 1d3ddbc1adc6fb0a78e400fa52505413170ef6adfe19f03dd203d5d90823f0b81cb5d9f909902756e2b5b4d13104d99ead36a7e200b21e0d590f9c195b612faa
7
+ data.tar.gz: ea47ae148c14210bcd49c5c40d6a810a7593a45df0e35606964626b0d4b5b9b9956148795f5606077a88aabc14dfb8086b7f928771afb77fa27c2c6174b386c4
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
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.2
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.0
7
+ before_install: gem install bundler -v 2.0.1
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.0] - 2019-07-04
10
+ ### Added
11
+ - First version of gem.
12
+ - Includes support for account, asset, and data endpoints.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in alpaca-trade-api.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,65 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ alpaca-trade-api (0.1.0)
5
+ faraday (~> 0.15)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.6.0)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ byebug (11.0.1)
13
+ crack (0.4.3)
14
+ safe_yaml (~> 1.0.0)
15
+ diff-lcs (1.3)
16
+ docile (1.3.2)
17
+ faraday (0.15.4)
18
+ multipart-post (>= 1.2, < 3)
19
+ hashdiff (0.4.0)
20
+ json (2.2.0)
21
+ multipart-post (2.1.1)
22
+ public_suffix (3.1.1)
23
+ rake (10.5.0)
24
+ rb-readline (0.5.5)
25
+ rspec (3.8.0)
26
+ rspec-core (~> 3.8.0)
27
+ rspec-expectations (~> 3.8.0)
28
+ rspec-mocks (~> 3.8.0)
29
+ rspec-core (3.8.2)
30
+ rspec-support (~> 3.8.0)
31
+ rspec-expectations (3.8.4)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.8.0)
34
+ rspec-mocks (3.8.1)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.8.0)
37
+ rspec-support (3.8.2)
38
+ safe_yaml (1.0.5)
39
+ simplecov (0.16.1)
40
+ docile (~> 1.1)
41
+ json (>= 1.8, < 3)
42
+ simplecov-html (~> 0.10.0)
43
+ simplecov-html (0.10.2)
44
+ vcr (5.0.0)
45
+ webmock (3.6.0)
46
+ addressable (>= 2.3.6)
47
+ crack (>= 0.3.2)
48
+ hashdiff (>= 0.4.0, < 2.0.0)
49
+
50
+ PLATFORMS
51
+ ruby
52
+
53
+ DEPENDENCIES
54
+ alpaca-trade-api!
55
+ bundler (~> 2.0)
56
+ byebug
57
+ rake (~> 10.0)
58
+ rb-readline
59
+ rspec (~> 3.0)
60
+ simplecov (~> 0.16)
61
+ vcr (~> 5.0)
62
+ webmock (~> 3.0)
63
+
64
+ BUNDLED WITH
65
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Cloves Carneiro Jr
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,59 @@
1
+ # Alpaca::Trade::Api
2
+
3
+ This is a high-level Ruby wrapper for [Alpaca trading API](https://docs.alpaca.markets/api-documentation/). This implementation *only* supports the Web API v2 API, there is no plan to support Web API v1.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'alpaca-trade-api'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install alpaca-trade-api
20
+
21
+ ## Usage
22
+
23
+ ### Configuration
24
+
25
+ By default, the library is configured to use the Paper Trading host - `https://paper-api.alpaca.markets` - as the endpoint it connects to, and loads both the key id and secret key from the following environment variables: `ALPACA_API_KEY_ID` and `ALPACA_API_SECRET_KEY`. To configure the library differently:
26
+
27
+ ```ruby
28
+ Alpaca::Trade::Api.configure do |config|
29
+ config.endpoint = 'https://api.alapca.markets'
30
+ config.key_id = 'A_KEY_ID'
31
+ config.key_secret = 'A_S3CRET'
32
+ end
33
+ ```
34
+
35
+ ### Account
36
+
37
+ TODO: Write usage instructions here
38
+
39
+ ### Asset
40
+
41
+ TODO: Write usage instructions here
42
+
43
+ ### Trading
44
+
45
+ TODO: Write usage instructions here
46
+
47
+ ## Development
48
+
49
+ 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.
50
+
51
+ 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
52
+
53
+ ## Contributing
54
+
55
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ccjr/alpaca-trade-api.
56
+
57
+ ## License
58
+
59
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -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,49 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "alpaca/trade/api/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "alpaca-trade-api"
8
+ spec.version = Alpaca::Trade::Api::VERSION
9
+ spec.authors = ["Cloves Carneiro Jr"]
10
+ spec.email = ["ccarneiroj@gmail.com"]
11
+
12
+ spec.summary = %q{Gem to interface with alpaca.markets.}
13
+ spec.description = %q{Alpaca API lets you build and trade with real-time market data for free.}
14
+ spec.homepage = "https://github.com/ccjr/alpaca-trade-api"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ # spec.metadata["allowed_push_host"] = "https://rubygems.org'"
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/ccjr/alpaca-trade-api"
24
+ spec.metadata["changelog_uri"] = "https://github.com/ccjr/alpaca-trade-api/CHANGELOG.md"
25
+ else
26
+ raise "RubyGems 2.0 or newer is required to protect against " \
27
+ "public gem pushes."
28
+ end
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 2.0"
40
+ spec.add_development_dependency "byebug"
41
+ spec.add_development_dependency 'rb-readline'
42
+ spec.add_development_dependency "rake", "~> 10.0"
43
+ spec.add_development_dependency "rspec", "~> 3.0"
44
+ spec.add_development_dependency "simplecov", "~> 0.16"
45
+ spec.add_development_dependency "vcr", "~> 5.0"
46
+ spec.add_development_dependency "webmock", "~> 3.0"
47
+
48
+ spec.add_dependency 'faraday', "~> 0.15"
49
+ end
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 'alpaca/trade/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
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'alpaca/trade/api/version'
4
+ require 'alpaca/trade/api/configuration'
5
+
6
+ require 'alpaca/trade/api/account'
7
+ require 'alpaca/trade/api/asset'
8
+ require 'alpaca/trade/api/bar'
9
+ require 'alpaca/trade/api/client'
10
+ require 'alpaca/trade/api/errors'
11
+
12
+ require 'json'
13
+
14
+ module Alpaca
15
+ module Trade
16
+ module Api
17
+ class << self
18
+ def configuration
19
+ @configuration ||= Alpaca::Trade::Api::Configuration.new
20
+ end
21
+
22
+ def configure
23
+ yield(configuration)
24
+ end
25
+
26
+ def reset
27
+ @configuration = Alpaca::Trade::Api::Configuration.new
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alpaca
4
+ module Trade
5
+ module Api
6
+ class Account
7
+ attr_reader :id, :status, :currency, :buying_power, :cash, :portfolio_value,
8
+ :pattern_day_trader, :trade_suspended_by_user, :trading_blocked,
9
+ :transfers_blocked, :account_blocked, :created_at, :shorting_enabled,
10
+ :multiplier, :long_market_value, :short_market_value, :equity,
11
+ :last_equity, :initial_margin, :maintenance_margin, :daytrade_count,
12
+ :sma
13
+
14
+ def initialize(json)
15
+ @id = json['id']
16
+ @status = json['status']
17
+ @currency = json['currency']
18
+ @buying_power = json['buying_power']
19
+ @cash = json['cash']
20
+ @portfolio_value = json['portfolio_value']
21
+ @pattern_day_trader = json['pattern_day_trader']
22
+ @trade_suspended_by_user = json['trade_suspended_by_user']
23
+ @trading_blocked = json['trading_blocked']
24
+ @transfers_blocked = json['transfers_blocked']
25
+ @created_at = json['created_at']
26
+ @shorting_enabled = json['shorting_enabled']
27
+ @multiplier = json['multiplier']
28
+ @long_market_value = json['long_market_value']
29
+ @short_market_value = json['short_market_value']
30
+ @equity = json['equity']
31
+ @last_equity = json['last_equity']
32
+ @initial_margin = json['initial_margin']
33
+ @maintenance_margin = json['maintenance_margin']
34
+ @daytrade_count = json['daytrade_count']
35
+ @sma = json['sma']
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alpaca
4
+ module Trade
5
+ module Api
6
+ class Asset
7
+ attr_reader :id, :asset_class, :exchange, :symbol, :status, :tradable, :marginable,
8
+ :shortable, :easy_to_borrow
9
+
10
+ def initialize(json)
11
+ @id = json['id']
12
+ @asset_class = json['class']
13
+ @exchange = json['exchange']
14
+ @symbol = json['symbol']
15
+ @status = json['status']
16
+ @tradable = json['tradable']
17
+ @marginable = json['marginable']
18
+ @shortable = json['shortable']
19
+ @easy_to_borrow = json['easy_to_borrow']
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alpaca
4
+ module Trade
5
+ module Api
6
+ class Bar
7
+ attr_reader :time, :open, :high, :low, :close, :volume
8
+
9
+ def initialize(json)
10
+ @time = Time.at(json['t'])
11
+ @open = json['o']
12
+ @high = json['h']
13
+ @low = json['l']
14
+ @close = json['c']
15
+ @volume = json['v']
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'faraday'
4
+
5
+ module Alpaca
6
+ module Trade
7
+ module Api
8
+ class Client
9
+ attr_reader :data_endpoint, :endpoint, :key_id, :key_secret
10
+
11
+ def initialize(endpoint: Alpaca::Trade::Api.configuration.endpoint,
12
+ key_id: Alpaca::Trade::Api.configuration.key_id,
13
+ key_secret: Alpaca::Trade::Api.configuration.key_secret)
14
+ @data_endpoint = Alpaca::Trade::Api.configuration.data_endpoint
15
+ @endpoint = endpoint
16
+ @key_id = key_id
17
+ @key_secret = key_secret
18
+ end
19
+
20
+ def account
21
+ response = get_request(endpoint, 'v2/account')
22
+ Account.new(JSON.parse(response.body))
23
+ end
24
+
25
+ def asset(symbol:)
26
+ response = get_request(endpoint, "v2/assets/#{symbol}")
27
+ Asset.new(JSON.parse(response.body))
28
+ end
29
+
30
+ def bars(timeframe, symbols)
31
+ response = get_request(data_endpoint, "v1/bars/#{timeframe}", symbols: symbols.join(','))
32
+ json = JSON.parse(response.body)
33
+ json.keys.each_with_object({}) do |symbol, hash|
34
+ hash[symbol] = json[symbol].map { |bar| Bar.new(bar) }
35
+ end
36
+ end
37
+
38
+ private
39
+
40
+ def get_request(endpoint, uri, params = {})
41
+ conn = Faraday.new(url: endpoint)
42
+ response = conn.get(uri) do |req|
43
+ params.each { |k, v| req.params[k.to_s] = v }
44
+ req.headers['APCA-API-KEY-ID'] = key_id
45
+ req.headers['APCA-API-SECRET-KEY'] = key_secret
46
+ end
47
+
48
+ raise UnauthorizedError, JSON.parse(response.body)['message'] if response.status == 401
49
+ raise RateLimitedError, JSON.parse(response.body)['message'] if response.status == 429
50
+
51
+ response
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alpaca
4
+ module Trade
5
+ module Api
6
+ class Configuration
7
+ attr_accessor :endpoint, :key_id, :key_secret
8
+ attr_reader :data_endpoint
9
+
10
+ def initialize
11
+ @endpoint = 'https://paper-api.alpaca.markets'
12
+ @data_endpoint = 'https://data.alpaca.markets'
13
+ @key_id = ENV['ALPACA_API_KEY_ID']
14
+ @key_secret = ENV['ALPACA_API_SECRET_KEY']
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alpaca
4
+ module Trade
5
+ module Api
6
+ class Error < StandardError; end
7
+ class RateLimitedError < Error; end
8
+ class UnauthorizedError < Error; end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alpaca
4
+ module Trade
5
+ module Api
6
+ VERSION = '0.1.0'
7
+ end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,193 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alpaca-trade-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Cloves Carneiro Jr
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-07-05 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: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: byebug
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rb-readline
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.16'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.16'
97
+ - !ruby/object:Gem::Dependency
98
+ name: vcr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '5.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: faraday
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.15'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.15'
139
+ description: Alpaca API lets you build and trade with real-time market data for free.
140
+ email:
141
+ - ccarneiroj@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rspec"
148
+ - ".ruby-version"
149
+ - ".travis.yml"
150
+ - CHANGELOG.md
151
+ - Gemfile
152
+ - Gemfile.lock
153
+ - LICENSE.txt
154
+ - README.md
155
+ - Rakefile
156
+ - alpaca-trade-api.gemspec
157
+ - bin/console
158
+ - bin/setup
159
+ - lib/alpaca/trade/api.rb
160
+ - lib/alpaca/trade/api/account.rb
161
+ - lib/alpaca/trade/api/asset.rb
162
+ - lib/alpaca/trade/api/bar.rb
163
+ - lib/alpaca/trade/api/client.rb
164
+ - lib/alpaca/trade/api/configuration.rb
165
+ - lib/alpaca/trade/api/errors.rb
166
+ - lib/alpaca/trade/api/version.rb
167
+ homepage: https://github.com/ccjr/alpaca-trade-api
168
+ licenses:
169
+ - MIT
170
+ metadata:
171
+ homepage_uri: https://github.com/ccjr/alpaca-trade-api
172
+ source_code_uri: https://github.com/ccjr/alpaca-trade-api
173
+ changelog_uri: https://github.com/ccjr/alpaca-trade-api/CHANGELOG.md
174
+ post_install_message:
175
+ rdoc_options: []
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ requirements: []
189
+ rubygems_version: 3.0.3
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: Gem to interface with alpaca.markets.
193
+ test_files: []