All Projects β†’ totigm β†’ twitter-crypto-bot

totigm / twitter-crypto-bot

Licence: MIT license
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes

Programming Languages

typescript
32286 projects
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to twitter-crypto-bot

binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (+109.52%)
Mutual labels:  trading, cryptocurrencies, binance, binance-api, candlesticks
HTML-Crypto-Currency-Chart-Snippets
πŸ’Ή Simple HTML Snippets to create Tickers / Charts of Cryptocurrencies with the TradingView API πŸ’Ή
Stars: ✭ 89 (+323.81%)
Mutual labels:  crypto, trading, candlestick, candlestick-chart
Twitter Activated Crypto Trading Bot
Buys crypto through keyword detection in new tweets. Executes buy in 1 second and holds for a given time (e.g. Elon tweets 'doge', buys Dogecoin and sells after 5 minutes). Tested on Kraken and Binance exchanges
Stars: ✭ 92 (+338.1%)
Mutual labels:  twitter-bot, trading, binance, binance-api
Crypto Signal
Github.com/CryptoSignal - #1 Quant Trading & Technical Analysis Bot - 3,100+ stars, 900+ forks
Stars: ✭ 3,690 (+17471.43%)
Mutual labels:  crypto, trading, binance, binance-api
Benzaiboten-spot-trading-bot
A trading bot easy to use to be linked to your favorite exchange to automatize the trading on cryptocurrencies
Stars: ✭ 20 (-4.76%)
Mutual labels:  crypto, trading, cryptocurrencies, binance
Kupi Terminal
Ccxt based, open source, customized, extendable trading platform that supports 130+ crypto exchanges.
Stars: ✭ 104 (+395.24%)
Mutual labels:  crypto, trading, binance
Socktrader
πŸš€ Websocket based trading bot for πŸ’°cryptocurrencies πŸ“ˆ
Stars: ✭ 152 (+623.81%)
Mutual labels:  crypto, trading, cryptocurrencies
Algotrading
Algorithmic trading framework for cryptocurrencies.
Stars: ✭ 249 (+1085.71%)
Mutual labels:  crypto, trading, cryptocurrencies
Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (+1019.05%)
Mutual labels:  trading, binance, binance-api
Siis
Trading bot including terminal, for crypto and traditionals markets. Assisted or fully automated strategy.
Stars: ✭ 45 (+114.29%)
Mutual labels:  crypto, trading, binance
Blankly
πŸš€ πŸ’Έ Easily build, backtest and deploy your algo in just a few lines of code. Trade stocks, cryptos, and forex across exchanges w/ one package.
Stars: ✭ 1,456 (+6833.33%)
Mutual labels:  bots, trading, binance
binance-rs-async
Async client for the Binance APIs
Stars: ✭ 74 (+252.38%)
Mutual labels:  trading, binance, binance-api
Crypto Trading Bot
Cryptocurrency trading bot in javascript for Bitfinex, Bitmex, Binance, FTX, Bybit ... (public edition)
Stars: ✭ 1,089 (+5085.71%)
Mutual labels:  crypto, trading, binance
Cryptex
Gemini, GDAX, Bitfinex, Poloniex, Binance, Kraken, Cryptopia, Koinex, BitGrail and CoinMarketCap cryptocurrency exchange API clients in Swift / iOS SDK. Check prices and account balances using Sample iOS app.
Stars: ✭ 51 (+142.86%)
Mutual labels:  crypto, cryptocurrencies, binance
Gekko Backtesttool
Batch backtest, import and strategy params optimalization for Gekko Trading Bot. With one command you will run any number of backtests.
Stars: ✭ 203 (+866.67%)
Mutual labels:  crypto, trading, cryptocurrencies
Eazebot
Free python/telegram bot for easy execution and surveillance of crypto trading plans on multiple exchanges.
Stars: ✭ 51 (+142.86%)
Mutual labels:  crypto, trading, cryptocurrencies
hands-on-elixir-and-otp-cryptocurrency-trading-bot
Source code to generate the "Hands-on Elixir & OTP: Cryptocurrency trading bot" book
Stars: ✭ 210 (+900%)
Mutual labels:  cryptocurrencies, binance, binance-api
mokka
Free and extendable trading bot application for crypto currencies.
Stars: ✭ 20 (-4.76%)
Mutual labels:  crypto, trading, binance
Gekko Strategies
Strategies to Gekko trading bot with backtests results and some useful tools.
Stars: ✭ 1,022 (+4766.67%)
Mutual labels:  crypto, trading, cryptocurrencies
backtrading-python-binance
Backtesting several trading strategy and rank them according their profit return.
Stars: ✭ 108 (+414.29%)
Mutual labels:  trading, cryptocurrencies, binance

Twitter Crypto Bot

This bot tweets about the price variations of any cryptocurrency every certain time interval.

Every coin listed in Binance are supported.

Prices' data is retrieved from the Binance API.

Tweets generated by the bot look like this:

Tweet image

You can achieve this with just one line of code! Simply choose a coin, a time interval between tweets, and that's it!

Crypto bot initialization

πŸ“‹ Prerequisites

πŸŽ‰ Let's start!

  • First of all, fork this repository. If you don't know how forking works, check out this guide.
  • Now that you have your own fork of the project, clone your repository to your computer.
  • Go to the Twitter tokens generator and generate the necessary access tokens for this bot.
    • You can skip this step if you already have them.
  • Go to the Candlestick Chart API and subscribe to a plan of your choice. Note that the basic plan will allow you to tweet with charts' images every 20 minutes.
  • Copy your x-rapidapi-key key from the code snippet that you can find in the API page. If you are having trouble finding the RapidAPI key, watch this video.
  • Create a file named .env at the repo's root directory and paste the keys from the previous steps in it (It should look like .env.example).
  • Open your console inside the directory.
  • Run yarn or npm i to install the project's dependencies.
  • Go to the index.ts file and choose the cryptocurrency you want, you can also change the time between tweets. Go to the βš™οΈ Bot options section to see how to customize your bot.
  • Finally, run yarn start or npm start and your bot will start running!
  • That's it! You have your own Twitter Crypto Bot!

βš™οΈ Bot options

Your bot can be customized if you want it to have a different behaviour. The options that it supports right now are:

Crypto bot options

Option Sub option Description Default value Value type
credentials
consumer_key Key you get from your Twitter app. CONSUMER_KEY value in your .env file. String
consumer_secret Secret key you get from your Twitter app. CONSUMER_SECRET value in your .env file. String
access_token Generated access token you get for an specific Twitter user. ACCESS_TOKEN value in your .env file. String
access_token_secret Generated secret access token you get for an specific Twitter user. ACCESS_TOKEN_SECRET value in your .env file. String
decimalsAmount Number of decimal places after the comma of the cryptocurrency price. From 0 to 8 depending on the cryptocurrency price. Positive number
hasHashtags
code If the tweet should contain the coin code as a hashtag or not. E.g. #BTC. true Boolean
name If the tweet should contain the coin name as a hashtag or not. E.g. #Bitcoin. true Boolean
hasComparisons
lastTweet If the tweet should contain the comparison between the current price and the one from 24 hours ago. true Boolean
lastDay If the tweet should contain the comparison between the current price and the one from the last tweet. true Boolean
chartOptions
interval Time interval for each candle.
  • m: Minutes
  • h: Hours
  • d: Days
  • w: Weeks
  • M: Months
1m
  • 1m
  • 3m
  • 5m
  • 15m
  • 30m
  • 1h
  • 2h
  • 4h
  • 6h
  • 8h
  • 12h
  • 1d
  • 3d
  • 1w
  • 1M
limit Amount of candles in the chart 16 Integer. Maximum 1000

When you saw the first example, you might have noticed that the tweet interval was set in minutes. If you want to set the interval to certain amount of hours, minutes, and/or seconds, you can use a time object to explicitly set them.

Set tweet interval options

Option Description Value Type
hours Time interval in hours between tweets. Positive number
minutes Time interval in minutes between tweets. Positive number
seconds Time interval in seconds between tweets. Positive number

As shown in the first example you can also use just a number instead of an object and it will be considered as minutes.

E.g. bot.setTweetInterval(15) is the same as bot.setTweetInterval({ minutes: 15 })

πŸ’– Support the project

If you like what we do and want to encourage us to continue creating stuff, starring and sharing this project would be really appreciated! Also, if you want to support us a little bit more, you can buy us a coffe, or make a BTC tip to the following address: 1E6ZBxA8c32YwJxiWW4ohvm9oVYqqWh5tU

Buy us a coffe

✨ Contributing

Contributions are more than welcome!

We think that you might have great ideas to make this project even better, so if you do, please create a pull request and/or issue following our contribution guidelines.

πŸ˜ƒ Authors

πŸ“„ License

MIT


This project was made with ❀ and TypeScript

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].