Skip to content

Commit

Permalink
isdarkpool
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnyder-intrinio committed Mar 14, 2024
1 parent 7767b56 commit fda0bc7
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit fda0bc7

Please sign in to comment.