add crypto/symbols refdata endpoint (#392)

This commit is contained in:
Dominic Wong
2022-02-28 17:50:26 +00:00
committed by GitHub
parent ee0746bac6
commit 3be782ebce
6 changed files with 349 additions and 47 deletions

View File

@@ -9,6 +9,7 @@ service Crypto {
rpc Quote(QuoteRequest) returns (QuoteResponse) {}
rpc Price(PriceRequest) returns (PriceResponse) {}
rpc History(HistoryRequest) returns (HistoryResponse) {}
rpc Symbols(SymbolsRequest) returns (SymbolsResponse) {}
}
message Article {
@@ -94,3 +95,15 @@ message HistoryResponse {
// the date
string date = 7;
}
// Returns the full list of supported symbols
message SymbolsRequest {}
message SymbolsResponse {
repeated Symbol symbols = 1;
}
message Symbol {
string symbol = 1;
string name = 2;
}