title: IbPy cant send order - must specify an account
body: <p>Im trying to use the following code to try an send an order to TWS to place on google shares. I do not understand why it keeps on asking for an account, I have TWS open and have checked enable ActiveX etc. Ive also checked the socket numbers and client ID are correct.</p>
  
  <pre><code>from ib.ext.Contract import Contract
  from ib.ext.Order import Order
  from ib.opt import Connection, message
  import time
  
  def error_handler(msg):
      print "Server Error: %s" % msg
  
  def reply_handler(msg):
      print "Server Response: %s, %s" % (msg.typeName, msg)
  
  def create_contract(symbol, sec_type, exch, prim_exch, curr):
      contract = Contract()
      contract.m_symbol = symbol
      contract.m_secType = sec_type
      contract.m_exchange = exch
      contract.m_primaryExch = prim_exch
      contract.m_currency = curr
      return contract
  
  def create_order(order_type, quantity, action):
      order = Order()
      order.m_orderType = order_type
      order.m_totalQuantity = quantity
      order.m_action = action
      return order
  
  if __name__ == "__main__":
      tws_conn = Connection.create(port=7496, clientId=100)
      tws_conn.connect()
  
      tws_conn.register(error_handler, 'Error')
  
      tws_conn.registerAll(reply_handler)
  
      order_id = 200
  
      goog_contract = create_contract('GOOG', 'STK', 'SMART', 'SMART', 'USD')
  
      goog_order = create_order('MKT', 5, 'BUY')
  
      tws_conn.placeOrder(order_id, goog_contract, goog_order)
  
      time.sleep(1)
  
      tws_conn.disconnect()
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Server Response: error, &lt;error id=200, errorCode=321, errorMsg=Error validating request:-'ie' : cause - You must specify an account.
  </code></pre>
  
  <p>If I run the code in a demo IB account the order gets placed and filled, so everything works! But when I run the same code in my paper trading account, that is when I get the above error message.</p>
  
  <p>Does anyone know to to "specify an account" i.e. enter my account number somewhere?</p>