intrinio-realtime 4.1.2 → 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: 53a8c5ee612a42b4a13773ac8fba1edc288747b925e196d8d286d1498088065c
4
- data.tar.gz: 60f158795dcf471b473145fd0c37ff403fa7b2f998711baad444678a3cbc34e0
3
+ metadata.gz: 5999d98e1df1a97e8d4a6f217a645b2a4cc83173df769f831b92a0e2fdaa03f0
4
+ data.tar.gz: 5c49201fd0ea6140c1c8e538a6d9ac1b9ddcb53ba980493c3e1bffd0b3739866
5
5
  SHA512:
6
- metadata.gz: c29368d7cb0a9ab0d89b897b3128b972a7bb83d0e78a2395030dcbf91f66a01b8d46c80a1097d8b88c3f8bd59dfc2d5327c4143c2ef96af5817f68b36ffd80f8
7
- data.tar.gz: b5bad0ddec4388a482a6f769bf0e56b285d1b7760c2afe660bd47b78608efbd9c0c0d193dfeab661acb5d3ce52c93395707d169fe7358f1adb3d3a3487604d23
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.1")
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.2
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