Skip to content

Commit

Permalink
Update static assets and symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvister committed Dec 26, 2017
1 parent e0bded3 commit 4745a79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/BinanceConsoleApp/Controllers/LiveOrderBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Task<bool> HandleAsync(string command, CancellationToken token = default)

Program.LiveTask = Task.Run(() =>
{
Program.OrderBookCache.SubscribeAsync(symbol, Program.LiveTokenSource.Token);
Program.OrderBookCache.SubscribeAsync(symbol, 5, Program.LiveTokenSource.Token);
}, token);

lock (Program.ConsoleSync)
Expand Down
4 changes: 3 additions & 1 deletion src/Binance/Asset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class Asset : IComparable<Asset>, IEquatable<Asset>
/// <summary>
/// When the assets were last updated.
/// </summary>
public static readonly long LastUpdateAt = 1514226833240;
public static readonly long LastUpdateAt = 1514327385397;

// Redirect (BCH) Bitcoin Cash (BCC = BitConnect)
public static readonly Asset BCH = BCC;
Expand Down Expand Up @@ -106,6 +106,7 @@ public sealed class Asset : IComparable<Asset>, IEquatable<Asset>
public static readonly Asset VIB = new Asset("VIB", 8);
public static readonly Asset WABI = new Asset("WABI", 8);
public static readonly Asset WAVES = new Asset("WAVES", 8);
public static readonly Asset WINGS = new Asset("WINGS", 8);
public static readonly Asset WTC = new Asset("WTC", 8);
public static readonly Asset XLM = new Asset("XLM", 8);
public static readonly Asset XMR = new Asset("XMR", 8);
Expand Down Expand Up @@ -230,6 +231,7 @@ public static implicit operator Asset(string s)
{ "VIB", VIB },
{ "WABI", WABI },
{ "WAVES", WAVES },
{ "WINGS", WINGS },
{ "WTC", WTC },
{ "XLM", XLM },
{ "XMR", XMR },
Expand Down
6 changes: 5 additions & 1 deletion src/Binance/Symbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class Symbol : IComparable<Symbol>, IEquatable<Symbol>
/// <summary>
/// When the symbols (currency pairs) were last updated.
/// </summary>
public static readonly long LastUpdateAt = 1514226833240;
public static readonly long LastUpdateAt = 1514327385397;

// Redirect (BCH) Bitcoin Cash (BCC = BitConnect)
public static readonly Symbol BCH_USDT = BCC_USDT;
Expand Down Expand Up @@ -108,6 +108,7 @@ public sealed class Symbol : IComparable<Symbol>, IEquatable<Symbol>
public static readonly Symbol VIB_BTC = new Symbol(Asset.VIB, Asset.BTC, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol WABI_BTC = new Symbol(Asset.WABI, Asset.BTC, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol WAVES_BTC = new Symbol(Asset.WAVES, Asset.BTC, 0.01000000m, 90000000.00000000m, 0.00000010m);
public static readonly Symbol WINGS_BTC = new Symbol(Asset.WINGS, Asset.BTC, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol WTC_BTC = new Symbol(Asset.WTC, Asset.BTC, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol XLM_BTC = new Symbol(Asset.XLM, Asset.BTC, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol XMR_BTC = new Symbol(Asset.XMR, Asset.BTC, 0.00100000m, 10000000.00000000m, 0.00000100m);
Expand Down Expand Up @@ -201,6 +202,7 @@ public sealed class Symbol : IComparable<Symbol>, IEquatable<Symbol>
public static readonly Symbol VIB_ETH = new Symbol(Asset.VIB, Asset.ETH, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol WABI_ETH = new Symbol(Asset.WABI, Asset.ETH, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol WAVES_ETH = new Symbol(Asset.WAVES, Asset.ETH, 0.01000000m, 90000000.00000000m, 0.00000100m);
public static readonly Symbol WINGS_ETH = new Symbol(Asset.WINGS, Asset.ETH, 1.00000000m, 90000000.00000000m, 0.00000010m);
public static readonly Symbol WTC_ETH = new Symbol(Asset.WTC, Asset.ETH, 0.01000000m, 90000000.00000000m, 0.00000100m);
public static readonly Symbol XLM_ETH = new Symbol(Asset.XLM, Asset.ETH, 1.00000000m, 90000000.00000000m, 0.00000001m);
public static readonly Symbol XMR_ETH = new Symbol(Asset.XMR, Asset.ETH, 0.00100000m, 10000000.00000000m, 0.00001000m);
Expand Down Expand Up @@ -486,6 +488,8 @@ public static implicit operator Symbol(string s)
{ "WAVESBNB", WAVES_BNB },
{ "WAVESBTC", WAVES_BTC },
{ "WAVESETH", WAVES_ETH },
{ "WINGSBTC", WINGS_BTC },
{ "WINGSETH", WINGS_ETH },
{ "WTCBNB", WTC_BNB },
{ "WTCBTC", WTC_BTC },
{ "WTCETH", WTC_ETH },
Expand Down

0 comments on commit 4745a79

Please sign in to comment.