polygonio 0.1.0 → 0.2.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/bin/console +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/crypto.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/forex.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/reference/locales.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/reference/markets.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/reference/stocks.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/reference/tickers.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api/stocks.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/api.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/client.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest/errors.rb +1 -1
- data/lib/{polygon_client → polygonio}/rest.rb +0 -0
- data/lib/{polygon_client → polygonio}/types.rb +1 -1
- data/lib/polygonio/version.rb +5 -0
- data/lib/{polygon_client → polygonio}/websocket/client.rb +1 -1
- data/lib/{polygon_client → polygonio}/websocket/errors.rb +1 -1
- data/lib/{polygon_client → polygonio}/websocket/events.rb +1 -1
- data/lib/{polygon_client → polygonio}/websocket.rb +0 -0
- data/lib/{polygon_client.rb → polygonio.rb} +4 -4
- data/{polygon_client.gemspec → polygonio.gemspec} +4 -4
- metadata +21 -21
- data/lib/polygon_client/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f726bca0ec10c4396c8abcd465f6c9bd4dee1d792a37f1bc3615e9a500e3f9f4
|
4
|
+
data.tar.gz: 10c0629ee52ecceb9fc3c5dd6f4a8d45d2c97dd4ff6960acc1e0acf039e8ea1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69975cee522f0cd4ffd3ab3a660cb0e1c5549a14aebeedf1166feb5841c1aee9fcd56e787f5c2d37b0c8e2748dcb1d6b5f1eac693ca1f68461e2382c2ddf213f
|
7
|
+
data.tar.gz: 3227e2dfa5456ea7b9fc1f2d4dd9788f36c214f6fa021969db63672c33fc261f9eee27e26636cf0aedf370473675ef9bd91aad4bf97aa36828a9efab33c94600
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# PolygonioClient (Ruby)
|
2
2
|
|
3
3
|
## Table of Contents
|
4
4
|
|
@@ -15,7 +15,7 @@ This is a client library for Polygon.io. Please see [Polygon.io](https://polygon
|
|
15
15
|
Add this line to your application's Gemfile:
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem '
|
18
|
+
gem 'polygonio'
|
19
19
|
```
|
20
20
|
|
21
21
|
And then execute:
|
@@ -32,18 +32,18 @@ All methods follow the documentation found [here]:https://polygon.io/docs pretty
|
|
32
32
|
|
33
33
|
|
34
34
|
```ruby
|
35
|
-
client =
|
35
|
+
client = Polygonio::Rest::Client.new(api_key)
|
36
36
|
|
37
37
|
# See tests for a full reference of all of methods
|
38
38
|
client.reference.tickers.list
|
39
39
|
|
40
|
-
client.stocks.
|
40
|
+
client.stocks.list_exchanges
|
41
41
|
|
42
42
|
client.forex.historic_ticks
|
43
43
|
|
44
44
|
client.crypto.list # list exchanges
|
45
45
|
|
46
|
-
|
46
|
+
Polgygonio::Websocket::Client.new(api_key).subscribe("XQ.BTC-USD") do |event|
|
47
47
|
pp "Incoming message"
|
48
48
|
pp event
|
49
49
|
end
|
data/bin/console
CHANGED
File without changes
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
3
|
+
require "polygonio/version"
|
4
4
|
|
5
5
|
require "eventmachine"
|
6
6
|
require "faraday"
|
@@ -11,6 +11,6 @@ require "dry-types"
|
|
11
11
|
require "permessage_deflate"
|
12
12
|
require "websocket/driver"
|
13
13
|
|
14
|
-
require "
|
15
|
-
require "
|
16
|
-
require "
|
14
|
+
require "polygonio/types"
|
15
|
+
require "polygonio/rest"
|
16
|
+
require "polygonio/websocket"
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
lib = File.expand_path("lib", __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require "
|
5
|
+
require "polygonio/version"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = "polygonio"
|
9
|
-
spec.version =
|
9
|
+
spec.version = Polygonio::VERSION
|
10
10
|
spec.authors = ["Lance Carlson"]
|
11
11
|
spec.email = ["lancecarlson@gmail.com"]
|
12
12
|
|
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.metadata = {
|
19
19
|
"homepage_uri" => "https://github.com/lancecarlson/polygon-client-rb",
|
20
|
-
"source_code_uri" =>
|
21
|
-
"bug_tracker_uri" =>
|
20
|
+
"source_code_uri" => "https://github.com/lancecarlson/polygon-client-rb",
|
21
|
+
"bug_tracker_uri" => "https://github.com/lancecarlson/polygon-client-rb/issues"
|
22
22
|
}
|
23
23
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polygonio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lance Carlson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -350,25 +350,25 @@ files:
|
|
350
350
|
- README.md
|
351
351
|
- Rakefile
|
352
352
|
- bin/console
|
353
|
-
- lib/
|
354
|
-
- lib/
|
355
|
-
- lib/
|
356
|
-
- lib/
|
357
|
-
- lib/
|
358
|
-
- lib/
|
359
|
-
- lib/
|
360
|
-
- lib/
|
361
|
-
- lib/
|
362
|
-
- lib/
|
363
|
-
- lib/
|
364
|
-
- lib/
|
365
|
-
- lib/
|
366
|
-
- lib/
|
367
|
-
- lib/
|
368
|
-
- lib/
|
369
|
-
- lib/
|
370
|
-
- lib/
|
371
|
-
-
|
353
|
+
- lib/polygonio.rb
|
354
|
+
- lib/polygonio/rest.rb
|
355
|
+
- lib/polygonio/rest/api.rb
|
356
|
+
- lib/polygonio/rest/api/crypto.rb
|
357
|
+
- lib/polygonio/rest/api/forex.rb
|
358
|
+
- lib/polygonio/rest/api/reference/locales.rb
|
359
|
+
- lib/polygonio/rest/api/reference/markets.rb
|
360
|
+
- lib/polygonio/rest/api/reference/stocks.rb
|
361
|
+
- lib/polygonio/rest/api/reference/tickers.rb
|
362
|
+
- lib/polygonio/rest/api/stocks.rb
|
363
|
+
- lib/polygonio/rest/client.rb
|
364
|
+
- lib/polygonio/rest/errors.rb
|
365
|
+
- lib/polygonio/types.rb
|
366
|
+
- lib/polygonio/version.rb
|
367
|
+
- lib/polygonio/websocket.rb
|
368
|
+
- lib/polygonio/websocket/client.rb
|
369
|
+
- lib/polygonio/websocket/errors.rb
|
370
|
+
- lib/polygonio/websocket/events.rb
|
371
|
+
- polygonio.gemspec
|
372
372
|
homepage:
|
373
373
|
licenses:
|
374
374
|
- MIT
|