Package markets.alpaca.client.rest
Class AlpacaRateLimit
java.lang.Object
markets.alpaca.client.rest.AlpacaRateLimit
Parsed rate-limit metadata from Alpaca REST response headers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AlpacaRateLimitParses Alpaca's common rate-limit response headers, ignoring missing or invalid values.limit()Maximum number of requests allowed in the current rate-limit window, when reported.Remaining requests in the current rate-limit window, when reported.resetAt()Reset time as anInstant, when reported.Reset time as epoch seconds, when reported.
-
Method Details
-
from
Parses Alpaca's common rate-limit response headers, ignoring missing or invalid values. -
limit
Maximum number of requests allowed in the current rate-limit window, when reported. -
remaining
Remaining requests in the current rate-limit window, when reported. -
resetEpochSeconds
Reset time as epoch seconds, when reported. -
resetAt
Reset time as anInstant, when reported.
-