using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace CryptoExchange.Net.SharedApis
{
///
/// Symbol and asset catalog for a shared client
///
public class SharedSymbolCatalog
{
///
/// Exchange name
///
public string Exchange { get; set; } = string.Empty;
///
/// Assets supported
///
public IReadOnlyDictionary Assets { get; set; } = new Dictionary();
///
/// Symbols supported
///
public IReadOnlyDictionary Symbols { get; set; } = new Dictionary();
}
///
/// Asset info
///
[DebuggerDisplay("{DebugView,nq}")]
public class SharedAssetInfo
{
private string DebugView => $"{Name} - {Type}{(SubType == null ? "": $" {SubType}")}";
///
/// Asset name
///
public string Name { get; set; }
///
/// Asset type
///
public SharedAssetType Type { get; set; }
///
/// Asset sub type
///
public SharedAssetSubType? SubType { get; set; }
///
/// ctor
///
public SharedAssetInfo(string name, SharedAssetType type, SharedAssetSubType? subType)
{
Name = name;
Type = type;
SubType = subType;
}
}
}