Basic stock tick working in python