Skip to content

Commit f8678fd

Browse files
committed
Change Symbol.Cache keys to match symbol.ToString() values
Update static assets and symbols.
1 parent 01792f0 commit f8678fd

File tree

4 files changed

+336
-320
lines changed

4 files changed

+336
-320
lines changed

samples/BinanceCodeGenerator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private static async Task Main()
5757

5858
foreach (var symbol in group)
5959
{
60-
lines.Insert(index++, $" public static Symbol {symbol.BaseAsset}_{symbol.QuoteAsset} => Cache.Get(\"{symbol.BaseAsset}_{symbol.QuoteAsset}\");");
60+
lines.Insert(index++, $" public static Symbol {symbol.BaseAsset}_{symbol.QuoteAsset} => Cache.Get(\"{symbol.BaseAsset}{symbol.QuoteAsset}\");");
6161
}
6262

6363
lines.Insert(index++, string.Empty);

samples/BinanceCodeGenerator/Symbol.template.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ static Symbol()
111111
});
112112

113113
// Redirect (BCH) Bitcoin Cash (BCC = BitConnect)
114-
Cache.Set("BCH_USDT", Cache.Get("BCC_USDT"));
115-
Cache.Set("BCH_BNB", Cache.Get("BCC_BNB"));
116-
Cache.Set("BCH_BTC", Cache.Get("BCC_BTC"));
117-
Cache.Set("BCH_ETH", Cache.Get("BCC_ETH"));
114+
Cache.Set("BCHUSDT", Cache.Get("BCCUSDT"));
115+
Cache.Set("BCHBNB", Cache.Get("BCCBNB"));
116+
Cache.Set("BCHBTC", Cache.Get("BCCBTC"));
117+
Cache.Set("BCHETH", Cache.Get("BCCETH"));
118118
}
119119
catch (Exception e)
120120
{

src/Binance/Asset.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public sealed class Asset : IComparable<Asset>, IEquatable<Asset>
1515
/// <summary>
1616
/// When the assets were last updated.
1717
/// </summary>
18-
public static readonly long LastUpdateAt = 1525448255603;
18+
public static readonly long LastUpdateAt = 1526068613045;
1919

2020
public static Asset ADA => Cache.Get("ADA");
2121
public static Asset ADX => Cache.Get("ADX");
@@ -29,6 +29,7 @@ public sealed class Asset : IComparable<Asset>, IEquatable<Asset>
2929
public static Asset BAT => Cache.Get("BAT");
3030
public static Asset BCC => Cache.Get("BCC");
3131
public static Asset BCD => Cache.Get("BCD");
32+
public static Asset BCN => Cache.Get("BCN");
3233
public static Asset BCPT => Cache.Get("BCPT");
3334
public static Asset BLZ => Cache.Get("BLZ");
3435
public static Asset BNB => Cache.Get("BNB");
@@ -104,6 +105,7 @@ public sealed class Asset : IComparable<Asset>, IEquatable<Asset>
104105
public static Asset QTUM => Cache.Get("QTUM");
105106
public static Asset RCN => Cache.Get("RCN");
106107
public static Asset RDN => Cache.Get("RDN");
108+
public static Asset REP => Cache.Get("REP");
107109
public static Asset REQ => Cache.Get("REQ");
108110
public static Asset RLC => Cache.Get("RLC");
109111
public static Asset RPX => Cache.Get("RPX");
@@ -205,6 +207,7 @@ static Asset()
205207
new Asset("BAT", 8),
206208
new Asset("BCC", 8),
207209
new Asset("BCD", 8),
210+
new Asset("BCN", 8),
208211
new Asset("BCPT", 8),
209212
new Asset("BLZ", 8),
210213
new Asset("BNB", 8),
@@ -280,6 +283,7 @@ static Asset()
280283
new Asset("QTUM", 8),
281284
new Asset("RCN", 8),
282285
new Asset("RDN", 8),
286+
new Asset("REP", 8),
283287
new Asset("REQ", 8),
284288
new Asset("RLC", 8),
285289
new Asset("RPX", 8),

0 commit comments

Comments
 (0)