Description
We need to update our scripts to write the tradestate to a new updated path in the Firebase database. The tradestate along with the orders should be written in the firebase by checking the strategy falls under which segment.
Current Behavior
Currently, the tradestate is being written to Strategies without the segment.
Desired Behavior
The tradestate should be written to Straegies inside the segment in the Firebase database.
Tasks
[x] Identify all locations in the codebase where tradestate is being written to Firebase
[x] Update the Firebase write operations to use the new path
[x] Ensure any read operations are also updated to fetch from the new path
[x] Update any relevant documentation or comments in the code
[x] Write and run tests to verify the correct writing and reading of tradestate from the new path
[x] Update any affected components or services that rely on the tradestate location
Description We need to update our scripts to write the tradestate to a new updated path in the Firebase database. The tradestate along with the orders should be written in the firebase by checking the strategy falls under which segment.
Current Behavior Currently, the tradestate is being written to Strategies without the segment.
Desired Behavior The tradestate should be written to Straegies inside the segment in the Firebase database.
Tasks