Closed eseidel closed 1 year ago
I've done a ton of work on trading since this issue was filed. I actually turned off my trading logic the last month or so to focus on making my mining (and mounts) better. I'm not sure this issue has a lot of utility being open, so closing. A more up-to-date todo list is kept in the README: https://github.com/eseidel/space_traders/blob/main/README.md
Right now I've done some basic integration of market data from: https://st.feba66.de/prices Via: https://github.com/eseidel/space_traders/blob/main/packages/space_traders_cli/lib/prices.dart
But there are a bunch of things wrong with this approach.
Things I've considered doing with price data is planning trade routes.
The game does not let you see price information at a waypoint unless you have a ship there. You can obviously record recent transactions in your own database when you visit a waypoint.
The game will let you see what imports / exports / allowed-tradegoods (not necessarily wanted by the waypoint, just allowed for trading between agents) a given market handles.
A basic trading algorithm might be to buy goods locally that seem at the greatest credits discount below median trade value and then head towards either a nearby market with recently known above-median trade prices, or head blindly to a market marked as "import" for those goods, on the assumption that should give you median-or-better trade prices?