Пример #1
0
        /// <summary>
        /// Return your deposit address to make a new deposit.
        /// </summary>
        /// <param name="method">Method of deposit (methods accepted: "bitcoin", "litecoin", "darkcoin", "mastercoin" (tethers)).</param>
        /// <param name="wallet_name">Wallet to deposit in (accepted: "trading", "exchange", "deposit"). Your wallet needs to already exist</param>
        /// <param name="renew">(optional) Default is false. If set to true, will return a new unused deposit address</param>
        /// <returns></returns>
        public ObjNewDeposit GetNewDeposit(
            ApiProperties.CurrencyName method,
            ApiProperties.WalletName wallet_name,
            bool renew = false)
        {
            int irenew = renew ? 1 : 0;

            ObjRequestNewDeposit variable = new ObjRequestNewDeposit(Nonce, method.GetEnumName(), wallet_name.GetEnumName(), irenew);
            string response = this.Request(variable, "POST");


            ObjNewDeposit result = JsonConvert.DeserializeObject <ObjNewDeposit>(response);

            return(result);
        }
Пример #2
0
        // TODO: NOT TESTED

        /// <summary>
        /// Allow you to request a withdrawal from one of your wallet.
        /// </summary>
        /// <param name="withdraw_type">can be "bitcoin", "litecoin" or "darkcoin" or "tether".</param>
        /// <param name="walletselected">The wallet to withdraw from, can be "trading", "exchange", or "deposit".</param>
        /// <param name="amount">Amount to withdraw.</param>
        /// <param name="address">Destination address for withdrawal.</param>
        /// <returns></returns>
        public ObjWithdrawl GetWithdrawl(ApiProperties.WithdrawType withdraw_type, ApiProperties.WalletName walletselected, decimal amount, string address)
        {
            return(this.GetWithdrawl(withdraw_type.GetEnumName(), walletselected.GetEnumName(), amount.ToString(), address));
        }
Пример #3
0
        // TODO: NOT TESTED

        /// <summary>
        /// Allow you to move available balances between your wallets.
        /// </summary>
        /// <param name="amount">Amount to transfer.</param>
        /// <param name="currency">Currency of funds to transfer.</param>
        /// <param name="walletfrom">Wallet to transfer from.</param>
        /// <param name="walletto">Wallet to transfer to.</param>
        /// <returns></returns>
        public ObjTransfer GetTransfer(decimal amount, ApiProperties.Currency currency, ApiProperties.WalletName walletfrom, ApiProperties.WalletName walletto)
        {
            return(this.GetTransfer(amount, currency.GetEnumName(), walletfrom.GetEnumName(), walletto.GetEnumName()));
        }
 //TODO: NOT TESTED
 /// <summary>
 /// View all of your balance ledger entries.
 /// </summary>
 /// <param name="currency">The currency to look for.</param>
 /// <param name="since">Optional. Return only the history after this timestamp.</param>
 /// <param name="until">Optional. Return only the history before this timestamp.</param>
 /// <param name="limit">Optional. Limit the number of entries to return. Default is 500.</param>
 /// <param name="wallet">Optional. Return only entries that took place in this wallet. Accepted inputs are: "trading", "exchange", "deposit".</param>
 /// <returns></returns>
 public ObjBalanceHistory GetBalanceHistory(ApiProperties.Currency currency, TickTime since, TickTime until, int limit, ApiProperties.WalletName wallet)
 {
     return(GetBalanceHistory(
                currency.GetEnumName(),
                since.ToUnixTimeStamp(),
                until.ToUnixTimeStamp(),
                limit,
                wallet.GetEnumName()
                ));
 }