Foundation course 10 · 5 Circles Academy · SEBI RA INH000020004

Python for Traders

Python basics for Indian-market traders

Python for Indian-market traders, from your first line of code

A 5 Circles foundation course for someone who has never written a line of code: 21 chapters in 5 modules, from installing Python to NumPy, pandas, charts, trading dates and statistics, each taught through one story — Arth learns Python from Mudra so that Vridhi's handwritten trading diary becomes a program. Every chapter runs real code and shows its real output, then a practice set and a ten-question quiz; every module ends in an exam, and the course closes on a Grand Final and a certificate. English and Hinglish, at your own pace.

  • 21 chapters · 5 modules — From your first print() to pandas, charts, trading dates and statistics — about 12 h 15 min of chapters.
  • Real code, real output — Every code block in the course was run, and the output you see is what it really prints. Each chapter adds "Your turn" exercises with a worked solution.
  • An exam after every module — Five module exams, then a 60-question Grand Final and a certificate. Modules 1–3 can be cleared by exam directly if you already code.

₹9,999 ₹2,915 · Save ₹7,084 · Founding price — first 100 learners · Incl. GST

  • 21 chapters · 5 modules — about 12 h 15 min, at your own pace
  • Beginner level — starts from your very first line of code
  • 210 quiz questions — ten per chapter, plus five module exams and the Grand Final
  • English · Hinglish — switch language and dark/light theme any time

Rahul Sarawgi — Founder · Principal Officer & Research Analyst · 5 Circles Pvt Ltd · SEBI RA Reg. No. INH000020004

What you'll learn

  • Set up Python the safe way (Colab, Anaconda or python.org), run your first lines and read an error from the bottom up
  • Store prices, quantities and symbols in variables of the right type, and do trading arithmetic without float surprises
  • Make a program decide and repeat: if/elif/else and loops over every day and every stock in a watchlist
  • Hold watchlists, OHLCV rows and portfolios in lists, tuples, sets and dictionaries, and clean messy symbols and dates
  • Write functions for returns and position sizing, read and write CSV and JSON trading logs, and catch bad market data before it breaks a calculation
  • Work with whole price series in NumPy and pandas: returns, a date index, resampling, missing values and merging
  • Draw price, volume and equity charts, and handle trading dates, time zones and NSE session timings as dated data
  • Measure a market with mean, standard deviation, correlation, percentiles and distributions — and know what each one does not tell you

Skills you'll build

  • Python Basics
  • Variables & Data Types
  • Conditions & Loops
  • Lists, Dicts & Sets
  • Functions & Modules
  • CSV & JSON Files
  • Errors & Debugging
  • Classes (OOP Basics)
  • NumPy
  • pandas
  • Matplotlib & Plotly
  • Dates, Time Zones & Statistics

Good to know

  • Two languages, two themes — Every chapter, practice set, quiz and exam in English and Hinglish — switch inside any chapter; dark and light themes. Code stays as code in both.
  • What every chapter holds — Story scenes, a Python-shell transcript, runnable code with its real output, line-by-line notes, "Your turn" exercises with solutions, Indian-market examples, diagrams, traps, a glossary, a mind map, a practice set and a ten-question quiz.
  • Education, not signals — No trade calls, no buy/sell recommendations, and nothing in the course places an order. Broker-agnostic: no single broker is endorsed.
  • Indian numbers, dated — Prices in the examples are labelled classroom numbers or synthetic data; NSE timings and rules carry their as-of date, and the course tells you to check the exchange's current page before relying on one.

Milestones

Five parts, from your first line of code to pandas, charts and statistics. Every module ends in an exam; the course closes on the Grand Final and a certificate.

  1. Part 1 · Python ABC · 4 chapters — What a program is, three ways to run Python, variables and data types for prices and quantities, talking to your program with input(), print() and f-strings, and Python as a trading calculator. You become: Print Pro
  2. Part 2 · Logic & Collections · 4 chapters — Decisions with if, elif and else; loops that do the same work for every day and every stock; lists, tuples, sets and dictionaries for watchlists, OHLCV rows and portfolios; and cleaning messy symbols, dates and labels. You become: Loop Learner
  3. Part 3 · Real Programs · 6 chapters — Functions for returns and position sizing, modules and pip, reading and writing TXT, CSV and JSON trading logs, errors, tracebacks and validating market data, classes for trades and portfolios, and a professional project folder with a virtual environment. You become: Function Builder
  4. Part 4 · NumPy & pandas · 4 chapters — Arrays and vectorised maths for whole price series, Series and DataFrames, a date index, resampling, missing values and merging on real-shaped OHLCV tables, and getting data in and out of CSV, Excel, JSON and APIs. You become: pandas Pro
  5. Part 5 · Charts, Time & Stats · 3 chapters — Price, volume, histogram and equity charts in Matplotlib and Plotly; trading dates, timestamps, time zones and NSE session timings as dated data; and the statistics every later quant course leans on — mean, spread, correlation, percentiles and distributions. You become: Quant Ready

Curriculum

21 chapters in 5 modules, about 12 h 15 min by the course's own count. Every chapter: a story-led lesson with runnable code, a practice set and a ten-question quiz — 210 quiz questions in all. Every module ends in an exam; Modules 1–3 can also be cleared by exam directly, and the course ends in a 60-question Grand Final and a certificate.

1. Module 1 · Python ABC — Your First Programs

Phase 1. What Python is and how to run it, how a program remembers prices, talks to you, and does trading maths. Chapters 1–4.

  1. 01 Introduction to Python — Your First Conversation with a Computer (35 min)
  2. 02 Variables and Data Types — Teaching Python to Remember Prices (35 min)
  3. 03 Input and Output — Talking to Your Program with input(), print() and f-strings (35 min)
  4. 04 Operators and Expressions — Python as Your Trading Calculator (35 min)

2. Module 2 · Decisions, Loops & Collections

Phase 1. Teach Python to decide, to repeat work for every day and every stock, to hold watchlists and portfolios, and to clean messy text. Chapters 5–8.

  1. 05 Conditional Statements — Teaching Python to Decide with if, elif and else (35 min)
  2. 06 Loops — Doing the Same Work for Every Day and Every Stock (35 min)
  3. 07 Python Data Structures — Lists, Tuples, Sets and Dictionaries for Watchlists, OHLCV and Portfolios (35 min)
  4. 08 Strings and String Methods — Cleaning Symbols, Dates and Labels (35 min)

3. Module 3 · Building Real Programs

Phase 1. Functions, modules and pip, files and trading logs, errors and debugging, classes for trades and portfolios, and a professional project setup. Chapters 9–14.

  1. 09 Functions — Reusable Tools for Returns, Position Sizing and Indicators (35 min)
  2. 10 Modules and Packages — Borrowing Superpowers with import and pip (35 min)
  3. 11 File Handling — Reading and Writing TXT, CSV and JSON Price Data and Trading Logs (35 min)
  4. 12 Error Handling and Debugging — Exceptions, try/except and Validating Market Data (35 min)
  5. 13 Object-Oriented Programming Basics — Classes for Instruments, Trades and Portfolios (35 min)
  6. 14 Virtual Environments and Project Structure — venv, pip, requirements.txt and Professional Folders (35 min)

4. Module 4 · NumPy & pandas — The Data Engine

Phase 2. Fast maths on whole price series, Series and DataFrames, real OHLCV handling, and getting data in and out of CSV, Excel, JSON and APIs. Chapters 15–18.

  1. 15 NumPy — Arrays, Vectorised Maths and Returns Calculations (35 min)
  2. 16 Pandas Fundamentals — Series, DataFrames, Indexing, Filtering and Sorting (35 min)
  3. 17 Pandas for Financial Data — DateTime Index, Resampling, Missing Values, Merging and OHLCV (35 min)
  4. 18 Data Import and Export — CSV, Excel, JSON and APIs for Market Data (35 min)

5. Module 5 · Charts, Time & Statistics

Phase 2. Draw price, volume and equity charts, handle trading dates, time zones and market sessions, and measure markets with statistics. Chapters 19–21.

  1. 19 Data Visualization — Matplotlib and Plotly for Price, Volume, Histograms and Equity Curves (35 min)
  2. 20 Date and Time Handling — Trading Dates, Timestamps, Time Zones and Market Sessions (35 min)
  3. 21 Statistical Computing — Mean, Variance, Standard Deviation, Correlation, Percentiles and Distributions (35 min)

Frequently asked questions

Will this course give me a strategy or an algo to trade?

No. It teaches Python on market-shaped data — prices, OHLCV tables, trading logs, dates and statistics — so that you can read and build your own tools. No example is a recommendation, nothing in the course places an order, and the prices in its examples are labelled classroom numbers or synthetic data.

Who is this programme for?

Someone who has never written code and wants Python for market work: a trader who keeps rules in a notebook or a spreadsheet, a student heading for quant or algo courses, or anyone who wants to read data instead of screenshots. It assumes basic market words (price, quantity, OHLC) and nothing else.

Do I need to know coding first?

No. Chapter 1 starts before your first line of code: what a program is and how to install Python safely. If you already code, Modules 1–3 each offer a direct exam, so you can clear them and move on to NumPy and pandas.

What do I need to run the code?

A browser is enough: Google Colab runs Python with a Google account. On a laptop, Anaconda or python.org work too, and Chapter 1 shows all three, with the safe place to download each. The lessons themselves open on a phone, but you will want a laptop or tablet to type code.

How do the quizzes, exams and certificate work?

Each chapter ends in a practice set and a ten-question quiz; passing the quiz opens the next chapter. Each module ends in an exam, and passing it opens the next module. After all five comes the Grand Final: 60 questions from all 21 chapters in 90 minutes, 70% to pass, 85% for distinction. Passing it earns a course-completion certificate from 5 Circles — not a SEBI or NISM certification.

I already have CIRCLE Q.U.A.N.T — do I need this?

No. These are the same 21 chapters as CIRCLE Q.U.A.N.T Foundations, the Python pre-course that comes with Stage 12 at /quant/foundations/. Python for Traders sells them on their own, for learners who want the Python first.

How is a foundation course different from a stage?

A stage is a long programme on the 5 Circles ladder — weeks of guided learning, one stage after another. A foundation course is one topic, start to finish, at your own pace, and sits outside the ladder. Python for Traders takes about 12 h 15 min by its own count.

Which languages is the course in?

English and Hinglish — every chapter, practice set, quiz and exam, one tap apart; code and regulatory text stay as they are. A हिंदी version is not part of this course; this page is in three languages, the course itself in two.

How do I get access?

Message us on WhatsApp (+91 638 749 7277). After payment you sign in with your 5 Circles account — one email and password for every course — and your mentor unlocks Python for Traders on it. Your progress is saved in the browser you learn on.

Does this give stock tips or trade calls?

No. This is an educational programme: it teaches you to read, decide and manage risk yourself. 5 Circles Pvt Ltd is a SEBI-registered Research Analyst (INH000020004) and gives no buy/sell recommendations inside the Academy.

What comes after this?

The natural next step is CIRCLE Q.U.A.N.T, Stage 12, which builds statistics, backtesting and machine learning on exactly these chapters. For algo basics without the full quant programme there is Stage 5, CIRCLE S.M.A.R.T PRO; the Academy page shows every stage.