Skip to content

mantis-exchange/mantis-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

mantis-common

Shared protobuf definitions for Mantis Exchange microservices.

Proto Files

File Description
proto/mantis/types.proto Common types: Order, Trade, Side, OrderType, DepthLevel
proto/mantis/matching.proto MatchingEngine gRPC service
proto/mantis/order.proto OrderService gRPC service

Usage

Go (gateway, order service)

protoc --go_out=pkg/proto --go_opt=paths=source_relative \
       --go-grpc_out=pkg/proto --go-grpc_opt=paths=source_relative \
       -Iproto proto/mantis/*.proto

Rust (matching engine)

Uses tonic-build in build.rs — automatically compiles protos at build time.

Conventions

  • Decimal values (price, quantity) are string to preserve precision
  • Timestamps are int64 Unix milliseconds
  • All protos use package mantis

MIT License

About

Mantis Exchange - Shared protobuf definitions and common libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors