Skip to content

Playing with ibex35 in real time with the terminal (and Python)

Notifications You must be signed in to change notification settings

myrthings/trading-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trading game

Game that simulates investing in ibex35 (Madrid stock market). It was built using concurrent programming for Math Degree with minor in Computer Science at UCM.

How it workds

There's a server and a client. They use multiprocessing library to connect with each other for trading, but also paho-mqtt to create a channel for posting the values of the stock market chosen by a user.

The game is in Spanish.


Léeme

Requisitos del sistema:

Lenguaje:

  • python3

Bibliotecas específicas:

  • multiprocessing
  • tkinter
  • paho-mqtt
  • beautifulsoup4
  • matplotlib

Nota: beautifulsoup4 solo es necesaria en el servidor con conexión a internet

Instalación de los complementos específicos en linux o macox:

pip3 install --user biblioteca

Instrucciones de uso para el servidor:

  1. Cambiar las constantes broker en server_trading.py.
  2. Establecer la hora de apertura y cierre de la bolsa
  3. Ejecutar el archivo del servidor
    • Si al marcar la opción de conexión a internet beautifulsoup da un un warning quitar o poner en la línea 39 del código el valor de features: soup = BeautifulSoup(content,features="lxml")
  4. Hecho!

Instrucciones para el jugador:

  1. Ejecutar el cliente
  • Si ocurren problemas:
    • Cambiar las constantes de broker y listener-client en client_trading.py y en aux_trading.py (si no estaban predeterminadas)
    • Cambiar el directorio del archivo aux_trading.py en la constante global aux.
  1. Jugar!
Creado por:
 - 
 - Jessica Costoso Martín
 - Juan Manuel Espinosa Rodríguez
 - Eduardo Ortega Marazuela

About

Playing with ibex35 in real time with the terminal (and Python)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages