def Order(timespan, type, price, instrument, quantity):
    """Wrap an order up for submission"""
    x = {'Order': {**timespan, **type, **price, 'Instrmt': {**instrument},
        'OrdQty': {**quantity}}}
    if x['Order']['Instrmt']['SecTyp'] == 'OPT':
        x['Order']['OrdQty']['Qty'] = str(round(float(x['Order']['OrdQty'][
            'Qty'])))
    return x
