class BitflyerTradeDemo {

  public static void main(String[] args) throws IOException {<FILL_FUNCTION_BODY>}

  private static void executionsInfo(TradeService service) throws IOException {
    // Get the margin information
    BitflyerTradeServiceRaw serviceRaw = (BitflyerTradeServiceRaw) service;

    List<BitflyerExecution> executions = serviceRaw.getExecutions();
    System.out.println(executions);
    executions = serviceRaw.getExecutions("BTC_JPY");
    System.out.println(executions);
  }

  private static void positionsInfo(TradeService service) throws IOException {
    // Get the margin information
    BitflyerTradeServiceRaw serviceRaw = (BitflyerTradeServiceRaw) service;

    List<BitflyerPosition> executions = serviceRaw.getPositions();
    System.out.println(executions);
    executions = serviceRaw.getPositions("BTC_JPY");
    System.out.println(executions);
  }
}


    Exchange exchange = BitflyerDemoUtils.createExchange();
    TradeService service = exchange.getTradeService();

    executionsInfo(service);
    positionsInfo(service);
  
<no_super_class>