Skip to main content

NumPy

Use np to access [numpy] function. (http://www.numpy.org/)

Example​

Use np.append to append close price.

close_price = float( candles[exchange][pair][0]['close'])
self.close_price_trace = np.append(self.close_price_trace, [close_price])