Skip to main content
With the official TypeScript Client SDK, developers can access the Streaming API and leverage the following advanced features described in this guide.

Basic Subscription

The following code sample shows how to set up a subscription to the OHLCV Pairs stream:
GoldRush SDK

Multiple Subscriptions

The SDK uses a singleton WebSocket client internally, allowing you to create multiple subscriptions through the same GoldRushClient.
GoldRush SDK

React Integration

For React applications, use the useEffect hook to properly manage subscription lifecycle:
GoldRush SDK

GraphQL Queries

You can also use raw GraphQL queries for more streamlined and selective data scenarios:
GoldRush SDK