@@ -47,24 +47,31 @@ public class Symbol : IEquatable<Symbol>
47
47
public readonly decimal PriceStep ;
48
48
49
49
/// <summary>
50
- /// Symbols quantity step.
50
+ /// Symbol's quantity step.
51
51
/// </summary>
52
52
[ DataMember ]
53
53
public readonly decimal QuantityStep ;
54
54
55
+ /// <summary>
56
+ /// Symbol's currency pair. Used for exchange rate receiving.
57
+ /// </summary>
58
+ [ DataMember ]
59
+ public readonly int CurrencyPairId ;
60
+
55
61
/// <summary>
56
62
/// Constructor.
57
63
/// </summary>
58
64
/// <param name="marketId">Id of symbol at exchange.</param>
59
65
/// <param name="name">Name of symbol at exchange.</param>
60
66
/// <param name="priceStep">Symbol's price step</param>
61
67
/// <param name="quantityStep">Symbol's quantity step</param>
62
- public Symbol ( int marketId , string name , decimal priceStep , decimal quantityStep )
68
+ public Symbol ( int marketId , string name , decimal priceStep , decimal quantityStep , int currencyPairId )
63
69
{
64
70
MarketId = marketId ;
65
71
Name = name ;
66
72
PriceStep = priceStep ;
67
73
QuantityStep = quantityStep ;
74
+ CurrencyPairId = currencyPairId ;
68
75
}
69
76
70
77
public Symbol ( )
@@ -90,7 +97,8 @@ public bool Equals(Symbol other)
90
97
if ( string . Compare ( Name , other . Name , StringComparison . CurrentCulture ) == 0 &&
91
98
MarketId == other . MarketId &&
92
99
PriceStep == other . PriceStep &&
93
- QuantityStep == other . QuantityStep )
100
+ QuantityStep == other . QuantityStep &&
101
+ CurrencyPairId == other . CurrencyPairId )
94
102
{ return true ; }
95
103
else
96
104
{ return false ; }
0 commit comments