def fxcm_ohlc(p_instrument, p_period, p_ini, p_end):
    '\n    to download OHLC prices from FXCM broker\n\n    Parameters\n    ----------\n    \n    p_instrument: str\n        The name of the instrument according to fxcmpy\n\n    p_freq: str\n        The frequency or granularity of prices, according to fxcmpy\n\n    p_ini: str\n        Initial timestamp, in format "yyyy-mm-dd hh:mm:ss"\n\n    p_end: str\n        final timestamp, in format "yyyy-mm-dd hh:mm:ss"\n\n    Returns\n    -------\n\n    data_ohlc: DataFrame\n        with columns Open, High, Low, Close and Timestamp as index\n\n    '
    data_ohlc = con.get_candles(instrument=p_instrument, period=p_period, start=p_ini, end=p_end)
    data_ohlc['open'] = ((data_ohlc['bidopen'] + data_ohlc['askopen']) * 0.5)
    data_ohlc['high'] = ((data_ohlc['bidhigh'] + data_ohlc['askhigh']) * 0.5)
    data_ohlc['low'] = ((data_ohlc['bidlow'] + data_ohlc['asklow']) * 0.5)
    data_ohlc['close'] = ((data_ohlc['bidclose'] + data_ohlc['askclose']) * 0.5)
    data_ohlc = data_ohlc[['open', 'high', 'low', 'close']]
    data_ohlc.index.name = 'timestamp'
    return data_ohlc
to download OHLC prices from FXCM broker

Parameters
----------

p_instrument: str
    The name of the instrument according to fxcmpy

p_freq: str
    The frequency or granularity of prices, according to fxcmpy

p_ini: str
    Initial timestamp, in format "yyyy-mm-dd hh:mm:ss"

p_end: str
    final timestamp, in format "yyyy-mm-dd hh:mm:ss"

Returns
-------

data_ohlc: DataFrame
    with columns Open, High, Low, Close and Timestamp as index
def fxcm_ohlc(p_instrument, p_period, p_ini, p_end):
    '\n    to download OHLC prices from FXCM broker\n\n    Parameters\n    ----------\n    \n    p_instrument: str\n        The name of the instrument according to fxcmpy\n\n    p_freq: str\n        The frequency or granularity of prices, according to fxcmpy\n\n    p_ini: str\n        Initial timestamp, in format "yyyy-mm-dd hh:mm:ss"\n\n    p_end: str\n        final timestamp, in format "yyyy-mm-dd hh:mm:ss"\n\n    Returns\n    -------\n\n    data_ohlc: DataFrame\n        with columns Open, High, Low, Close and Timestamp as index\n\n    '
    data_ohlc = con.get_candles(instrument=p_instrument, period=p_period, start=p_ini, end=p_end)
    data_ohlc['open'] = ((data_ohlc['bidopen'] + data_ohlc['askopen']) * 0.5)
    data_ohlc['high'] = ((data_ohlc['bidhigh'] + data_ohlc['askhigh']) * 0.5)
    data_ohlc['low'] = ((data_ohlc['bidlow'] + data_ohlc['asklow']) * 0.5)
    data_ohlc['close'] = ((data_ohlc['bidclose'] + data_ohlc['askclose']) * 0.5)
    data_ohlc = data_ohlc[['open', 'high', 'low', 'close']]
    data_ohlc.index.name = 'timestamp'
    return data_ohlc