title: FIX protocol in Python - implement login and request for streaming quote
body: <p>I am trying to implement basic FIX requests with python quickfix (FIX 4.2), however the documentation is sparse for me to understand it fully (and i have done quite a bit of research ,links at the end of the question - so please be assured that its not a question without doing any digging up)</p>
  
  <h2>Login request --- A</h2>
  
  <pre><code>8=FIX.4.2 | 9=108 | 35=A | 34=1 | 49=ACCOUNTXXX | 52=20161116-00:00:15.281 | 56=CNX | 553=ACCOUNTXXXSTR1 | 554=Stater123 | 98=0 | 108=60 | 141=Y | 10=133 |
  </code></pre>
  
  <h3>this will be the expected  Login response</h3>
  
  <pre><code>8=FIX.4.2 | 9=77 | 35=A | 49=CNX | 34=1 | 52=20161116-00:00:17.928 | 56= ACCOUNTXXXSTR1 | 98=0 | 108=60 | 141=Y | 10=140 |
  </code></pre>
  
  <h3>Request for live/streaming quote in EUR/USD    --- B</h3>
  
  <pre><code>8=FIX.4.2 | 9=142 | 35=V | 34=8 | 49=ACCOUNTXXX | 52=20161116-12:19:48.269 | 56=CNX | 146=1 | 55=EUR/USD | 262=2016110213351833862 | 263=2 | 264=1 | 265=1 | 266=Y | 267=2 | 269=0 | 269=1 | 10=110 |
  </code></pre>
  
  <h3>Response will come like this and I need to handle it by keeping a socket/stream open --- STREAM</h3>
  
  <pre><code>8=FIX.4.2 | 9=227 | 35=X | 49=CNX | 34=241 | 52=20161116-12:20:03.651 | 56=ACCOUNTXXX | 262=2016110213351834170 | 268=2 | 279=0 | 269=0 | 278=141 | 55=EUR/USD | 270=1.76371 | 15=GBP | 271=1000000 | 346=1 | 279=0 | 269=1 | 278=142 | 55=EUR/USD | 270=1.76406 | 15=GBP | 271=1000000 | 346=1 | 10=223 | 
  </code></pre>
  
  <h3>send heartbeat after every 60 seconds   - C</h3>
  
  <pre><code>8=FIX.4.2 | 9=59 | 35=0 | 34=3 | 49=ACCOUNTXXX | 52=20161116-00:01:15.868 | 56=CNX | 10=054 |
  </code></pre>
  
  <p>I wanted a bit of advice and some basic code structure on how to set up the Python code to send A, B, C and open a socket/stream to keep reading the data in STREAM and logging it to console</p>
  
  <p>Where have I looked already?</p>
  
  <p><a href="https://github.com/quickfix/quickfix/blob/master/examples/executor/python/executor.py" rel="noreferrer">https://github.com/quickfix/quickfix/blob/master/examples/executor/python/executor.py</a></p>
  
  <p><a href="https://futures.io/matlab-r-project-python/35213-python-quickfix.html" rel="noreferrer">https://futures.io/matlab-r-project-python/35213-python-quickfix.html</a></p>
  
  <p><a href="https://github.com/tianyilai/QuickFix-python-client/tree/master/spec" rel="noreferrer">https://github.com/tianyilai/QuickFix-python-client/tree/master/spec</a></p>
  
  <p>however, the documentation and the examples are sparse and I am struggling to find my way through
  Thanks</p>