title: Having problems reading more than one piece of data in a pickle file
body: <p>Here's my code:</p>
  <pre><code>import sqlite3
  import pickle
  
  connection = sqlite3.connect(&quot;D:\\Programming\\TradingInvestment\\Datasets\\Binance_Trades_Data.db&quot;)
  cur = connection.cursor()
  
  asset_list = [&quot;BTC&quot;, &quot;ETH&quot;, &quot;AAVE&quot;, &quot;YFI&quot;, &quot;COMP&quot;]
  
  for asset in asset_list:
      table = cur.execute(&quot;SELECT * FROM &quot; + asset + &quot;USDT_TXS ORDER BY time&quot;)
      for i in table:
          data = cur.fetchone()
          if int(str(data[4])[:-3]) &gt; 1608812669:
              with open(asset + &quot;.pickle&quot;, &quot;ab&quot;) as file:
                  datapoint = (int(str(data[4])[:-3]), data[1])
                  pickle.dump(datapoint, file)
  </code></pre>
  <p>I then try to use this to read all the datapoints in one of the files:</p>
  <pre><code>import pickle
  
  file_read =  pickle.load(open(&quot;BTC.pickle&quot;, &quot;rb&quot;))
  
  for i in file_read:
      print(i)
  </code></pre>
  <p>But all I get is the first datapoint... I'm probably missing something simple but can't figure it out</p>