Skip to content

Commit 4621b98

Browse files
authored
fix(lazer-protocol): Update Latest Price Interface (#2230)
* Small change to interface * Bump version
1 parent 9b3c156 commit 4621b98

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lazer/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/sdk/rust/protocol/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-lazer-protocol"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
edition = "2021"
55
description = "Pyth Lazer SDK - protocol types."
66
license = "Apache-2.0"

lazer/sdk/rust/protocol/src/api.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@ pub enum ApiRequest {
1515
pub struct LatestPriceRequest {
1616
pub price_feed_ids: Vec<PriceFeedId>,
1717
}
18+
1819
#[derive(Debug, Clone, Serialize, Deserialize)]
1920
#[serde(rename_all = "camelCase")]
2021
pub struct LatestPriceResponse {
21-
pub price_feed_ids: Vec<AggregatedPriceFeedData>,
22+
pub latest_prices: Vec<LatestPrice>,
23+
}
24+
25+
#[derive(Debug, Clone, Serialize, Deserialize)]
26+
#[serde(rename_all = "camelCase")]
27+
pub struct LatestPrice {
28+
id: PriceFeedId,
29+
prices: AggregatedPriceFeedData,
2230
}

0 commit comments

Comments
 (0)