Examples of CryptoTradeOrders


Examples of com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeOrders

    // Read in the JSON from the example resources
    InputStream is = CryptoTradeAdapterTest.class.getResourceAsStream("/trade/example-order-history-data.json");

    // Use Jackson to parse it
    ObjectMapper mapper = new ObjectMapper();
    CryptoTradeOrders orderHistory = mapper.readValue(is, CryptoTradeOrders.class);

    OpenOrders orders = CryptoTradeAdapters.adaptOpenOrders(orderHistory);

    assertThat(orders.getOpenOrders()).hasSize(1);
View Full Code Here

Examples of com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeOrders

  }

  @Override
  public OpenOrders getOpenOrders() throws IOException {

    CryptoTradeOrders orderHistory = super.getCryptoTradeOrderHistory();

    return CryptoTradeAdapters.adaptOpenOrders(orderHistory);
  }
View Full Code Here

Examples of com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeOrders

    return getCryptoTradeOrderHistory(NO_QUERY_PARAMS);
  }

  public CryptoTradeOrders getCryptoTradeOrderHistory(CryptoTradeHistoryQueryParams queryParams) throws CryptoTradeException, IOException {

    CryptoTradeOrders orders =
        cryptoTradeProxy.getOrderHistory(queryParams.getStartId(), queryParams.getEndId(), queryParams.getStartDate(), queryParams.getEndDate(), queryParams.getCount(), queryParams.getOrdering(),
            queryParams.getCurrencyPair(), apiKey, signatureCreator, nextNonce());

    return handleResponse(orders);
  }
View Full Code Here

Examples of com.xeiam.xchange.cryptotrade.dto.trade.CryptoTradeOrders

    CryptoTradeTransactions transactions = tradeService.getCryptoTradeTransactionHistory(params);
    System.out.println(transactions);

    Thread.sleep(4000);

    CryptoTradeOrders orders = tradeService.getCryptoTradeOrderHistory(params);
    System.out.println(orders);

    Thread.sleep(4000);

    LimitOrder limitOrder = new LimitOrder(OrderType.ASK, new BigDecimal(".01"), CurrencyPair.BTC_USD, null, null, new BigDecimal("1000.00"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.