namespace CryptoExchange.Net.Objects
{
///
/// An alias used by the exchange for an asset commonly known by another name
///
public class AssetAlias
{
///
/// Alias type
///
public AliasType Type { get; set; }
///
/// The name of the asset on the exchange
///
public string ExchangeAssetName { get; set; }
///
/// The name of the asset as it's commonly known
///
public string CommonAssetName { get; set; }
///
/// ctor
///
public AssetAlias(string exchangeName, string commonName, AliasType type = AliasType.BothWays)
{
ExchangeAssetName = exchangeName;
CommonAssetName = commonName;
Type = type;
}
}
///
/// Alias type
///
public enum AliasType
{
///
/// Translate both from and to exchange
///
BothWays,
///
/// Only translate when converting to exchange
///
OnlyToExchange
}
}