@@ -0,0 +1,1716 @@
+package org.knowm.xchange.jubi.service.trade;%0A%0Aimport org.junit.Test;%0Aimport org.knowm.xchange.Exchange;%0Aimport org.knowm.xchange.ExchangeFactory;%0Aimport org.knowm.xchange.currency.CurrencyPair;%0Aimport org.knowm.xchange.dto.trade.OpenOrders;%0Aimport org.knowm.xchange.dto.trade.UserTrades;%0Aimport org.knowm.xchange.jubi.JubiExchange;%0Aimport org.knowm.xchange.jubi.dto.trade.JubiOrderStatus;%0Aimport org.knowm.xchange.jubi.service.JubiTradeServiceRaw;%0Aimport org.knowm.xchange.service.trade.TradeService;%0A%0Aimport java.math.BigDecimal;%0Aimport java.util.Date;%0A%0A/**%0A * Created by Dzf on 2017/7/18.%0A */%0Apublic class TradeFetchIntegeration %7B%0A  @Test%0A  public void TradeFetchTest() throws Exception %7B%0A    Exchange exchange = ExchangeFactory.INSTANCE.createExchangeWithApiKeys(JubiExchange.class.getName(),%0A            %22your pubic api key%22, %22your secret api key%22);%0A    TradeService tradeService = exchange.getTradeService();%0A    UserTrades userTradesAll = tradeService.getTradeHistory(((JubiTradeServiceRaw)tradeService).createJubiTradeHistoryParams(new CurrencyPair(%22doge%22, %22cny%22)));%0A    System.out.println(userTradesAll);%0A    UserTrades userTradesSince = tradeService.getTradeHistory(((JubiTradeServiceRaw)tradeService).createJubiTradeHistoryParams(new CurrencyPair(%22doge%22, %22cny%22), new Date(1483200000)));%0A    System.out.println(userTradesSince);%0A    OpenOrders openOrders = tradeService.getOpenOrders(((JubiTradeServiceRaw)tradeService).createJubiOpenOrdersParams(new CurrencyPair(%22doge%22, %22cny%22)));%0A    System.out.println(openOrders);%0A    JubiOrderStatus orderStatus = ((JubiTradeServiceRaw) tradeService).getOrderStatus(new BigDecimal(6860502), new CurrencyPair(%22doge%22, %22cny%22));%0A    System.out.println(orderStatus);%0A  %7D%0A%7D%0A

add trade history and status fetch testcases. fill apis fields with your api keys before testing.