smarkets / smk_python_sdk

Smarkets Python SDK
http://smarkets.github.com/
MIT License
18 stars 11 forks source link

Add raw bytes to messages sent to global handlers #16

Closed jcpetruzza closed 7 years ago

jcpetruzza commented 7 years ago

At the moment, a user of the api cannot save the raw bytes that were received by the client. This means that one cannot implement reliable logging of what was received (e.g., for forensics). So now we send a namedtuple that container both the decoded protobuf message and the raw bytes of the message.