Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<AggregatedTradesResponse> response =
getApi().aggregatedTrades(symbol, fromId, startTime, endTime, limit);
System.out.println(response.getData());
}

public static void main(String[] args) {
new AggregatedTradesExample().aggregatedTradesExample();
}
}
Loading