Skip to content

Commit

Permalink
IsDarkpool Property (#35)
Browse files Browse the repository at this point in the history
* add property IsDarkpool

* version bump
  • Loading branch information
ssnyder-intrinio committed Mar 14, 2024
1 parent 35d371f commit a349ccb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions IntrinioRealTimeClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package>
<metadata>
<id>IntrinioRealTimeClient</id>
<version>9.1.1</version>
<version>9.2.0</version>
<title>Intrinio SDK for Real-Time Stock Prices</title>
<authors>Intrinio</authors>
<owners>Intrinio</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<projectUrl>https://github.com/intrinio/intrinio-realtime-csharp-sdk</projectUrl>
<description>Intrinio provides real-time stock prices via a two-way WebSocket connection.</description>
<releaseNotes>Version 9.1.1 release.</releaseNotes>
<releaseNotes>Version 9.2.0 release.</releaseNotes>
<copyright>Copyright 2024 Intrinio</copyright>
<tags>fintech stocks prices websocket real-time market finance</tags>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion IntrinioRealtimeMultiExchange/Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Client(
let useOnQuote : bool = not (obj.ReferenceEquals(onQuote,null))
let logPrefix : string = String.Format("{0}: ", config.Provider.ToString())
let clientInfoHeaderKey : string = "Client-Information"
let clientInfoHeaderValue : string = "IntrinioDotNetSDKv9.1"
let clientInfoHeaderValue : string = "IntrinioDotNetSDKv9.2"
let messageVersionHeaderKey : string = "UseNewEquitiesFormat"
let messageVersionHeaderValue : string = "v2"
let mainThreadPriority = Thread.CurrentThread.Priority //this is set outside of our scope - let's not interfere.
Expand Down
3 changes: 3 additions & 0 deletions IntrinioRealtimeMultiExchange/Types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ type [<Struct>] Trade =
MarketCenter: char
Condition: string
}

member this.IsDarkpool() : bool =
this.MarketCenter.Equals((char)0) || this.MarketCenter.Equals('D') || this.MarketCenter.Equals('E') || Char.IsWhiteSpace(this.MarketCenter)

override this.ToString() : string =
"Trade (" +
Expand Down

0 comments on commit a349ccb

Please sign in to comment.