crypto-message
Unified data structures for all cryptocurrency exchanges.
This library contains all output data types of crypto-msg-parser.
The crypto_message::proto module contains protobuf messages corresponding to message types in lib.rs.
The crypto_message::compact module contains compact messages corresponding to message types in lib.rs.
Differences:
-
Message types in
lib.rsare output data types ofcrypto-msg-parser, and they suitable for parsing. -
Message types in
crypto_message::protoare protobuf messages, which are suitable for serialization and RPC. -
message types in
crypto_message::compactare suitable for hight-performance processing.Messages types in
lib.rshas string fields such asexchange,symbol, which causes a lot of memory allocation and copying, so these types are NOT suitable for high-performance processing.Message types in
crypto_message::protoare compact and hight-performance, but they lack metadata fields such asexchange,symbolandpair.Message types in
crypto_message::compactare equivalent to message types inlib.rs, withexchangechanged toenum,symbolandpairchanged tou64hash values.