Beispiel #1
0
 /// <summary>	Converts a type to the bitshares symbol. </summary>
 ///
 /// <remarks>	Paul, 05/02/2015. </remarks>
 ///
 /// <param name="type">	The type. </param>
 ///
 /// <returns>	type as a string. </returns>
 public static string ToBitsharesSymbol(CurrenciesRow type)
 {
     return type.symbol.TrimStart(kBitassetPrefix);
 }
Beispiel #2
0
 /// <summary>	Query if 'type' is bitshares asset. </summary>
 ///
 /// <remarks>	Paul, 05/02/2015. </remarks>
 ///
 /// <param name="type">	The type. </param>
 ///
 /// <returns>	true if bitshares asset, false if not. </returns>
 public static bool IsBitsharesAsset(CurrenciesRow type)
 {
     return type.bitshares;
 }
Beispiel #3
0
 /// <summary>	Gets base and quote from symbol pair. </summary>
 ///
 /// <remarks>	Paul, 05/02/2015. </remarks>
 ///
 /// <param name="symbolPair">	The symbol pair. </param>
 /// <param name="base">		 	[out] The base. </param>
 /// <param name="quote">	 	[out] The quote. </param>
 public static void GetBaseAndQuoteFromSymbolPair(string symbolPair, Dictionary<string, CurrenciesRow> currencyMap, out CurrenciesRow @base, out CurrenciesRow quote)
 {
     @base = CurrencyHelpers.FromSymbol(symbolPair.Split('_')[0], currencyMap);
     quote = CurrencyHelpers.FromSymbol(symbolPair.Split('_')[1], currencyMap);
 }
Beispiel #4
0
 /// <summary>	Gets market symbol pair. </summary>
 ///
 /// <remarks>	Paul, 05/02/2015. </remarks>
 ///
 /// <param name="base"> 	The base. </param>
 /// <param name="quote">	The quote. </param>
 ///
 /// <returns>	The market symbol pair. </returns>
 public static string GetMarketSymbolPair(CurrenciesRow @base, CurrenciesRow quote)
 {
     return @base.symbol + "_" + quote.symbol;
 }
Beispiel #5
0
 public abstract bool CanDepositAsset(CurrenciesRow asset);