It is your first day as a SWE at a trading firm that specializes in trading Oleos, a fictional currency. Your team's intern, during their final week, created this risk tracking utility to help traders keep track of their risk exposure. Unfortunately, the intern has already left for their next internship and you are left to debug and fix the code. The traders tell you that the script is not working as expected and they are losing money because of it. You have been tasked with fixing the script and ensuring that it is working as expected. Consider the following tips:
- Read the code and understand what it is doing - all of the unit tests will pass.
- Use the logging library to help you understand what is happening in the code.
- Add yourself to the
progress.mdfile on the main branch. - Fork this repo for yourself
- Clone the repo locally (Ensure you are on Branch 0!)
- Navigate to the repository root and use
mkdir build && cd buildto create a build directory and navigate to it - Use
task buildto build the project,./TradeRiskTrackerto run the executable, andtask testto run the tests - Identify the bug in the script and fix it
- Update unit tests to cover the bug
- Create a PR answering the questions below and send it to your project mentor
Please include the following when you are writing your PR:
General things:
- What is the purpose of this PR?
- What changes did you make? Why?
- What bugs did you find while testing?
This PR Specific:
- What was the bug you found?
- How did you address it?
- What did you struggle with?
- Is there anything you would change about this step?