This datapack will allow you to buy and sell shares in minecraft.
To start your way as a shareholder, you need to deposit diamonds into your wallet, to do this, take the right amount of diamonds in your hand and write - /trigger insert If you need to output diamonds, then write - /trigger take set number (Do not output more than 1000 at a time!)
You can check your balance by writing - /trigger stat_stocks , as well as the number of purchased shares and their price at the moment, last and the year before, are written there
To buy shares, enter - /trigger buy_stocks set number To sell them - /trigger sell_stocks set number
There is also a small config in the datapack, but it's better to figure it out for yourself - /function stocks:get_config
Build your own joint-stock company!