Fetch and Save Cryptocurrency Price Data from API
Beginner Mode
Start your terminal to use beginner mode.
Scenario
A cryptocurrency price API provides real-time market data in JSON format. You need to fetch the data and save it locally for later analysis.
Task
Write a Python script at /home/interview/fetch_crypto.py that sends a GET request to http://api.crypto.local/prices, retrieves the JSON response, and saves the complete response to /home/interview/crypto_data.json.
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →
Cisco