Back to problems

Fetch and Cache Daily Stock Prices Across a Date Range

Algorithm · Tradedesk · Hard

Write a function solution(first_date, last_date) that contacts a documented HTTP service and returns every trading day within the inclusive interval, with that day's opening and closing prices. Both arguments are strings that must be parsed and validated as calendar dates before any network request is made. The service documentation, including pagination and stock symbol, is provided by the assessment environment; the implementation must rely on those provided values instead…

Checking your access…