Examples of CoinbaseTransfers


Examples of com.xeiam.xchange.coinbase.dto.trade.CoinbaseTransfers

   * @return
   * @throws IOException
   */
  public CoinbaseTransfers getCoinbaseTransfers(final Integer page, final Integer limit) throws IOException {

    final CoinbaseTransfers transfers = coinbase.getTransfers(page, limit, exchangeSpecification.getApiKey(), signatureCreator, getNonce());
    return transfers;
  }
View Full Code Here

Examples of com.xeiam.xchange.coinbase.dto.trade.CoinbaseTransfers

          throw new ExchangeException("args[1] must be of type Integer.");
        limit = (Integer) arguments[1];
      }
    }

    final CoinbaseTransfers transfers = super.getCoinbaseTransfers(page, limit);
    return CoinbaseAdapters.adaptTrades(transfers);
  }
View Full Code Here

Examples of com.xeiam.xchange.coinbase.dto.trade.CoinbaseTransfers

  public static void raw(CoinbaseTradeService tradeService) throws IOException {

    // CoinbaseTransfer buyTransfer = tradeService.buy(new BigDecimal(".01"));
    // System.out.println(buyTransfer);

    CoinbaseTransfers transfers = tradeService.getCoinbaseTransfers();
    System.out.println(transfers);
  }
View Full Code Here

Examples of com.xeiam.xchange.coinbase.dto.trade.CoinbaseTransfers

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

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

    UserTrades trades = CoinbaseAdapters.adaptTrades(transfers);
    List<UserTrade> tradeList = trades.getUserTrades();
    assertThat(tradeList.size()).isEqualTo(1);
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.