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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baf11b2e0538c55d8b177171f930ffe150038c9dc24a3d92cff60cb60b6c1652
4
- data.tar.gz: 86ea0d7ae1c7d049a4f02196bf94810144565de3dc1c5110764aa60a0c238fc9
3
+ metadata.gz: 34e0417483da43eca6723ac2dfc9b49bfe50aedb8dc28b742172adc7e4258794
4
+ data.tar.gz: 06f2fb8f75c3dfb37a27a0c2d0d539032137e71f10e411f0dcad24617d7a6622
5
5
  SHA512:
6
- metadata.gz: a586854f31797cfbd55caa3d52f50360751d0d48af3c689c603c72bc3861d892e3ce48646ef0850cb4833b78a02babbef41d9bb64a3095d2dd7e97d6171d5bad
7
- data.tar.gz: 847a29477e45c13940370ed1d984776c9cc0ba39227be03142b44220759420b33f6f629e6729ca1e8469b287cd164da2b1e4e4a88d4f8d6bcb94e3d981e9528c
6
+ metadata.gz: 1b775c53f4905a97c5b59f3d259725bb746217cf863d962293c27ddef92fc5034aff9a85548ab6241c54c9c63dba96ee475372d4658d7b7a41584fd5607ed10f
7
+ data.tar.gz: ba512ac4a8571d2f51905701f52927a57b46d688e6f40ea6c0ad1bcdc3dfd4945fa6723b01f59cf60cf20bf0e4d5c95c51017a64649c160dbff495b52e48e123
data/.gitignore CHANGED
@@ -6,4 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- /test/secrets.json
9
+ /test/secrets.json
10
+ /bin/pn
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polygon (0.1.0)
4
+ polygon-i (0.1.0.1)
5
5
  faye-websocket
6
6
  redis
7
7
 
@@ -29,7 +29,7 @@ PLATFORMS
29
29
  DEPENDENCIES
30
30
  bundler (~> 2.0)
31
31
  faye-websocket
32
- polygon!
32
+ polygon-i!
33
33
  pry
34
34
  rake (~> 10.0)
35
35
  redis
@@ -30,9 +30,3 @@ module Polygon
30
30
  end
31
31
  end
32
32
  end
33
-
34
-
35
- Polygon.config.setKey 'POLYGON', '123'
36
-
37
- r = Polygon::Ticker.last_trade 'AAPL'
38
- puts r
@@ -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
@@ -1 +1 @@
1
- VERSION = "0.1.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.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 00:00:00.000000000 Z
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: