'How is profit calculated in gym environment?

So I'm using the gym stocks environment to train a model using A2C policy but I want to understand how the profit is calculated by the model, in the documentation that I read it said that the profit is calculated as

Profit = FinalMoney / StartingMoney

but I don't understand what the starting money here is as there is no parameter that I have passed which corresponds to that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source