Would someone be interested in sharing an algo that checks to see if the open of the s&p500 emini is greater than it's previous close,

I'm having some trouble accessing history pricing and honestly I can tell my code is so far off I'm better having someone else show me an example so that i can get started playing around in python). Thanks !


Also where can I find information regarding the different futures contracts I can trade ? As well as how I can access them ? Is there a list with corresponding syntax ?