Project

General

Profile

Dashboard API Spec » History » Revision 2

Revision 1 (Ryan Supawarapong, 02/18/2026 05:40 AM) → Revision 2/6 (Ryan Supawarapong, 03/12/2026 01:27 AM)

# Dashboard API Spec 


 ## gRPC for coin pricing 


 ```{protobuf} 
 syntax = "proto3"; 
 package dealer_api; 

 option go_package = "github.com/karn-zuvarna/dealer-api/grpc;grpc"; 

 message GetAllProductsRequest { 
	 repeated string coins = 1; 
 } 

 message ProductUpdate { 
	 int64 trade_id = 1; 
	 double price = 2; 
	 double size = 3; 
	 string time = 4; 
	 double bid = 5; 
	 double ask = 6; 
	 double volume = 7; 
	 double rfq_volume = 8; 
	 double conversions_volume = 9; 
 } 

 message Product { 
	 string name = 1; 
	 string display_name = 2; 
	 repeated ProductUpdate update = 3; 
	 double price_change = 4; 
	 double volume = 5; 
 } 

 message GetAllProductsResponse { 
	 map<string, Product> products = 1; 
 } 

 service ProductsService { 
	 rpc GetAllProducts(GetAllProductsRequest) returns (GetAllProductsResponse); 
 } 
 ```