A quant fund manager + A HFT prop desk founder + A quant teacher = a session worth watching
On 9 April, we hosted Kelvin Foo, Dr Gaurav Raizada, and Vivek Krishnamoorthy for a workshop on Algorithmic Trading & Options Risk Management.
Watch the recording:
www.quantinsti.com/articles/algorithmic-trading-python-ai-options-risk-management-webinar/
.
. A quant fund manager + A HFT prop desk founder + A quant teacher = a session worth watching
On 9 April, we hosted Kelvin Foo, Dr Gaurav Raizada, and Vivek Krishnamoorthy for a workshop on Algorithmic Trading & Options Risk Management.
Watch the recording:
www.quantinsti.com/articles/algorithmic-trading-python-ai-options-risk-management-webinar/
.
. This video is from a free course on https://quantra.quantinsti.com/course...
Timestamp:
00:08 - Concept of modularization
00:15 - Module designing
02:42 - Python library
In this video, we will understand about Python modules and packages. Let us begin by intuitively understanding the concept of modularization and the need for same. Modular designing is an approach in which a complex design is broken down into smaller parts or modules. These components can be independently created and tested. For example, consider a car making company.
A car in itself is a complex product consisting of a car body, the braking system, the engine, the fuel supply system, the suspension and steering system, the transmission system, and others. Usually these parts are designed, developed, and tested independently in different departments of the company. These components are then assembled and dispatched as a whole product the car. This saves time and is cost effective. In a similar fashion, modules and packages make it easier to program complex codes.
Since Python is an open sourced programming language different programmers have contributed useful modules and enriched the language. Any file in Python which has a .py extension can be a module. A module can consist of arbitrary objects, classes, attributes, or functions which can be imported by users.
For example, the command ‘import math’, imports a module which consists of mathematical constants and functions like math.pi, math.sin, math.cos etc. Modules can even be imported using an alias. For example, ‘numpy’ can be imported as ‘import numpy as np’ and used as np.diag [1, 2, 3, 4] or np.e to get the shown output. If modules are files containing Python statements and Python definitions then a bundle of multiple modules and packages together form a package. A package is a directory with multiple Python files.
Each package must contain a file named “init.py”. This can also be a blank file whose main purpose is make Python treat the path where the files are stored as packages and to prevent directories with common names.
For example, ‘simple_package’, is a package consisting of ‘x.py’, ‘y.py’ and ‘init.py’ modules. The Python Standard Library is a collection of the essential packages and independent modules that gets imported automatically when you set up the Python environment. Additional packages can be added by using ‘pip’ install syntax. Note that, in Python, the word ‘library’ and ‘package’, can be used interchangeably.
Next, we will work on the IPython notebook and use some packages. Stay tuned!
Quantra is an online education portal that specializes in Algorithmic and Quantitative trading. Quantra offers various bite-sized, self-paced and interactive courses that are perfect for busy professionals, seeking implementable knowledge in this domain.
Find more info on - https://quantra.quantinsti.com/
Like us on Facebook: / goquantra
Follow us on Twitter: / goquantra