import numpy

def rsi(prices, n=14):
    '''
    params:
        prices: python list type, close price of list of time series candles
        n: rsi params, default is 14
    return:
        rsi: python list type, rsi value of prices
    '''    
    pass