class_docstr: Oanda Data Feed.
  
  Params:
  
    - ``qcheck`` (default: ``0.5``)
  
      Time in seconds to wake up if no data is received to give a chance to
      resample/replay packets properly and pass notifications up the chain
  
    - ``historical`` (default: ``False``)
  
      If set to ``True`` the data feed will stop after doing the first
      download of data.
  
      The standard data feed parameters ``fromdate`` and ``todate`` will be
      used as reference.
  
      The data feed will make multiple requests if the requested duration is
      larger than the one allowed by IB given the timeframe/compression
      chosen for the data.
  
    - ``backfill_start`` (default: ``True``)
  
      Perform backfilling at the start. The maximum possible historical data
      will be fetched in a single request.
  
    - ``backfill`` (default: ``True``)
  
      Perform backfilling after a disconnection/reconnection cycle. The gap
      duration will be used to download the smallest possible amount of data
  
    - ``backfill_from`` (default: ``None``)
  
      An additional data source can be passed to do an initial layer of
      backfilling. Once the data source is depleted and if requested,
      backfilling from IB will take place. This is ideally meant to backfill
      from already stored sources like a file on disk, but not limited to.
  
    - ``bidask`` (default: ``True``)
  
      If ``True``, then the historical/backfilling requests will request
      bid/ask prices from the server
  
      If ``False``, then *midpoint* will be requested
  
    - ``useask`` (default: ``False``)
  
      If ``True`` the *ask* part of the *bidask* prices will be used instead
      of the default use of *bid*
  
    - ``includeFirst`` (default: ``True``)
  
      Influence the delivery of the 1st bar of a historical/backfilling
      request by setting the parameter directly to the Oanda API calls
  
    - ``reconnect`` (default: ``True``)
  
      Reconnect when network connection is down
  
    - ``reconnections`` (default: ``-1``)
  
      Number of times to attempt reconnections: ``-1`` means forever
  
    - ``reconntimeout`` (default: ``5.0``)
  
      Time in seconds to wait in between reconnection attemps
  
  This data feed supports only this mapping of ``timeframe`` and
  ``compression``, which comply with the definitions in the OANDA API
  Developer's Guid::
  
      (TimeFrame.Seconds, 5): 'S5',
      (TimeFrame.Seconds, 10): 'S10',
      (TimeFrame.Seconds, 15): 'S15',
      (TimeFrame.Seconds, 30): 'S30',
      (TimeFrame.Minutes, 1): 'M1',
      (TimeFrame.Minutes, 2): 'M3',
      (TimeFrame.Minutes, 3): 'M3',
      (TimeFrame.Minutes, 4): 'M4',
      (TimeFrame.Minutes, 5): 'M5',
      (TimeFrame.Minutes, 10): 'M10',
      (TimeFrame.Minutes, 15): 'M15',
      (TimeFrame.Minutes, 30): 'M30',
      (TimeFrame.Minutes, 60): 'H1',
      (TimeFrame.Minutes, 120): 'H2',
      (TimeFrame.Minutes, 180): 'H3',
      (TimeFrame.Minutes, 240): 'H4',
      (TimeFrame.Minutes, 360): 'H6',
      (TimeFrame.Minutes, 480): 'H8',
      (TimeFrame.Days, 1): 'D',
      (TimeFrame.Weeks, 1): 'W',
      (TimeFrame.Months, 1): 'M',
  
  Any other combination will be rejected
docstr: Receives an environment (cerebro) and passes it over to the store it
  belongs to
docstr_tok: ["Receives","an","environment","(","cerebro",")","and","passes","it","over","to","the","store","it","belongs","to"]
code: def setenvironment(self, env):
      """Receives an environment (cerebro) and passes it over to the store it
      belongs to"""
      super(OandaData, self).setenvironment(env)
      env.addstore(self.o)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from datetime import datetime, timedelta
  from backtrader.feed import DataBase
  from backtrader import TimeFrame, date2num, num2date
  from backtrader.utils.py3 import integer_types, queue, string_types, with_metaclass
  from backtrader.metabase import MetaParams
  from backtrader.stores import oandastore
label_desc: Use image node_id 4 for calling the OandaData obj's underlying member method code with example usage: obj.setenvironment(env) without return types