in fix_session.py [0:0]
def submit_order(self, destination, side, symbol, quantity, price=None, account=None, custom_fields=None):
request = OrderRequest()
request.set_symbol(symbol)
request.set_destination(destination)
request.set_side(side)
request.set_quantity(quantity)
if price is not None:
request.set_price(price)
request.set_order_type(fix.OrdType_LIMIT)
else:
request.set_order_type(fix.OrdType_MARKET)
if account:
request.set_account(account)
if custom_fields:
request.set_custom_fields(custom_fields)
self.submit(request)