def maxima(records):
    """
    Calculate the indices of the records in the provided list with the min buy and max sell prices.

    :param records: List of dictionaries containing price information.
    :return: A tuple containing the indices for the records with min buy and max sell price in the input list.
    """

    bi = 0
    si = 0

    bmin = records[0]['buy']
    smax = records[0]['sell']

    for ii in range(1, len(records)):

        record = records[ii]

        if record['buy'] < bmin:

            bi = ii
            bmin = record['buy']

        if record['sell'] > smax:

            si = ii
            smax = record['sell']

    return bi, si