syntax = "proto3"; // 定义服务 service QmtService { // 查询账户资产 rpc GetAsset (AssetRequest) returns (AssetResponse) {} } // 请求消息 message AssetRequest { string account_id = 1; // 账户ID } // 响应消息 message AssetResponse { double total_asset = 1; // 总资产 double cash = 2; // 可用资金 double market_value = 3; // 持仓市值 }