syntax="proto3"; package bts.md; option csharp_namespace="bts.md"; option cc_enable_arenas=true; import "lib/api/apioptions.proto"; import "lib/api/apicore.proto"; message OrderPIQ { uint32 order_id = 1 [(bts.api.key)=true]; uint32 position = 2; } message OrderPosition { uint64 exchange_id = 1; uint32 order_id = 2; double price = 10; int32 size = 11; } message PositionData { uint32 security_id = 1; repeated OrderPosition bid = 10; repeated OrderPosition ask = 11; } message MBOSecurityQuery { uint32 security_id = 1; double price_level = 2; uint32 limit = 3; } service MBOService { rpc piq (bts.api.VoidMessage) returns (stream OrderPIQ); rpc get_orders_for_security (MBOSecurityQuery) returns (PositionData); }