Project

General

Profile

Actions

Dashboard API Spec » History » Revision 2

« Previous | Revision 2/6 (diff) | Next »
Ryan Supawarapong, 03/12/2026 01:27 AM


Dashboard API Spec

gRPC for coin pricing

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);
}

Updated by Ryan Supawarapong about 1 month ago · 6 revisions