Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whatever I request, I get old data. #533

Open
hardMigration opened this issue Feb 28, 2023 · 0 comments
Open

Whatever I request, I get old data. #533

hardMigration opened this issue Feb 28, 2023 · 0 comments

Comments

@hardMigration
Copy link

hardMigration commented Feb 28, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant