Trading Bot

I created this project for course in my studies called "Python programming language". Main goal of this project was to create bot which could using Machine Learning buy and sell stocks with profit.

I was doing it with my 3 other colleagues (Damian Kokot, Kacper Wołowiec, and Bartłomiej Ratajczak).

Here's a photo of main page.

trading-bot-img

Technology we used:

  • Javascript
  • Django
  • Python

Snippet of our code:

      
  function getBalance() {
    let wallet_state = wallet.innerHTML.replace('$', '');
    if (balance.innerHTML.replace('$', '') == "----") {
        const previousBalance = 0
    }
    else {
        const previousBalance = balance.innerHTML.replace('$', '');
    }
    const balanceState = Number(wallet_state) + totalStockValues
    balance.innerHTML = `${balanceState.toFixed(2)}$`;

    if (previousBalance <= balanceState) {
        balanceArrow.classList.replace('fa-angle-double-down', 'fa-angle-double-up');
        balanceArrow.classList.replace('arrow-down', 'arrow-up');
    } else {
        balanceArrow.classList.replace('fa-angle-double-up', 'fa-angle-double-down');
        balanceArrow.classList.replace('arrow-up', 'arrow-down');
    }
  }
      
    
LinkedIn Facebook Website

© 2021 Karol Olszański.