This repository was created to evaluate the level of programming
- python 3.10
- pipenv
- docker-componse
Install the dependencies:
pipenv install
docker-compose up -d
pipenv run server
You can use this api on http://127.0.0.1:8000/docs#/, but if this port is already in use it can be changed on pipfile
Make a POST /nasdaq/trade
Example:
{
"action": "buy" || "sell",
"symbol": "AAPL",
"shares": 5
}
Make a POST /nasdaq/list-stock
Example:
{
"symbol": "AAPL"
}
Make a POST /nasdaq/list-stock
Example:
{
"symbol": "AAPL"
"dateFrom": "YYYY-MM-DD", | optional
"dateTo": "YYYY-MM-DD", | optional
}