Coder Social home page Coder Social logo

dams-lab / runescapetradingproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linglong97/runescapetradingproject

0.0 0.0 0.0 926 KB

A personal project which attempts to use an algorithmic model to generate in-game wealth on the MMORPG Runescape. Using the official Runescape Grand Exchange API, historical price and qualitative data is pulled for each of the items in the game. By processing this data and predicting the price changes in certain high-volume items, profit can be made against a stagnant in-game economy. An automated AI will log in to the game and take the results from the model to automatically purchase the items which the algorithm deems are profitable to buy. Additionally, back testing of historical data against the model should also be completed before the bot makes initial investments.

Python 100.00%

runescapetradingproject's Introduction

Background

One of my favourite video games of all time is the massively popular MMORPG, Runescape. It's an adventure game where you can control a character to do many different things in a virtual world. One of the things that makes Runescape so unique is the fact that it has a whole virtual currency which players use to purchase items in the game. Much like the economy in real life, prices of items in the game are determined by supply and demand. There is a place in the game known as the Grand Exchange, where players can look at prices of items and put in items for sale/buy items. Much like the trading floor in real life, the grand exchange is a hotspot of economical activity in game, as it is where the majority of the wealth in the game changes hands.

This Project

In this project, my goal is quantitatively build a financial model of the Runescape economy, and autonomously trade/sell items in the game with the intention to generate a large amount of in-game currency. While a game’s economy is different from the real stock market, many financial principles apply, and the main goal of this project is to 1) learn the basics of quantitive finance and adapt them, 2) to use my knowledge of data science to process the massive amount of data the Runescape API provides, and 3) to learn more about libraries that will allow me to create an AI that will not be banned by the game bot detection system.

In this project, Python and R will be used to process the data. Python will be used to create the model. A pseudo-java(using auto-it) will be used to create the bot that actually implements the model.

Accessing the Runescape API

The first step is to take the data from the runescape website. Because there are only several relevant things, there are steps necessary in order to sift through the data. After going through all the data on the api, I realised that much of the data available on the site was unavailable through the API. As such, it became necessary to write additional code to manually sift through the website to obtain additional data, like volume of trading and different qualifiers about items.

Building the quantitative model

Building the model itself is the most challenging part of the project. This will involve a deep understanding of the game economy and how it differs from the real economy, as different factors will affect the price of different items, even if the historical data would not normally suggest so. Additionally, the model will need to be adjusted over time for game events/updates.

Building an AI to play the game and automatically trade

After building a model, the AI will be made to automatically trade. Net profit and losses will be recorded and analysed to edit the model, and backtesting will also be implemented to verify the model.

runescapetradingproject's People

Contributors

linglong97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.