@@ -270,13 +270,13 @@ cargo run --example subscribe_price_feeds
270270
271271### Symbol Metadata
272272
273- Fetch symbol metadata using the history client:
273+ Fetch symbol metadata using the api client:
274274
275275``` rust
276- use pyth_lazer_client :: history_client :: {PythLazerHistoryClient , PythLazerHistoryClientConfig };
276+ use pyth_lazer_client :: api_client :: {PythLazerApiClient , PythLazerApiClientConfig };
277277
278- let client = PythLazerHistoryClient :: new (
279- PythLazerHistoryClientConfig :: default ()
278+ let client = PythLazerApiClient :: new (
279+ PythLazerApiClientConfig :: default ()
280280);
281281
282282// Get all symbol metadata
@@ -289,23 +289,23 @@ let symbols = handle.symbols();
289289
290290See [ ` examples/symbols.rs ` ] ( examples/symbols.rs ) and [ ` examples/symbols_stream.rs ` ] ( examples/symbols_stream.rs ) for complete examples.
291291
292- ## History Client
292+ ## API Client
293293
294- The ` PythLazerHistoryClient ` provides access to symbol metadata and historical price information:
294+ The ` PythLazerApiClient ` provides access to symbol metadata and historical price information:
295295
296296``` rust
297- use pyth_lazer_client :: history_client :: {PythLazerHistoryClient , PythLazerHistoryClientConfig };
297+ use pyth_lazer_client :: api_client :: {PythLazerApiClient , PythLazerApiClientConfig };
298298use std :: time :: Duration ;
299299
300- let config = PythLazerHistoryClientConfig {
301- urls : vec! [" https://history. pyth-lazer .dourolabs.app/" . parse ()? ],
300+ let config = PythLazerApiClientConfig {
301+ urls : vec! [" https://pyth.dourolabs.app/" . parse ()? ],
302302 update_interval : Duration :: from_secs (30 ),
303303 request_timeout : Duration :: from_secs (15 ),
304304 cache_dir : Some (" /tmp/pyth-lazer-cache" . into ()),
305305 channel_capacity : 1000 ,
306306};
307307
308- let client = PythLazerHistoryClient :: new (config );
308+ let client = PythLazerApiClient :: new (config );
309309
310310// Fetch symbol metadata once
311311let symbols = client . all_symbols_metadata (). await ? ;
@@ -320,7 +320,7 @@ while let Some(symbols) = stream.recv().await {
320320}
321321```
322322
323- The history client supports:
323+ The API client supports:
324324
325325- ** One-time fetches** - Get current data with ` all_symbols_metadata() `
326326- ** Auto-updating handles** - Background updates with ` all_symbols_metadata_handle() `
@@ -334,7 +334,7 @@ The history client supports:
334334
335335- ** ` PythLazerStreamClient ` ** - The main client for streaming price updates
336336- ** ` PythLazerStreamClientBuilder ` ** - Builder for configuring the stream client
337- - ** ` PythLazerHistoryClient ` ** - Client for fetching symbol metadata
337+ - ** ` PythLazerApiClient ` ** - Client for fetching symbol metadata
338338- ** ` SubscribeRequest ` ** - Subscription configuration
339339- ** ` SubscriptionParams ` ** - Subscription parameters wrapper
340340- ** ` AnyResponse ` ** - Enum for JSON or binary responses
@@ -347,7 +347,7 @@ The history client supports:
347347- ` subscribe(request: SubscribeRequest) -> Result<()> ` - Subscribe to price feeds
348348- ` unsubscribe(id: SubscriptionId) -> Result<()> ` - Unsubscribe from a feed
349349
350- #### PythLazerHistoryClient
350+ #### PythLazerApiClient
351351
352352- ` all_symbols_metadata() -> Result<Vec<SymbolMetadata>> ` - Fetch all symbols once
353353- ` all_symbols_metadata_handle() -> Result<SymbolMetadataHandle> ` - Get auto-updating handle
0 commit comments