Skip to content

Commit

Permalink
Merge pull request #13 from shaynevanasperen/refactor
Browse files Browse the repository at this point in the history
Extract common base class for ICryptoOrderBook implementations
  • Loading branch information
Marfusios authored Apr 29, 2024
2 parents b06b12a + 750bc7d commit 18fe560
Show file tree
Hide file tree
Showing 11 changed files with 952 additions and 1,588 deletions.
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- Project defaults -->

<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>2.7.1</Version>
</PropertyGroup>

Expand Down
10 changes: 5 additions & 5 deletions src/Crypto.Websocket.Extensions.Core/Models/CryptoQuotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ public CryptoQuotes(double bid, double ask, double bidAmount, double askAmount)
/// <summary>
/// Top level bid price
/// </summary>
public double Bid { get; }
public double Bid { get; internal set; }

/// <summary>
/// Top level ask price
/// </summary>
public double Ask { get; }
public double Ask { get; internal set; }

/// <summary>
/// Current mid price
/// </summary>
public double Mid { get; }
public double Mid { get; internal set; }

/// <summary>
/// Top level bid amount
/// </summary>
public double BidAmount { get; }
public double BidAmount { get; internal set; }

/// <summary>
/// Top level ask amount
/// </summary>
public double AskAmount { get; }
public double AskAmount { get; internal set; }

/// <summary>
/// Returns true if quotes are in valid state
Expand Down
Loading

0 comments on commit 18fe560

Please sign in to comment.