Bitcoin Forum
May 26, 2024, 02:44:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A simple script for selling your mined altcoins to BTC/ETH automatically  (Read 92 times)
julesdesmit (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 01, 2018, 03:56:15 PM
 #1

Hello everyone!

If you're like me and you mine certain altcoins to sell them for other coins (or perhaps, fiat), it can definitely get tedious to have to log in to Bittrex every time, find the alt market, sell it for BTC or ETH and then (maybe) withdraw it to a wallet or other exchange.

So I made a little script in Golang to automate that for myself.

It works pretty simple! You provide your keys and the information needed for the bot to start running and just turn it on. (Preferably on a VPS or a computer you can keep running)



Downloading

This script currently only works for Bittrex.

You can download the latest release on the github repo here! https://github.com/julesdesmit/bittrex-seller/releases

If you would like to view the source code (which I encourage you to!), here is the source code https://github.com/julesdesmit/bittrex-seller

The script will run on any operating system. If you download the pre-compiled build there are no necessary steps to take before launch, except for configuring your .json file.



Configuring

This is explained in the config-example.txt file as well, but to avoid mistakes I'll copy it here.

Here's an example of what a fully filled out config.json would look like.

{
    "Key": "i6fvbbq3j2eyb5ters1u5hmi6ikeok3w",
    "Secret": "u2yupz61a76uakdkjuc0d008n112bodp",
    "SellCoin": "SC",
    "WithdrawCoin": "ETH",
    "MarketName": "ETH-SC",
    "Address": "0xe99356bde974bbe08721d77712168fa070aa8da4"
}

Key and Secret are 32-character values determined by the API Key and API Secret values provided to you by your own API Key created on your account.

SellCoin should be the ticker name of the coin you wish to sell once it comes into your account.

WithdrawCoin should be the ticker name of the coin you wish to withdraw (between BTC and ETH, since those are the available base markets).
(Hint: You can leave WithdrawCoin empty if you do not wish to withdraw your coins after selling.)

MarketName should be the preferred market to sell your coins on, formulated as <WithdrawCoin>-<SellCoin>, so for example if you wish to sell XRP for BTC, then it will be BTC-XRP

Address is simply the address you wish to withdraw to. Depending on the coin used, it will look different. For BTC, a standard BTC address format is used, and for ETH a standard hex address format is used.

Example BTC address format: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2, 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
Example ETH hex address format: 0xe99356bde974bbe08721d77712168fa070aa8da4


You can configure the .json file in any standard text editor.

Once you have everything filled out and saved, double click on 'main' to start the program!



Donations

The script is free to use, but if you feel it has helped you out and you're feeling generous, I'd be open to any tips! Cheesy

BCH: 1LRbmzvvMmZhaLYEb7AsPEA9BohAEhmhhj
ETH: 0x92605D678AC124df18f7b6304349C42Ef3c57e28
BTC: 3JzYX6SvWBaEupcRzxsoWrkNPneVAzTNeF
LTC: MUs7MedzzRBjofsh14vuuYeGVLufjT5hXB



I hope it helps! Let me know any issues or ideas you might have.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!