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;
}
Aggregations