A Discord bot written using discord.py, krakenex, and MySQL to give paper trading for crypto.
If you wish to use this bot, you can download and run the code your self.
- Clone this repostiory.
- Create a Discord bot and get your token.
- Replace the token in
token.txt
with your token. Do not ever share your token with anyone. - Install dependencies. I used python 3.9.2, discord.py 1.6.0, pytz 2020.5, krakenex 2.1.0, MySQL, and MySQL Connector Python 8.0.23.
- Replace the information in
mysql_account.txt
with your information. Do not ever share your credentials with anyone. - Create a
discord.log
file in thesrc
folder to allowbot.py
to log events and warnings. - Run the
bot.py
file, your bot should be online and ready to run now.
All of Kraken Origami's commands. The folling convetions are used: <Required Parameter> (Optional Parameter)
.help (Command)
Shows how a list of all commands or details how to use a specific command.
.pairs
Returns all possible pairs in two messages.
.info <Base> <Quote>
Gives technical analysis on the requeted pair (Base/Quote).
.register
Registers an account to begin paper trading.
.account (@User)
Returns your account or the pinged user's account.
.buy <Base> <Quote> <Amount>
Buys in dollars of the specified pair.
.close <Position #>
Closes your position. Position numbers are listed when you use .account
.