ODSC London 2022 Half-Day Training
Dr. Yves J. Hilpisch
CEO The Python Quants | The AI Machine
Adjunct Professor of Computational Finance
| # -*- coding: utf-8 -*- | |
| """ | |
| /*************************************************************************** | |
| WMS Catasto Agenzia delle Entrate CC BY 4.0 | |
| ------------------- | |
| copyright : (C) 2020 by Giulio Fattori | |
| email : xxxxx.xxxxxxx@xxxxx.it | |
| ***************************************************************************/ | |
| """ |
DIY Quantitative Stock Market Investing
Dr. Yves J. Hilpisch | The Python Quants & The AI Machine
Saarbruecken, 6. SaarPython Meetup, 30. August 2022
(short link to this Gist: http://bit.ly/spm_diy)
This is the Gist the For Python Quants Bootcamp in London 24. November 2017 (http://fpq.io)
This fourth boocamp day is about Python for Algorithmic Trading (II).
Topics
| from suds.client import Client | |
| client = Client('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl') | |
| # Returns a dict-like object with the fields 'countryCode', 'vatNumber', | |
| # 'requestDate', 'valid' (boolean), 'name', and 'address'. | |
| result = client.service.checkVat('IE', '6390845P') |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| driver = webdriver.Firefox() | |
| driver.get("http://www.google.com") | |
| input_element = driver.find_element_by_name("q") | |
| input_element.send_keys("python") |
| # -*- encoding: utf-8 -*- | |
| # requires a recent enough python with idna support in socket | |
| # pyopenssl, cryptography and idna | |
| from OpenSSL import SSL | |
| from cryptography import x509 | |
| from cryptography.x509.oid import NameOID | |
| import idna | |
| from socket import socket |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| """ | |
| A minimal web server that runs shell commands, powered by Tornado and its | |
| Subprocess module. It does non-blocking IO and streams the response. | |
| To start the server: | |
| $ python tornado_subprocess.py | |
| To send a shell command using httpie: |