http://www.californiaherps.com/films/snakefilms/WolfOfWallStreet.html

The python of wall street Part 5

Or make APIs great again

What is an API

https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.coprocess.com%2Fthe-system%2Finterfacing.html&psig=AOvVaw3nY0sA3s8bPu6yrvabXIfA&ust=1592815996315000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCIiWq6rEkuoCFQAAAAAdAAAAABAR

Why do you need it

https://www.programmableweb.com/sites/default/files/01-Webhooks_Typical_Flow.png

How to build yours

from flask import Flask, request
@app.route('/')
@app.route('/query-stock')
stock_symbol = request.args.get(‘stock_symbol’).upper()
 stock_symbol = request.args.get('stock_symbol').upper()
SQL = "SELECT * FROM master_record WHERE name = '"
SQL = utils.generate_query(SQL,stock_symbol)+"'"
df = utils.get_data(MYDB, SQL, NAME_DICT)
df = df[df.D_value != -100]
df = df[df.K_value != -100]
df = df[df.RSI != -100]
df = df[df.lower_list != -100]
df = df[df.upper_list != -100]Conclusion
if __name__ == '__main__':
app.debug = True
app.run(host='0.0.0.0', port=5000)

Conclusion

Next Steps

References

Engineer passionate about technology, data processing and AI at large, doing my best to help in the machine uprising https://elbichon.github.io/