Skip to content

TomJansen25/scalbot

Repository files navigation

Scalbot

A Scalping Bot implemented in Python.

Getting Started

Dependencies and installing

  • PC with Poetry installed
  • Run:
git clone https://github.com/TomJansen25/scalbot.git
cd scalbot
poetry install --no-dev

Executing program

  • Fill in required environment variables like in .env.example in a .env file
  • Run the following to run the example script to run a bot:
poetry shell
python run_bot.py

GCP Implentation

Initial Deployment

$TOPICNAME = scalbot-topic-123
$JOBNAME = scalbot-job-123
gcloud pubsub topics create $TOPICNAME
gcloud scheduler jobs create pubsub $JOBNAME --schedule "* * * * *" --topic $TOPICNAME --message-body "EARN MONEY" --location europe-west3
gcloud functions deploy FUNCTIONNAME --entry-point ENTRYFUNCTION --region europe-west3 --runtime python39 --trigger-topic $TOPICNAME
gcloud scheduler jobs run $JOBNAME --location europe-west3 # run schedule to test function

Continuous Deployment

gcloud scheduler jobs pause $JOBNAME
gcloud functions deploy scalbot-init-func --entry-point ENTRYFUNCTION --runtime python39 --trigger-topic $TOPICNAME
gcloud scheduler jobs resume $JOBNAME

Authors

Contributors names and contact info

About

Scalping Python Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published