예제 #1
0
파일: server.py 프로젝트: dm04806/systemn
	def mostactive(self, location, pricemin, pricemax):
		global scan 
		scan = []
		subscript = ScannerSubscription() 
		subscript.numberOfRows(200) 
		subscript.m_scanCode = 'MOST_ACTIVE' 
		subscript.m_instrument = 'STK' 
		subscript.m_averageOptionVolumeAbove = '' 
		subscript.m_couponRateAbove = '' 
		subscript.m_couponRateBelow = '' 
		subscript.m_abovePrice = pricemin 
		subscript.m_belowPrice = pricemax
		subscript.m_marketCapAbove = '' 
		subscript.m_marketCapBelow = '' 
		subscript.m_aboveVolume = '' 
		subscript.m_stockTypeFilter = 'ALL' 
		#subscript.locationCode('STK.NASDAQ.NMS') 
		#subscript.locationCode('STK.NYSE') 
		#subscript.locationCode('STK.AMEX') 
		subscript.locationCode(location) 
		con.reqScannerSubscription(qqqq_id, subscript) 
		sleep(10)
		return(scan)