Skip to content

Commit 6e9a132

Browse files
committed
Small change to interface
1 parent 9b3c156 commit 6e9a132

File tree

1 file changed

+9
-1
lines changed
  • lazer/sdk/rust/protocol/src

1 file changed

+9
-1
lines changed

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)