diff --git a/examples/alpha/src/main/java/com/binance/connector/client/alpha/rest/marketdata/AggregatedTradesExample.java b/examples/alpha/src/main/java/com/binance/connector/client/alpha/rest/marketdata/AggregatedTradesExample.java index 5c3c25a9..f84dde90 100644 --- a/examples/alpha/src/main/java/com/binance/connector/client/alpha/rest/marketdata/AggregatedTradesExample.java +++ b/examples/alpha/src/main/java/com/binance/connector/client/alpha/rest/marketdata/AggregatedTradesExample.java @@ -27,10 +27,10 @@ public class AggregatedTradesExample { public AlphaRestApi getApi() { if (api == null) { ClientConfiguration clientConfiguration = AlphaRestApiUtil.getClientConfiguration(); -// SignatureConfiguration signatureConfiguration = new SignatureConfiguration(); -// signatureConfiguration.setApiKey("apiKey"); -// signatureConfiguration.setPrivateKey("path/to/private.key"); -// clientConfiguration.setSignatureConfiguration(signatureConfiguration); + SignatureConfiguration signatureConfiguration = new SignatureConfiguration(); + signatureConfiguration.setApiKey("apiKey"); + signatureConfiguration.setPrivateKey("path/to/private.key"); + clientConfiguration.setSignatureConfiguration(signatureConfiguration); api = new AlphaRestApi(clientConfiguration); } return api; @@ -45,17 +45,13 @@ public AlphaRestApi getApi() { * @throws ApiException if the Api call fails */ public void aggregatedTradesExample() throws ApiException { - String symbol = "ALPHA_118USDC"; - Long fromId = null; - Long startTime = null; - Long endTime = null; + String symbol = ""; + Long fromId = 1L; + Long startTime = 1623319461670L; + Long endTime = 1641782889000L; Long limit = 500L; ApiResponse response = getApi().aggregatedTrades(symbol, fromId, startTime, endTime, limit); System.out.println(response.getData()); } - - public static void main(String[] args) { - new AggregatedTradesExample().aggregatedTradesExample(); - } }