tsukiji/orderbook.py
def create_msg(options=None):
    '''
    Standard for message passing.

    All messages contain an id, a message-id and a timestamp.

    id: public key
    message-id: global incremented value
    timestamp: current time in iso format
    '''

    if options is None:
        options = {}

    global message_id

    message = {
        "id": get_public_bytestring(),
        "message-id": message_id,
        "timestamp": datetime.datetime.now().isoformat(),
    }

    message.update(options)

    message_id = message_id + 1

    return message

    Standard for message passing.

    All messages contain an id, a message-id and a timestamp.

    id: public key
    message-id: global incremented value
    timestamp: current time in iso format
    
Standard for message passing.
All messages contain an id, a message-id and a timestamp.

public key
message-id: global incremented value
timestamp: current time in iso format
Standard for message passing . All messages contain an id a message - id and a timestamp . public key message - id : global incremented value timestamp : current time in iso format
def create_msg(options=None):
    if options is None:
        options = {}
    global message_id
    message = {
        "id": get_public_bytestring(),
        "message-id": message_id,
        "timestamp": datetime.datetime.now().isoformat(),
    }
    message.update(options)
    message_id = message_id + 1
    return message
def create_msg ( options = None ) : if options is None : options = { } global message_id message = { "id" : get_public_bytestring ( ) , "message-id" : message_id , "timestamp" : datetime . datetime . now ( ) . isoformat ( ) , } message . update ( options ) message_id = message_id + 1 return message
Standard for message passing.
Standard for message passing .
'''
    Standard for message passing.

    All messages contain an id, a message-id and a timestamp.

    id: public key
    message-id: global incremented value
    timestamp: current time in iso format
    '''
options