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

Method send_ordermessage

projects/Python/proto/proto.py:3903–3915  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

3901 return 0
3902
3903 def send_ordermessage(self, value):
3904 # Serialize the value into the FBE stream
3905 serialized = self.ordermessage_model.serialize(value)
3906 assert (serialized > 0), "proto.OrderMessage serialization failed!"
3907 assert self.ordermessage_model.verify(), "proto.OrderMessage validation failed!"
3908
3909 # Log the value
3910 if self.logging:
3911 message = str(value)
3912 self.on_send_log(message)
3913
3914 # Send the serialized value
3915 return self.send_serialized(serialized)
3916
3917 def send_balancemessage(self, value):
3918 # 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