Esempio n. 1
0
        //TODO: NOT TESTED


        public ObjMovements[] GetMovements(ApiProperties.Currency currency, ApiProperties.Methods method, TickTime since, TickTime until, int limit)
        {
            return(GetMovements(
                       currency.GetEnumName(),
                       method.GetEnumName(),
                       since.ToUnixTimeStamp(),
                       until.ToUnixTimeStamp(),
                       limit
                       ));
        }
 //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()
                ));
 }
        //TODO: NOT TESTED

        /// <summary>
        /// View your past trades.
        /// </summary>
        /// <param name="symbol">The pair traded (BTCUSD, LTCUSD, LTCBTC).</param>
        /// <param name="timestamp">Trades made before this timestamp won't be returned.</param>
        /// <param name="until">Optional. Trades made after this timestamp won't be returned.</param>
        /// <param name="limit_trades">Optional. Limit the number of trades returned. Default is 50.</param>
        /// <param name="reverse">Optional. Return trades in reverse order (the oldest comes first). Default is returning newest trades first.</param>
        /// <returns>An array of trades:</returns>
        public ObjPastTrades[] GetPastTrades(ApiProperties.Symbols symbol, TickTime timestamp, TickTime until, int limit_trades, int reverse)
        {
            return(GetPastTrades(
                       symbol.GetEnumName(),
                       timestamp.ToUnixTimeStamp(),
                       until.ToUnixTimeStamp(),
                       limit_trades,
                       reverse
                       ));
        }
Esempio n. 4
0
 public OHLC GetOHLC(string pair, OHLC.Interval interval, TickTime since)
 {
     return(this.GetOHLC(pair, interval, ((long)since.ToUnixTimeStamp()) + ""));
 }