Add market depth info API call (#190)

This commit is contained in:
Randall B 2022-02-11 17:13:41 -06:00 committed by GitHub
parent e3b9a9962b
commit 5b038697c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 187 additions and 5 deletions

View file

@ -506,6 +506,8 @@ service Price {
}
rpc GetMarketPrices (MarketPricesRequest) returns (MarketPricesReply) {
}
rpc GetMarketDepth (MarketDepthRequest) returns (MarketDepthReply) {
}
}
message MarketPriceRequest {
@ -528,6 +530,22 @@ message MarketPriceInfo {
double price = 2;
}
message MarketDepthRequest {
string currency_code = 1;
}
message MarketDepthReply {
MarketDepthInfo market_depth = 1;
}
message MarketDepthInfo {
string currency_code = 1;
repeated double buy_prices = 2;
repeated double buy_depth = 3;
repeated double sell_prices = 4;
repeated double sell_depth = 5;
}
///////////////////////////////////////////////////////////////////////////////////////////
// GetTradeStatistics
///////////////////////////////////////////////////////////////////////////////////////////