Code refractoring - fix error - Stock Trading Knowledge

Job ID: 33891534

Budget: $10 – $30 AUD

I have made a basic react website.

- It interacts with Robbinhood.com trading platform.
- Can place, cancel and close trades.
- Can get stock price.

Issue:
- I am trying to allow for SL and TPs for the opened positions. It half works. It only works when I have one position open. If I have more than one position, it will change the state back and forth in the JSON file (DB).
Related categories: JavaScript Node.js React.js Trading