Skip to content

Commit

Permalink
no need to wrap in response struct
Browse files Browse the repository at this point in the history
  • Loading branch information
megsdevs committed Dec 19, 2023
1 parent 0597b12 commit 01f010f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions proto/valorem/trade/v1/spot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ service Spot {
// stream of SpotPriceResponse: Continuously streams data about the spot prices
// of the requested tokens on their respective chains
// as updates are available.
rpc GetSpotPrice (SpotPriceRequest) returns (stream SpotPriceResponse);
rpc GetSpotPrice (SpotPriceRequest) returns (stream SpotPriceInfo);
}

// SpotPriceRequest encapsulates the details of the tokens for which
Expand All @@ -31,14 +31,6 @@ message SpotPriceRequest {
repeated SpotPriceInfo spot_price_info = 1;
}

// SpotPriceResponse provides the fetched spot prices for the tokens specified in the request.
message SpotPriceResponse {

// spot_price_info holds the data about the fetched spot prices for the tokens specified in the request. The price for
// each token is sent down the stream as and when it is ready.
SpotPriceInfo spot_price_info = 1;
}

// SpotPriceInfo represents the details and the spot price (if available) for a single token
// on a particular blockchain.
message SpotPriceInfo {
Expand Down

0 comments on commit 01f010f

Please sign in to comment.