mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-15 18:00:24 -04:00
Add market depth info API call (#190)
This commit is contained in:
parent
e3b9a9962b
commit
5b038697c3
9 changed files with 187 additions and 5 deletions
|
@ -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
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue