GithubHelp home page GithubHelp logo

akilibots / akili-tradingview Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 5.0 22 KB

A crypto trading bot that executes orders using signals from TradingView

Home Page: https://akilibots.com

License: BSD 4-Clause "Original" or "Old" License

Dockerfile 32.64% Python 67.36%
bitcoing blockchain bot crypto dca-bot defi dex dydx grid jangita

akili-tradingview's Introduction

akili-tradingview

stability-alpha Telegram

akili-tradingview is a bot that provides an interface from TradingView into DyDx. This allows alarms set on trading view to trigger orders on DyDx opening possibilities such as channel, wedge, etc. and will support anything that a TradingView alarm can be set to.

Sample Channel Using akili-tradingview

Example use of this bot with trading view, longing on the bottom line and shorting on the top line as the price bounces within the channel. I extended the channel slowly everyday until the price dips on the last short. The bot two trend lines are set to reset each other and fire only once.

Again this bot is non opinionated, so be careful with any alarms that are not set to fire only once. Also please please please do not remove the ALLOWED_IPs from the code. These are set to allow only signals from TradingView's IP addresses. Signals are not authenticated (for now) so if you open this up anyone anywhere with your IP address and port and who has read this can send signals to your bot.

If you don't have an DyDx account, here's my affiliate link to DyDx for a 40% discount. I'd appreciate https://dydx.exchange/r/JUDCLWBC If you also don't have a TradingView account, please use my affiliate link for a 30% discount. Thank you. https://www.tradingview.com/gopro/?share_your_love=availableEggs79157

Configuring the bot

The bot picks up its configuration from an environment variable called config or a file named config.json under the config folder. More examples to follow how to use Docker to achieve this. A sample file is stored in the config folder that contains all options required.

Place the name of the bot in the "name" section. This name is displayed before each message on Telegram (if integrated) and when logging. Helps differentiate which bot is doing what especially when all the bots are sending their output to the same Telegram user.

"main":  {
	"name":  "TV📺",
},

The dydx section contains all the blockchain details of your dydx account. Instructions on how to set up your DyDx settings on the bot can be found here https://github.com/akili-bots/.github/tree/main/profile

"dydx":  {
	"APIkey":  "put your dydx API key here",
	"APIsecret":  "put your dydx API secret here",
	"APIpassphrase":  "put your dydx passphrase here",
	"stark_private_key":  "put your stark private key here",
	"default_ethereum_address":  "put your eth wallet address used in dydx here"
}

Next is the Telegram section. To use, create a Telegram bot and input it's bot token and your chat id below.

"telegram":  {
	"chatid":  "",
	"bottoken":  ""
}

By using variables in the alert you can come up with very interesting scenarios for your start and stop triggers. https://www.tradingview.com/support/solutions/43000531021-how-to-use-a-variable-value-in-alert/

akili-tradingview's People

Contributors

jangita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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