intrinio-realtime 4.1.1 → 4.2.0

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 +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62489e9518d298632d43fb8504c9debffe45dd6d1b46b596e7d5cdc5cfb77627
4
- data.tar.gz: 4d7473efe7d699734c16116e27ab1a44653d21654a1c8412efdc56075f6decc5
3
+ metadata.gz: 5999d98e1df1a97e8d4a6f217a645b2a4cc83173df769f831b92a0e2fdaa03f0
4
+ data.tar.gz: 5c49201fd0ea6140c1c8e538a6d9ac1b9ddcb53ba980493c3e1bffd0b3739866
5
5
  SHA512:
6
- metadata.gz: d0ef6392d70888aa915f432da2a0fd9eae3df8043245a4e3b12d4ed4c72d71cec34da888ad8f73767e7622d1266d04dd9c4c593d7e202446ad8389cb33686078
7
- data.tar.gz: f33a8657e2d413bf1a195a8ff4678429ad68736f87f894312d1fd8084881a9f719bece3802acbe10a4e15d590269d7e34604f5204903b77bbd15c20d3e0f3d2b
6
+ metadata.gz: 114ca0120fe8b58520217f933679519a79160014facb39b9a1668bc05682c9bd69aaab1cd4d8b53360152430b85cbb52057f724a83b78cbc3bd0ed85ea38655e
7
+ data.tar.gz: 3d37a004b8603e5ed8ba2346f26520781098504fd265bb90ccd0cda7d638dec6114b9c114283950d1716170ce27952c7ce7e51b7b0aedf174cf5abf74fbcea3a
@@ -12,7 +12,8 @@ module Intrinio
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
+ NASDAQ_BASIC = "NASDAQ_BASIC".freeze
16
+ PROVIDERS = [REALTIME, MANUAL, DELAYED_SIP, NASDAQ_BASIC].freeze
16
17
  ASK = "Ask".freeze
17
18
  BID = "Bid".freeze
18
19
 
@@ -331,7 +332,7 @@ module Intrinio
331
332
  http.use_ssl = true if (auth_url.include?("https"))
332
333
  http.start
333
334
  request = Net::HTTP::Get.new(uri.request_uri)
334
- request.add_field("Client-Information", "IntrinioRealtimeRubySDKv4.0")
335
+ request.add_field("Client-Information", "IntrinioRealtimeRubySDKv4.2")
335
336
 
336
337
  unless @api_key
337
338
  request.basic_auth(@username, @password)
@@ -352,6 +353,7 @@ module Intrinio
352
353
  case @provider
353
354
  when REALTIME then url = "https://realtime-mx.intrinio.com/auth"
354
355
  when DELAYED_SIP then url = "https://realtime-delayed-sip.intrinio.com/auth"
356
+ when NASDAQ_BASIC then url = "https://realtime-nasdaq-basic.intrinio.com/auth"
355
357
  when MANUAL then url = "http://" + @ip_address + "/auth"
356
358
  end
357
359
 
@@ -374,6 +376,7 @@ module Intrinio
374
376
  case @provider
375
377
  when REALTIME then "wss://realtime-mx.intrinio.com/socket/websocket?vsn=1.0.0&token=#{@token}"
376
378
  when DELAYED_SIP then "wss://realtime-delayed-sip.intrinio.com/socket/websocket?vsn=1.0.0&token=#{@token}"
379
+ when NASDAQ_BASIC then "wss://realtime-nasdaq-basic.intrinio.com/socket/websocket?vsn=1.0.0&token=#{@token}"
377
380
  when MANUAL then "ws://" + @ip_address + "/socket/websocket?vsn=1.0.0&token=#{@token}"
378
381
  end
379
382
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intrinio-realtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intrinio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine