We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3c156 commit 6e9a132Copy full SHA for 6e9a132
lazer/sdk/rust/protocol/src/api.rs
@@ -15,8 +15,16 @@ pub enum ApiRequest {
15
pub struct LatestPriceRequest {
16
pub price_feed_ids: Vec<PriceFeedId>,
17
}
18
+
19
#[derive(Debug, Clone, Serialize, Deserialize)]
20
#[serde(rename_all = "camelCase")]
21
pub struct LatestPriceResponse {
- 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,
30
0 commit comments