From f60798adce683797813fb8642e1518daf5996379 Mon Sep 17 00:00:00 2001 From: andrewshab <152420261+andrewshab3@users.noreply.github.com> Date: Fri, 17 Oct 2025 07:40:03 +0200 Subject: [PATCH 1/2] Update cpp-batching-upgrade.md --- doc/cpp-batching-upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cpp-batching-upgrade.md b/doc/cpp-batching-upgrade.md index 35a4b557d..227700ec9 100644 --- a/doc/cpp-batching-upgrade.md +++ b/doc/cpp-batching-upgrade.md @@ -8,6 +8,6 @@ If you are using the [websocket JRPC API](websocket_api.md) to send updates to ` ## C++ Bindings If you are linking against the C++ bindings, you will need to make some changes to your code to support sending batched updates. -Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish.cpp) example has been updated to use this new approach. +Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish_websocket.cpp) example has been updated to use this new approach. **Important**: this is a breaking change for C++ publishers, so you will need to update your code as described above for `2.10.1` to work. From b4071ed5320e26c57ab65e596a0589557a9444c3 Mon Sep 17 00:00:00 2001 From: andrewshab <152420261+andrewshab3@users.noreply.github.com> Date: Fri, 17 Oct 2025 07:41:25 +0200 Subject: [PATCH 2/2] Update cpp-batching-upgrade.md --- doc/cpp-batching-upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cpp-batching-upgrade.md b/doc/cpp-batching-upgrade.md index 227700ec9..5dd4a49dc 100644 --- a/doc/cpp-batching-upgrade.md +++ b/doc/cpp-batching-upgrade.md @@ -3,7 +3,7 @@ As of 2.10.1, `pyth-client` has support for sending batched price updates. This significantly reduces SOL burn, so we strongly advise that you update to this newer version. ## Websocket API -If you are using the [websocket JRPC API](websocket_api.md) to send updates to `pythd`, all you need to do is update the version of pythd you are running to [`2.10.1`](https://github.com/pyth-network/pyth-client/releases/tag/mainnet-v2.10.1). +If you are using the [websocket JRPC API](../pctest/test_publish_websocket.cpp) to send updates to `pythd`, all you need to do is update the version of pythd you are running to [`2.10.1`](https://github.com/pyth-network/pyth-client/releases/tag/mainnet-v2.10.1). ## C++ Bindings If you are linking against the C++ bindings, you will need to make some changes to your code to support sending batched updates.