Search in sources :

Example 1 with DefaultTradeHistoryParamsTimeSpan

use of org.knowm.xchange.service.trade.params.DefaultTradeHistoryParamsTimeSpan in project XChange by knowm.

the class PoloniexAccountService method createFundingHistoryParams.

@Override
public TradeHistoryParams createFundingHistoryParams() {
    final DefaultTradeHistoryParamsTimeSpan params = new DefaultTradeHistoryParamsTimeSpan();
    params.setStartTime(// just over one year
    new Date(System.currentTimeMillis() - 366L * 24 * 60 * 60 * 1000));
    params.setEndTime(new Date());
    return params;
}
Also used : DefaultTradeHistoryParamsTimeSpan(org.knowm.xchange.service.trade.params.DefaultTradeHistoryParamsTimeSpan) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 DefaultTradeHistoryParamsTimeSpan (org.knowm.xchange.service.trade.params.DefaultTradeHistoryParamsTimeSpan)1