intrinio-realtime 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/intrinio-realtime.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62489e9518d298632d43fb8504c9debffe45dd6d1b46b596e7d5cdc5cfb77627
|
4
|
+
data.tar.gz: 4d7473efe7d699734c16116e27ab1a44653d21654a1c8412efdc56075f6decc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ef6392d70888aa915f432da2a0fd9eae3df8043245a4e3b12d4ed4c72d71cec34da888ad8f73767e7622d1266d04dd9c4c593d7e202446ad8389cb33686078
|
7
|
+
data.tar.gz: f33a8657e2d413bf1a195a8ff4678429ad68736f87f894312d1fd8084881a9f719bece3802acbe10a4e15d590269d7e34604f5204903b77bbd15c20d3e0f3d2b
|
data/lib/intrinio-realtime.rb
CHANGED
@@ -11,7 +11,8 @@ module Intrinio
|
|
11
11
|
SELF_HEAL_BACKOFFS = [0, 100, 500, 1000, 2000, 5000].freeze
|
12
12
|
REALTIME = "REALTIME".freeze
|
13
13
|
MANUAL = "MANUAL".freeze
|
14
|
-
|
14
|
+
DELAYED_SIP = "DELAYED_SIP".freeze
|
15
|
+
PROVIDERS = [REALTIME, MANUAL, DELAYED_SIP].freeze
|
15
16
|
ASK = "Ask".freeze
|
16
17
|
BID = "Bid".freeze
|
17
18
|
|
@@ -350,6 +351,7 @@ module Intrinio
|
|
350
351
|
|
351
352
|
case @provider
|
352
353
|
when REALTIME then url = "https://realtime-mx.intrinio.com/auth"
|
354
|
+
when DELAYED_SIP then url = "https://realtime-delayed-sip.intrinio.com/auth"
|
353
355
|
when MANUAL then url = "http://" + @ip_address + "/auth"
|
354
356
|
end
|
355
357
|
|
@@ -370,7 +372,8 @@ module Intrinio
|
|
370
372
|
|
371
373
|
def socket_url
|
372
374
|
case @provider
|
373
|
-
|
375
|
+
when REALTIME then "wss://realtime-mx.intrinio.com/socket/websocket?vsn=1.0.0&token=#{@token}"
|
376
|
+
when DELAYED_SIP then "wss://realtime-delayed-sip.intrinio.com/socket/websocket?vsn=1.0.0&token=#{@token}"
|
374
377
|
when MANUAL then "ws://" + @ip_address + "/socket/websocket?vsn=1.0.0&token=#{@token}"
|
375
378
|
end
|
376
379
|
end
|