soared 2 days ago

I did this same thing but via a google sheet, really fun either how excellent the wiki’s API is. The profit per hour shown here is abysmal - you’d make more money doing pretty much anything.

I’d like to see market-level and category-level analysis on price trends (ie all magic-combat gear is trending up, or this specific item has a lagging relationship with another).

If anyone is curious, prices may be out of date but here is my profitability spreadsheet, time inputs, etc for various things using the api. This is better than the wiki since it can take into account trade limits, compare unlisted methods, hourly upkeep costs, etc. https://docs.google.com/spreadsheets/u/0/d/1iekEqInA2PwEuj1W...

You can tell likely from the methods I’m botting - turns out writing bots is even more fun than actually playing. Too bad private servers are being taken down through legal means, as I can bot there without ethical concerns.

  • partypete a day ago

    Keep in mind that the actual profit if the bot were not randomly choosing between each model version would be about 600k/hour. You're conflating the experimental profit, wherein each model only has access to 1/3 of the potential trades, to what the profit would be if only the best model were making trades.

    Also these bots have been running for over a year almost every day without being banned.

  • Salgat a day ago

    Wait why is botting okay if it's on a private server? You mean the other players are okay with it?

nojs 3 days ago

Haha, in the heyday of Runescape it used to be possible to simply have buy and sell orders sitting in the GE for the same rare items simultaneously, and over time they’d both get filled for a profit. I guess you would call it “market making”.

  • sharperguy 2 days ago

    I used to wake up before school, dump my entire stack of gold on the GE for bones (just the regular ones) at a few gp below average price. By the end of the day the order would usually be fulfilled. Then I'd dump them back on the market at a few gp above average price and it would be fulfilled by the morning.

    Most days it would net me a small profit, ocasionally prices would fall slightly throughout the day and I'd lose a little, but equally some days it would rise and I'd make extra.

    • Spivak 2 days ago

      How could you lose money on a standing sell order for a higher price than what you bought it for?

      • sdwr 2 days ago

        If the market moves down after you bought, you are stuck holding the bag. You can either a) sell for a loss, or b) keep your item, and be unable to make further trades until the price (maybe?) recovers. Remember that OP put his entire stack into this, so he can't run the spread while his item isn't selling.

      • ironSkillet 2 days ago

        You can have unrealized losses since it's possible that the value of your items is less than the value of the goods you paid to receive them. To repeat this strategy the next day, you need to convert your items back into gold and realize the loss (or just introduce more gold via other means).

      • sidewndr46 2 days ago

        lots of video games charge a fee of in game currency for a transaction through an auction house or other system. It acts like a sink against inflation in the video game economy

        • immibis 2 days ago

          RuneScape did not, and did have massive inflation, to the point that some players would have trouble keeping their wealth in gold coins due to hitting the signed integer limit.

    • andrepd 2 days ago

      You needed an FPGA to pull your orders on underlying price moves /s

  • mhh__ 2 days ago

    This is indeed how market making works.

  • bboygravity 3 days ago

    This is actually kind of how the US market works with essentially 1 market maker who is by far the largest and who also happens to be the largest political donor (100 million a year to gop alone). Oh, and like Bernie Madoff, the owner of that market maker also owns a hedge fund (which like Bernie's makes completely impossible profits year after year). The hedge fund is of course a totally seperately run business from the market maker /s /s /s

    So that actually sounds quite realistic to me from the market maker point of view of how things actually work in the US.

    • postexitus 3 days ago

      This is actually how markets are made - do you think a second hand book shop operates any differently?

      • bboygravity 2 days ago

        Second hand book stores take people's money and then give them nothing in return? I'm referring to naked shorting and failing to deliver perpetually.

        Sorry, I fail to see the analogy.

        • postexitus 4 hours ago

          Analogy was between market making (buying and selling the item in Runescape with a spread) and second hand book sellers (having a buy/sell price that's not equal to each other for a second hand book). Citadel Securities does not do naked shorting and does not fail to deliver - they make markets by taking position both on long and short side of the market with a spread in between. Some of the short positions they take may not have an immediate backing - but they make up for that by offering more more and attractive prices for bids making up the shortfall within a matter of milliseconds.

    • next_xibalba 2 days ago

      You appear to be referencing Jeff Yass and Susquehanna International Group. Why are you being cagey about saying so? Their hedge fund has had losing years, whereas, as far as I recall, Madoff never reported a loss. On what information are you basing your claims?

      • mmiyer 2 days ago

        They're referring to Ken Griffin / Citadel (Securities). Not that it makes their claims any less silly in terms of fundamentally misunderstanding how markets work.

        • bboygravity 2 days ago

          What claim about how the market works is silly exactly and why?

          My claim was that 1 person owns the 1 major US market making business AND a hedge fund. Facts: they can control the price (naked shorting + strategic FTDs) and trade on it. Even if they can't/don't control the price, they can still front run the entire market. And even if they don't do that bEcaUsE iT's iLliGaL they legally (not ethically) do it through PFOF from Robin Hood among others.

          They do all of that and way more. Just look up the continuous massive FINRA and SEC violations and the (tiny) fines they pay for it.

          But I'm sure all is fine and dandy. I find it mind blowing why anybody would defend the biggest crook since Madoff.

          • next_xibalba 2 days ago

            > they can control the price (naked shorting + strategic FTDs) and trade on it

            This is the bit that seems poorly substantiated and unlikely. Please elaborate. Anything evidence you can cite would be helpful.

            Also, Citadel’s HF has definitely had down years.

            • bboygravity a day ago

              I understand. I found it mind blowing and unbelievable too at first. I can recommend this book:

              Naked, Short and Greedy: Wall Street's Failure to Deliver (2020)

              Susanne Trimbath

              It's full of examples and evidence from someone who has worked at the SEC.

          • mmiyer 2 days ago

            You should be happy that market makers like Citadel Securities exist. Payment for order flow is why commission free trading can exist. Citadel Securities, Virtu, Hudson River Trading, Jump Trading etc compete in a negative sum game which reduces the bid ask spread on various assets (i.e. make them cheaper to trade for everyone).

            Also lol that a hedge fund with about 1% of total hedge fund assets controls prices. What do you think the other hedge funds and trading firms are doing?

            • immibis 2 days ago

              Presumably (s/he thinks) the other hedge funds are not also market makers.

kayson 3 days ago

This reminds me of when World of Warcraft had a mobile app that allowed you to both browse the auction house and list or buy items. The API was pretty trivial to reverse engineer, making it easy to write an auction house bot. I never got as sophisticated as any ML algorithm, just snagged grossly mispriced items and bought/sold based on the last week's price range; it was mostly about volume. Made a tidy profit, bought my 1mil gold mount then gave up. The app was taken down soon after, no doubt in part because I'm sure I was not the only person doing this.

  • bongodongobob 2 days ago

    WoW never cared about playing the market, it was probably taken down due to the way it was implemented. To be an external app, it probably had accounts idling and refreshing the AH and pushing that out to the app. I used the Auctioneer in game addon for a decade.

alex1138 2 days ago

I'm not sure you can say enough good things about RS in general, aside from the very legitimate complaints the community has about the ownership, but basically it's a 20+ year game that's still getting updates, still getting new weapons and quests and level caps

orange_puff 2 days ago

I really enjoyed the article, as I am also a nerd who has played runescape for what seems like forever now, and now most of my interaction with the game is via programming. I have two types of bots I use mostly, color bots, where a screenshot is taken and objects are detected by their surrounding pixel colors, and basic click bots. I've actually found that ~100 lines of python code using pyautogui is more than enough to automate tons of annoying aspects of the game.

I am curious, is your Java client one of the many open source bot clients that actually calls into client code? Or is it some type of click script which does some repetitive inputs?

I have had bad luck with the former in terms of getting banned.

knuckleheads 2 days ago

I did something like this on Hypixel for a month or two. Watched the prices for inputs to various crafting recipes as well as the craft recipes output prices themselves on a loop, and whenever it hit a certain profit level, play a chime and I would go run some crafts. Easy enough to pull the info off of https://wiki.hypixel.net , and https://wiki.hypixel.net/Travel_Scrolls were the ones that most often had good returns. You needed a certain skill/level to make them, so the prices didn't even out too fast. Got tired of it eventually as the game wasn't so deep, but it's fun to mess around with for sure.

  • mhh__ 2 days ago

    Arbitrage much more fun when r=0

mrklol a day ago

"two cronjobs that interact with the OSRS Wiki API: one that polls it every 5 minutes, and another that polls it every hour"

Why two? Isn’t the latter useless as you have the same information in the current 5m interval?

naming_the_user 2 days ago

I made approx 1K GBP as a young teenager trading in RuneScape prior to the introduction of the GE.

Haggle people down to say 6 mil for a party hat I'd sell for 6.5, repeat, when I quit the game I sold it all on eBay, my mum was rather surprised when the money came in.

Hourly rate? Awful.

I very much doubt that I'd be where I am today without that experience though.

  • rightbyte a day ago

    > for a party hat

    O dear I've forgot about how saught after those were.

    • naming_the_user a day ago

      One of my regrets is that I never quite got to own a Blue.

  • dleink 2 days ago

    What line of work are you in now?

    • naming_the_user 2 days ago

      Entrepreneur, multiple income streams, software is one of them.

beoberha 3 days ago

Sorry if I’m just bad at reading comprehension, but what exactly is being modeled here? It sounds like the author is just getting price data not unlike a candlestick chart. What I don’t understand is if the trading is happening within the 5 minute windows he mentions or if model is finding patterns across timeframes?

  • Frummy 3 days ago

    So I don’t know this stuff so I’ll stochastically parrot a reply here of my understanding of what I just read.

    The ML model is trained on the price spread and volume data collected with the cronjob every 5 minutes and stored in a database, and the trades with their respective data, but on previously collected data from 63 days up to 14 days earlier and then validated on the remaining later 14 days of data, apparently to not have temporal leakage which I googled and means unintentional backflow of training data which screws up the prediction. So to answer your question the model finds patterns over multiple weeks of data, to rank the best trading choices in the present moment. Then the java component executes the trade in-game with the player character.

    What I personally don’t understand is if this data collection and training is rolling continually, or if he let it be trained one shot and then it’s smart enough to remain profitable. Don’t entirely understand the 49 day training, 14 day validation thing either.

    • partypete 2 days ago

      That’s right - I retrained the model every 7 days. These experiment results are from the most recent one-week period.

  • partypete 2 days ago

    The training data is composed of the bot’s previously executed trades from the last 63 days joined on the price/volume data. So the model discovers patterns in the price/volume data that have historically lead to well-performing trades. The dependent variable is gold/second generated from a historical trade.

    • beoberha 2 days ago

      Thanks! But how was the bot running before the training data existed? I think that’s what I was missing. The baseline?

noitpmeder 2 days ago

Has anyone done similar experiments with EVE's marketplace?

  • night862 2 days ago

    Yes, a LOT of people.

    There is a lot of this in EvE Online and it's a valid and welcome play style. Unfortunately, everybody will tell you its opsec if you ask for details.

    If you want more information about EvE Online's extremely deep and intricate economy (Essentially everything is built by players who mine ore to make components who resell to integrators that have associated distributors and clients and so forth) you can check Oz on youtube who makes market and market analysis content ( https://www.youtube.com/@OZeve )

    Very closely related, EvE Online now has an official MS Excel plugin from Microsoft with full API integration with EvE Online. This game is an effective way to become an expert using MS Excel and its full, powerful integrations: Oz' Quick Guide: https://youtu.be/eAogNNeDZuo

    EvE Online also has a convention where our EvE Ted Talks are presented to one another (like defcon) called Fanfest. Here's 51 minutes: Fanfest 2023 "Market Spreadsheet Masterclass" https://www.youtube.com/watch?v=6Ql6IU1eZpM

    If you have an idea, or want to see if you can do this, the free-to-play account can for zero dollars if you already have an MS Excel license or are able to integrate your own solution. The limitation is you will start with zero capital, knowledge, intuition, and F2P accounts can't make nearly as many orders as a fully skilled character.