├── .vscode └── launch.json ├── README.md ├── cmd ├── root.go └── start.go ├── common ├── constant.go └── signal.go ├── dump ├── BTC-USDT │ ├── asks.json │ └── bids.json ├── ETH-USDT │ ├── asks.json │ └── bids.json └── pairs.json ├── engine ├── engine.go └── stored.go ├── go.mod ├── go.sum ├── grpc ├── implement.go ├── middleware.go ├── order.pb.go ├── order.proto └── server.go ├── main.go ├── models ├── deep.go ├── order.go ├── sort.go └── trade.go ├── orders_test.json └── pool ├── cmp.go ├── match.go ├── pool.go ├── pools_test.go └── snapshot.go /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/README.md -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/cmd/root.go -------------------------------------------------------------------------------- /cmd/start.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/cmd/start.go -------------------------------------------------------------------------------- /common/constant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/common/constant.go -------------------------------------------------------------------------------- /common/signal.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/common/signal.go -------------------------------------------------------------------------------- /dump/BTC-USDT/asks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/dump/BTC-USDT/asks.json -------------------------------------------------------------------------------- /dump/BTC-USDT/bids.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/dump/BTC-USDT/bids.json -------------------------------------------------------------------------------- /dump/ETH-USDT/asks.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /dump/ETH-USDT/bids.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /dump/pairs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/dump/pairs.json -------------------------------------------------------------------------------- /engine/engine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/engine/engine.go -------------------------------------------------------------------------------- /engine/stored.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/engine/stored.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/go.sum -------------------------------------------------------------------------------- /grpc/implement.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/grpc/implement.go -------------------------------------------------------------------------------- /grpc/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/grpc/middleware.go -------------------------------------------------------------------------------- /grpc/order.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/grpc/order.pb.go -------------------------------------------------------------------------------- /grpc/order.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/grpc/order.proto -------------------------------------------------------------------------------- /grpc/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/grpc/server.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/main.go -------------------------------------------------------------------------------- /models/deep.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/models/deep.go -------------------------------------------------------------------------------- /models/order.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/models/order.go -------------------------------------------------------------------------------- /models/sort.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/models/sort.go -------------------------------------------------------------------------------- /models/trade.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/models/trade.go -------------------------------------------------------------------------------- /orders_test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/orders_test.json -------------------------------------------------------------------------------- /pool/cmp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/pool/cmp.go -------------------------------------------------------------------------------- /pool/match.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/pool/match.go -------------------------------------------------------------------------------- /pool/pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/pool/pool.go -------------------------------------------------------------------------------- /pool/pools_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/pool/pools_test.go -------------------------------------------------------------------------------- /pool/snapshot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yytany/transaction-matching-engine/HEAD/pool/snapshot.go --------------------------------------------------------------------------------