Giter Site home page Giter Site logo

ret3030 / frl_31_binance-leaderboard-bot-aws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kfrawee/frl_31_binance-leaderboard-bot-aws

0.0 0.0 0.0 144 KB

Using requests running on AWS Lambda, Scrape Binance leaderboard on schedule basis (cron job).

Python 100.00%

frl_31_binance-leaderboard-bot-aws's Introduction

Binance leaderboard serverless bot ๐Ÿช™๐Ÿค–

Using AWS Lambda with a schedule, to get the updates from Binance leaderboard


Setup:

  • Setup Telegram Bot:

    • For TELEGRAM_BOT_API_KEY: Create a new Bot; Message (@BotFather) to create a new bot and get you bot.
    • For TELEGRAM_CHAT_ID:
      • Create a new chat group.
      • Add (@RawDataBot) to your group and type: "/start" to get the chat id. Reference
      • OR, Send a message to (@username_to_id_bot) with invitation link.
  • In serverless.yml, replace those two values with yours from above steps:

    • TELEGRAM_BOT_API_KEY
    • TELEGRAM_CHAT_ID
  • In serverless.yml, change schedule rate:

Deploy to AWS:

This project uses serverless framework โšก. So, make sure you get that first and give the necessary permissions to serverless cli. Follow this page for getting started.

  • Deploy the stack:
    $ serverless deploy
    
    โœ” Service deployed to binance-leaderboard-bot-dev
  • After deployment is successful, you can check the deployed stack details using:
    $ serverless info
    
    service: binance-leaderboard-bot
    stage: dev
    region: us-east-1
    stack: binance-leaderboard-bot-dev
    functions:
    binanceBot: binance-leaderboard-bot-dev-binanceBot
    layers:
    pybinance: arn:aws:lambda:us-east-1:xxxxx:layer:pybinance:x

Cleaning:

To remove the stack and all the services and resources:

$ serverless remove

โœ” Service binance-leaderboard-bot has been successfully removed

frl_31_binance-leaderboard-bot-aws's People

Contributors

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