MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / send_ordermessage

Method send_ordermessage

projects/Python/proto/protoex.py:4030–4042  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

4028 return 0
4029
4030 def send_ordermessage(self, value):
4031 # Serialize the value into the FBE stream
4032 serialized = self.ordermessage_model.serialize(value)
4033 assert (serialized > 0), "protoex.OrderMessage serialization failed!"
4034 assert self.ordermessage_model.verify(), "protoex.OrderMessage validation failed!"
4035
4036 # Log the value
4037 if self.logging:
4038 message = str(value)
4039 self.on_send_log(message)
4040
4041 # Send the serialized value
4042 return self.send_serialized(serialized)
4043
4044 def send_balancemessage(self, value):
4045 # Serialize the value into the FBE stream

Callers 1

sendMethod · 0.95

Calls 4

on_send_logMethod · 0.95
send_serializedMethod · 0.95
serializeMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected