File tree Expand file tree Collapse file tree
Crypto.Websocket.Extensions.Core/Orders/Models
Crypto.Websocket.Extensions/Orders/Sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55 <PropertyGroup >
66 <LangVersion >latest</LangVersion >
7- <Version >2.13.0 </Version >
7+ <Version >2.13.1 </Version >
88 </PropertyGroup >
99
1010</Project >
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ public double? AmountOrigQuote
177177 /// Whenever order was executed on margin
178178 /// </summary>
179179 public bool OnMargin { get ; set ; }
180-
180+
181181 /// <summary>
182182 /// Reason why order was canceled/rejected
183183 /// </summary>
@@ -187,12 +187,17 @@ public double? AmountOrigQuote
187187 /// Paid fee
188188 /// </summary>
189189 public double Fee { get ; set ; }
190-
190+
191191 /// <summary>
192192 /// Currency of the paid fee
193193 /// </summary>
194194 public string ? FeeCurrency { get ; set ; }
195195
196+ /// <summary>
197+ /// Whether this is the initial order snapshot (not an update)
198+ /// </summary>
199+ public bool IsSnapshot { get ; set ; }
200+
196201
197202 private double ? WithCorrectSign ( double ? value )
198203 {
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ private void HandleFillsSnapshot(Fill[] fills)
119119 var orders = fills
120120 . Select ( ConvertFill )
121121 . ToArray ( ) ;
122+ foreach ( var order in orders )
123+ order . IsSnapshot = true ;
122124 OrderSnapshotSubject . OnNext ( orders ) ;
123125 }
124126
You can’t perform that action at this time.
0 commit comments