コード例 #1
0
        public TransactionFee EstimateTransactionFee(ExchangeOrderType orderType, decimal orderAmount, Currency orderAmountCurrency, ExchangeTradePair tradePair)
        {
#warning watch out ... this was copied and pasted
            // Check what's the preferred currency (BTC) and take 0.25% of it.
            var fee = (orderAmountCurrency == SystemSetting.PreferredCyptoCurrency ? 1.0m : tradePair.LatestPrice) * orderAmount * tradePair.FeePercent / 100m;
            return(new TransactionFee()
            {
                Amount = fee, Currency = SystemSetting.PreferredCyptoCurrency
            });
        }
コード例 #2
0
 public Task <ExchangeOrderResponse> PlaceOrder(ExchangeOrderType orderType, decimal orderAmount, Currency orderAmountCurrency, ExchangeTradePair tradePair)
 {
     //this.poloniexClient.
     throw new NotImplementedException();
 }