Whatever I request, I get old data.
hardMigration opened this issue · comments
Im using swagger generated java classes. I tried couple different endpoints, I always get responses dated at 12:00:01 27 Feb(yesterday, around time of my first connection to the API) and its not refreshing..
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth apiExpires = (ApiKeyAuth) defaultClient.getAuthentication("apiExpires");
String unixTimeExpire = Long.toString(System.currentTimeMillis() / 1000L + 300);
apiExpires.setApiKey(unixTimeExpire);
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey(id);
ApiKeyAuth apiSignature = (ApiKeyAuth) defaultClient.getAuthentication("apiSignature");
String hash = generate_signature( "GET", "/api/v1/user/wallet?currency=", unixTimeExpire, "" );
apiSignature.setApiKey(hash);
UserApi apiInstance = new UserApi();
Wallet result = null;
try {
result = apiInstance.userGetWallet("");
} catch (ApiException e) {
e.printStackTrace();
}
Am I doing something wrong here?