-
git clone https://github.com/ohadkorenok/stock_quote_project
-
cd stock_quote_project
-
docker-compose build --no-cache
. If you don't have docker compose installed, you can install it through:pip install docker-compose
or through docker-compose official website -
docker-compose up
- open Postman and import
stocks_collection.json
file
in a different folder:
-
git clone -b rate_limiter https://github.com/ohadkorenok/stock_quote_project.git
-
Same as steps 2-5 in Part 1
-
URL -
stocks/SYMBOL
: This route gets a stock symbol (for exampleQQQ
) and returns a JSON object representing the stock data from Yahoo API -
URL -
stocks/total_cost
: This route gets a GET request and returns the total cost of the queries to the 3rd part service since last reset. -
URL -
stocks/reset_cost
: This route gets a GET request and reset the cost counter correspondingly.