Tinkoff / invest-openapi-java-sdk

Apache License 2.0
167 stars 46 forks source link

Unexpected status line: 429 Too Many Requests #101

Closed ityulkanov closed 4 years ago

ityulkanov commented 4 years ago

Every time I'm calling the API I'm get spammed with these messages all over my console. I've tried to call initCleanupProcedure(api); right after getting the results of a call, but no luck. Can anyone explain what do I do wrong with the api? I can't work with it properly, becase after one single request It simply stuck into that mode where I can't get any more info from the API and I have to start my app all over again.

NikitaMelnikov commented 4 years ago

We are using rate limiting, so 429 status is correct https://tinkoffcreditsystems.github.io/invest-openapi/rest/

ityulkanov commented 4 years ago

I know about limits, but I don't understand what should I do to make my app work without these 429s. Or it is unavoidable?