polygon-i 0.1.0.1 → 0.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +2 -2
- data/lib/polygon.rb +0 -6
- data/lib/polygon/tickers.rb +9 -0
- data/lib/polygon/version.rb +1 -1
- data/polygon-i-0.1.0.1.gem +0 -0
- data/todo +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34e0417483da43eca6723ac2dfc9b49bfe50aedb8dc28b742172adc7e4258794
|
4
|
+
data.tar.gz: 06f2fb8f75c3dfb37a27a0c2d0d539032137e71f10e411f0dcad24617d7a6622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b775c53f4905a97c5b59f3d259725bb746217cf863d962293c27ddef92fc5034aff9a85548ab6241c54c9c63dba96ee475372d4658d7b7a41584fd5607ed10f
|
7
|
+
data.tar.gz: ba512ac4a8571d2f51905701f52927a57b46d688e6f40ea6c0ad1bcdc3dfd4945fa6723b01f59cf60cf20bf0e4d5c95c51017a64649c160dbff495b52e48e123
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/polygon.rb
CHANGED
data/lib/polygon/tickers.rb
CHANGED
@@ -38,6 +38,15 @@ class Ticker
|
|
38
38
|
r['status'] == 'OK' ? r : nil
|
39
39
|
end
|
40
40
|
|
41
|
+
def historic_trades ticker, date, opts={}
|
42
|
+
qp = opts.map {|k,v| "#{k}=#{v}"}.join '&'
|
43
|
+
qp = "&#{qp}" if qp
|
44
|
+
|
45
|
+
r = get DOMAIN, "/v2/ticks/stocks/trades/#{ticker}/#{date}?apiKey=#{Config.keys['POLYGON']}#{qp}"
|
46
|
+
binding.pry
|
47
|
+
r['success'] == true
|
48
|
+
end
|
49
|
+
|
41
50
|
end
|
42
51
|
|
43
52
|
end
|
data/lib/polygon/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = "0.1.
|
1
|
+
VERSION = "0.1.1.1"
|
Binary file
|
data/todo
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
remove fucking key from main.rb file in test
|
1
|
+
remove fucking key from main.rb file in test
|
2
|
+
add error handling
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polygon-i
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iodevel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- lib/polygon/socket.rb
|
88
88
|
- lib/polygon/tickers.rb
|
89
89
|
- lib/polygon/version.rb
|
90
|
+
- polygon-i-0.1.0.1.gem
|
90
91
|
- polygon.gemspec
|
91
92
|
- todo
|
92
93
|
homepage:
|