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;
}| Scenario | Handling |
|---|---|
| HTTP 429 | Use exponential backoff; do not rely on one disputed business code. See API Request Limits |
| Missing access/device transfer | Check Market Data Access; call grabQuotePermission() when appropriate |
| Invalid parameter | Compare with the current request interface; SDK converts camelCase automatically |
| int64 precision | Preserve `number |
| Push kickout | Keep one connection per Tiger ID and handle onKickout |
| Pagination | Use page token/cursor/page; every request made by client-side pagination counts toward limits |
See Error Codes for business codes and troubleshooting.
Updated about 12 hours ago
Did this page help you?
