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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/intrinio-realtime.rb +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df8c1b4a01075b66f59dd7f6fda2daa1f7b3cc1eb395f9016206d6cffe13d8bc
4
- data.tar.gz: e1d255b939ed7fa3a27f7eea2cc35fccfaec8b82cb0265d9cab326017685525f
3
+ metadata.gz: 53a8c5ee612a42b4a13773ac8fba1edc288747b925e196d8d286d1498088065c
4
+ data.tar.gz: 60f158795dcf471b473145fd0c37ff403fa7b2f998711baad444678a3cbc34e0
5
5
  SHA512:
6
- metadata.gz: fdc6916b86b3823144c2f9d1b1d4905d9c9af4022e229b0a9ece88a9b639fb5ac3bdb8ae44ebce9cec5aed8ab01e6932cd9ed683e2149724ec9b43893b86f02f
7
- data.tar.gz: cfda64741414b456b33244dbcdfe67ad0ee9e604984dbee9f6c1f13bb08d0373714b7d94ef592e17db978092e10c40247a8dae9064f2745475c3f5a9b3aa5832
6
+ metadata.gz: c29368d7cb0a9ab0d89b897b3128b972a7bb83d0e78a2395030dcbf91f66a01b8d46c80a1097d8b88c3f8bd59dfc2d5327c4143c2ef96af5817f68b36ffd80f8
7
+ data.tar.gz: b5bad0ddec4388a482a6f769bf0e56b285d1b7760c2afe660bd47b78608efbd9c0c0d193dfeab661acb5d3ce52c93395707d169fe7358f1adb3d3a3487604d23
@@ -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
- PROVIDERS = [REALTIME, MANUAL].freeze
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.0")
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
- when REALTIME then "wss://realtime-mx.intrinio.com/socket/websocket?vsn=1.0.0&token=#{@token}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intrinio-realtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intrinio