Real-Time Streaming

PushClient uses TCP+TLS, varint32 frames, and Protobuf. A Tiger ID can maintain only one active persistent connection; a new connection can kick out the previous one.

Security warning: the SDK verifies TLS certificates on the initial connection. Its certificate-error path logs that it will retry without verification, but the current implementation resets that flag before retrying, so do not rely on this fallback to connect; do not disable certificate verification through a custom socketFactory.

import { createClientConfig, PushClient } from '@tigeropenapi/tigeropen';

const client = new PushClient(createClientConfig());
client.setCallbacks({ onError: console.error });
await client.connect();
client.subscribeQuote(['AAPL']);

Did this page help you?