Skip to content

Commit f4c198c

Browse files
authored
Merge pull request #212 from binance/alpha_v1.0.0
alpha v1.0.0
2 parents b3b3dff + 0ff3213 commit f4c198c

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

examples/alpha/src/main/java/com/binance/connector/client/alpha/rest/marketdata/AggregatedTradesExample.java

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public class AggregatedTradesExample {
2727
public AlphaRestApi getApi() {
2828
if (api == null) {
2929
ClientConfiguration clientConfiguration = AlphaRestApiUtil.getClientConfiguration();
30-
// SignatureConfiguration signatureConfiguration = new SignatureConfiguration();
31-
// signatureConfiguration.setApiKey("apiKey");
32-
// signatureConfiguration.setPrivateKey("path/to/private.key");
33-
// clientConfiguration.setSignatureConfiguration(signatureConfiguration);
30+
SignatureConfiguration signatureConfiguration = new SignatureConfiguration();
31+
signatureConfiguration.setApiKey("apiKey");
32+
signatureConfiguration.setPrivateKey("path/to/private.key");
33+
clientConfiguration.setSignatureConfiguration(signatureConfiguration);
3434
api = new AlphaRestApi(clientConfiguration);
3535
}
3636
return api;
@@ -45,17 +45,13 @@ public AlphaRestApi getApi() {
4545
* @throws ApiException if the Api call fails
4646
*/
4747
public void aggregatedTradesExample() throws ApiException {
48-
String symbol = "ALPHA_118USDC";
49-
Long fromId = null;
50-
Long startTime = null;
51-
Long endTime = null;
48+
String symbol = "";
49+
Long fromId = 1L;
50+
Long startTime = 1623319461670L;
51+
Long endTime = 1641782889000L;
5252
Long limit = 500L;
5353
ApiResponse<AggregatedTradesResponse> response =
5454
getApi().aggregatedTrades(symbol, fromId, startTime, endTime, limit);
5555
System.out.println(response.getData());
5656
}
57-
58-
public static void main(String[] args) {
59-
new AggregatedTradesExample().aggregatedTradesExample();
60-
}
6157
}

0 commit comments

Comments
 (0)