Errors and Limits

HTTP failures throw TigerError or an underlying error; use classifyErrorCode. Push errors arrive through connect() rejection or onError/onKickout/onDisconnect callbacks.

import { classifyErrorCode, TigerError } from '@tigeropenapi/tigeropen';

try {
  await quoteClient.getMarketState('US');
} catch (error) {
  if (error instanceof TigerError) {
    console.error(classifyErrorCode(error.code), error.message);
  }
  throw error;
}
ScenarioHandling
HTTP 429Use exponential backoff; do not rely on one disputed business code. See API Request Limits
Missing access/device transferCheck Market Data Access; call grabQuotePermission() when appropriate
Invalid parameterCompare with the current request interface; SDK converts camelCase automatically
int64 precisionPreserve `number
Push kickoutKeep one connection per Tiger ID and handle onKickout
PaginationUse page token/cursor/page; every request made by client-side pagination counts toward limits

See Error Codes for business codes and troubleshooting.


Did this page help you?