Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsDarkpool #20

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
intrinio-realtime (5.0.0)
intrinio-realtime (5.1.0)
bigdecimal (~> 1.4.0)
eventmachine (~> 1.2)
thread (~> 0.2.2)
Expand All @@ -12,10 +12,11 @@ GEM
specs:
bigdecimal (1.4.4)
event_emitter (0.2.6)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
thread (0.2.2)
websocket (1.2.9)
websocket-client-simple (0.3.0)
websocket (1.2.10)
websocket-client-simple (0.8.0)
event_emitter
websocket

Expand Down
2 changes: 1 addition & 1 deletion intrinio-realtime.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "intrinio-realtime"
spec.version = "5.0.0"
spec.version = "5.1.0"
spec.authors = ["Intrinio"]
spec.email = ["admin@intrinio.com"]
spec.description = %q{Intrinio Ruby SDK for Real-Time Stock Prices}
Expand Down
4 changes: 4 additions & 0 deletions lib/intrinio-realtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def condition
@condition
end

def is_darkpool
@market_center == nil || @market_center == 'D' || @market_center == 'E' || @market_center == "\0" || @market_center.empty?
end

def to_s
[@symbol, @price, @size, @timestamp, @total_volume, @subprovider, @market_center, @condition].join(",")
end
Expand Down