intrinio-realtime 4.1.0 → 4.1.2
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 +6 -3
- 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: 53a8c5ee612a42b4a13773ac8fba1edc288747b925e196d8d286d1498088065c
|
4
|
+
data.tar.gz: 60f158795dcf471b473145fd0c37ff403fa7b2f998711baad444678a3cbc34e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c29368d7cb0a9ab0d89b897b3128b972a7bb83d0e78a2395030dcbf91f66a01b8d46c80a1097d8b88c3f8bd59dfc2d5327c4143c2ef96af5817f68b36ffd80f8
|
7
|
+
data.tar.gz: b5bad0ddec4388a482a6f769bf0e56b285d1b7760c2afe660bd47b78608efbd9c0c0d193dfeab661acb5d3ce52c93395707d169fe7358f1adb3d3a3487604d23
|
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
|
|
@@ -330,7 +331,7 @@ module Intrinio
|
|
330
331
|
http.use_ssl = true if (auth_url.include?("https"))
|
331
332
|
http.start
|
332
333
|
request = Net::HTTP::Get.new(uri.request_uri)
|
333
|
-
request.add_field("Client-Information", "IntrinioRealtimeRubySDKv4.
|
334
|
+
request.add_field("Client-Information", "IntrinioRealtimeRubySDKv4.1")
|
334
335
|
|
335
336
|
unless @api_key
|
336
337
|
request.basic_auth(@username, @password)
|
@@ -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
|