DEV Community

rohit20001221
rohit20001221

Posted on

Crypto Bot

Overview of My Submission

Crypto Bot is a collection of micro services which uses algorithmic trading to generate the BUY / SELL Signals based on the data received from the crypto market (Binance API)

the bot uses the pubsub to publish the live crypto prices to the strategy micro service and redis json to store the orders data and the micro services communicate via gRPC with each other

custom strategies can be writen under the strategy-service/strategies

an example ema.py (Exponential Moving Average) strategy is given in the repo

Submission Category: Microservice

Language Used: Python, Protobuf

Link to Code

Crypto Bot

crypto bot uses algorithmic trading strategies to generate buy and sell signals for trading the crypto currency

image description

How it works

How the data is stored:

    //historical data

    {
        "open": float,
        "high": float,
        "low": float,
        "close": float,
        "volume": float
    }

    // live data

    {
        'open': float,
        'high': float,
        'low': float,
        'close': float,
        'volume': float,
        'is_interval': boolean,
        "symbol": string, // btcusdt
        "interval": string // "5m", "1m", "1h", "1d"
    }
Enter fullscreen mode Exit fullscreen mode

How the data is accessed:

# subscribing to the live data service
REDIS> SUBSCRIBE <channel-name>

# reading historical data
REDIS> JSON.GET historical-<tradingsymbol> '$'
Enter fullscreen mode Exit fullscreen mode

How to run it locally?

Prerequisites

  1. python
  2. gRPC
  3. Redis Stack Server
  4. Docker
  5. Binance API Key and Secret
  6. Pushbullet Access Token

Local installation

to start the…

Additional Resources / Info

Image description

Collaborators

@rohit20001221


Top comments (3)

Collapse
 
annie_lopez_d1d118f441c15 profile image
annie lopez

I recently tried converting some of my XMR and was really impressed with how smooth the whole Monero to Ethereum swap went. It's awesome having the flexibility to move between a privacy-focused coin like Monero and a widely used platform like Ethereum, especially when you're exploring different DeFi options or just diversifying your crypto portfolio. Definitely worth checking out if you're looking to balance privacy with broader utility!

Some comments may only be visible to logged-in visitors. Sign in to view all comments.