API Foundations

The mechanics of calling a market-data API — requests, identifiers, the two kinds of limit, error handling, and the habits that stop a beginner producing confidently wrong results.

4 units · 16 lessons · 76 min read · plus hands-on practice, at your pace

Start here

What actually happens when you ask a server for a stock price?

How an API Answers a Question · 6 min read · foundations

Start the first lesson

Unit 1 How an API Answers a Question

  1. What actually happens when you ask a server for a stock price? 6 min
  2. Which part of a request is doing the work? 5 min
  3. JSON or CSV, and why the default can bite you 5 min
  4. How do you answer your own API questions instead of guessing? 5 min
Practice Check · Unit 1 A short check · cannot be failed Start

Unit 2 Naming the Thing You Want

  1. Why isn't AAPL enough to name a stock? 4 min
  2. Why does a bare AAPL work when everything tells you to write AAPL.US? 4 min
  3. What happens to your history when a ticker gets renamed? 5 min
  4. Why is FOREX in the exchange list when it isn't an exchange? 4 min
Practice Check · Unit 2 A short check · cannot be failed Start

Unit 3 Limits, Cost and Failure

  1. Why does one script die at noon and another die in ten seconds? 5 min
  2. Why does the account endpoint call your daily quota a rate limit? 5 min
  3. Why did one request use 100 calls? 4 min
  4. What is the API telling you when it says no? 5 min
Practice Check · Unit 3 A short check · cannot be failed Start

Unit 4 Trusting What Comes Back

  1. Will the same historical query return the same rows tomorrow? 4 min
  2. What time is it in your data? 4 min
  3. Is that a zero, a null, or a day that never happened? 4 min
  4. API foundations — course checkpoint 7 min
Practice Check · Unit 4 A short check · cannot be failed Start

Last Course exam

One exam, the whole course Unlocks when you have read all 16 lessons

Passing it earns the course certificate. It also counts toward the Builder track (course 2 of 13): pass every course exam in a track to earn its track certificate.