Hi guys, I am trying to figure out, how could I get value of each ticker on different loops.
From this table I need to get: ticker(NKTR), close price (43,29), contracts (43) and add these values to new variables, use them somehow and then let the code run again to get again ticker, close, contracts (from the second row) and do the same process again.
NKTR 43.29 43.0
GE 218.82 219.0
FB 13.43 13.0
I tried this code but I guess I have to use function while or something, but not sure...
import csv
with open('/Users/martin/Desktop/signals_test3.csv') as f:
reader = csv.reader(f)
next (reader)
for row in reader:
print (row[1], row[2], row[3])
stock = (row[1])
Close = (row[2])
Contracts = (row[3])
print(stock, Close, Contracts)
Thank you for any tips.