An open API service indexing awesome lists of open source software.

https://github.com/namuan/trex-trader

Bittrex Cryptocurrency trader
https://github.com/namuan/trex-trader

cryptocurrency exchanges telegram-bot trading-bot

Last synced: 2 months ago
JSON representation

Bittrex Cryptocurrency trader

Awesome Lists containing this project

README

          

# Trex-Trader

A simple and personal telegram bot to trade any BTC paired coin on [Bittrex](https://bittrex.com)

Features list

* See available wallets
* Setup Buy order
* Setup Sell order
* Track open orders and cancel if necessary
* Get market price

@todo: Add screen capture for each feature

### Configuration

Copy env.cfg.sample file to env.cfg and configure appropriate values.
Values set for each configuration item should be without quotes.

*_Important:_ Please make sure that you DON'T give withdrawal permission to the API Key generated from Bittrex.*

|Configuration Key | Notes |
|---|---|
| `BTREX_KEY` | API Key for the account |
| `BTREX_SECRET` | API Secret for the account |
| `TELEGRAM_ORDER_BOT` | Secret for the bot generated by [Botfather](https://telegram.me/BotFather) |
| `TELEGRAM_USER_ID` | Personal user id for the telegram account [Howto](https://stackoverflow.com/questions/32683992/find-out-my-own-user-id-for-sending-a-message-with-telegram-api/32777943) |

### Installation

##### Running locally

Pre-requisites:

The script requires Python3.6 and the listed dependencies in requirements.txt

@todo: Link for installing Python3.6

Once python is installed, install the dependencies through pip

```
pip install --user -r requirements.txt
```

With all the dependencies successfully installed, run the script using the following command

```
python telegram-trex-trader.py
```

##### Running on a server

@todo: Setting up Python3.6 on Vultr or DigitalOcean

### Security Notes

As mentioned above, please make sure that the API key generated on Bittrex don't have the withdrawal permissions

### Todo

[ ] Add notes on setting up remote server
[ ] Add notes on setting up ssh config and private/public key authentication
[ ] Add notes on getting Telegram user id

### Thanks

[Telegram-Kraken-Bot](https://github.com/Endogen/Telegram-Kraken-Bot/)
[python-bittrex](https://github.com/ericsomdahl/python-bittrex)

### Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.