/// <summary>
        ///
        /// </summary>
        /// <param name="currencyPair"></param>
        /// <param name="type"></param>
        /// <param name="pricePerCoin"></param>
        /// <param name="amountQuote"></param>
        /// <returns></returns>
        public async Task <ulong> PlaceOrder(CurrencyPair currency_pair, OrderType type, decimal pricePerCoin, decimal amountQuote)
        {
            var _params = new Dictionary <string, object>();
            {
                _params.Add("command", type.ToStringNormalized());
                _params.Add("currencyPair", currency_pair);
                _params.Add("rate", pricePerCoin.ToStringNormalized());
                _params.Add("amount", amountQuote.ToStringNormalized());
            }

            var _data = await Api.CallApiPostAsync <JObject>(__end_pointT, _params);

            var err = _data.Value <string>("error");

            if (!string.IsNullOrEmpty(err))
            {
                Console.WriteLine("\n***PoloniexClient::PlaceOrder=> {0}\n", err);
                return(default(ulong));
            }
            else
            {
                return(_data.Value <ulong>("orderNumber"));
            }
        }
 public OrderNew(Exchange.Clients.Poloniex.CurrencyPair pair, ulong orderId) : base()
 {
     Pair     = pair.ToString();
     OrderIds = new string[] { orderId.ToString() };
 }
 public bool Equals(CurrencyPair b)
 {
     return(b.CurrencyName == CurrencyName && b.CoinName == CoinName);
 }
 public OrderCxl(Exchange.Clients.Poloniex.CurrencyPair pair, bool cancelSuccessful)
 {
     Pair             = pair.ToString();
     CancelSuccessful = cancelSuccessful;
     cout("Poloniex:{0}> {1}", Pair, CancelSuccessful);
 }