StrangeLoopGames / EcoSuggestions

Repo for storing Eco game suggestions, separate from EcoIssues
34 stars 1 forks source link

Web API: Add endpoint for market and currency data #1672

Open oddiz opened 2 years ago

oddiz commented 2 years ago

I believe this would be trivial to implement and open up whole lot of possibilities for devs and servers owners.

Implementation

I'd suggest adding the endpoint into DataExport | Eco ModKit Documentation (thanks @thetestgame for the awesome doc). Also suggest returning something like this:

GET /api/v1/exporter/shops(or market?)

returns:

- All shops with info:
  - owner
  - coordinates
  - open-closed?
  - shop money
  - orders:
    - buy
      - Items:
        - identifier 
        - price
        - amount 
    - sell 
        ...

GET /api/v1/exporter/currency

returns:

- Currencies
  - Buy and sell orders
  - Reserve info

After the API implementation, you could look for implementing a market browser in the default server webpage which would be pretty neat.

Ideas

Positives

All in all my thought is that positives outweighs negatives, any QoL improvement is a good improvement. πŸ™‚

Borimino commented 2 years ago

πŸ‘

brignolff commented 1 year ago

Increased wealth gap and pollution:

Someone could find out that they are good at making money sitting all day analysing the market and day-trading stocks items. Starts earning money off of actual workers without a meaningful contribution to society, gets rich, buys more money with money and arranges private space travels to meteor for themselves while irresponsibly spending valuable resources of the server

Since eco is a simulation of a human ecosystem, I don't think it's an issue that should be considered by the devs. It will be up to the players to address this issue. They could for example make a weekly or daily tax for players that have more than x amount of money in bank.