Git Product home page Git Product logo

trading-bot-17's Introduction

Trading-Bot

A trading strategy for prediction markets mediated by the logarithmic market scoring rule (LMSR) market maker

To run the simulation: python my_bot.py

You can choose between plotting a single simulation and printing aggregate statistics for multiple simulations by commenting/uncommenting the appropriate lines in main().

Required Python packages:

  • numpy
  • matplotlib

In general, the line:

bots.extend(other_bots.get_bots(num_fundamentals, num_technical))

...will create a simulation with 1 + num_fundamentals + num_technical traders including your bot. You can include multiple copies of your bot or other bots in the simulation by adding them to the list with bots.append (for a single bot) or bots.extend (for a list of bots).

other_bots.py includes one type of fundamentals trader and two types of technical traders (get_bots() splits num_technical evenly between these two types). The technical traders use the price history only, and do not make money on average: they simulate noise traders which we often see in real markets.

trading-bot-17's People

Contributors

lschlessinger1 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.