import { GoldRushClient, StreamingChain } from "@covalenthq/client-sdk";
const StreamingApiServices = async () => {
const client = new GoldRushClient("<YOUR_API_KEY>");
// Subscribe to OHLCV data for trading pairs
client.StreamingService.subscribeToOHLCVPairs(
{
chain_name: StreamingChain.BASE_MAINNET,
pair_addresses: ["0x9c..."],
},
{
next: (data) => console.log("OHLCV data:", data),
}
);
};
StreamingApiServices();