public static void main(String[] args) throws IOException {
Exchange coinbase = CoinbaseDemoUtils.createExchange();
CoinbaseAccountService accountService = (CoinbaseAccountService) coinbase.getPollingAccountService();
CoinbaseButtonBuilder buttonBuilder = new CoinbaseButtonBuilder("Demo Button", Currencies.BTC, ".001");
buttonBuilder.withDescription("Coinbase button demo for Coinbase.").withIncludeEmail(true).withStyle(CoinbaseButtonStyle.DONATION_LARGE).withType(CoinbaseButtonType.DONATION).withVariablePrice(
true);
CoinbaseButton createdButton = accountService.createCoinbaseButton(buttonBuilder.buildButton());
System.out.println(createdButton);
CoinbaseOrder createdOrder = accountService.createCoinbaseOrder(createdButton.getCode());
System.out.println(createdOrder);