Skip to content

stevenwilkin/buyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buyer

Scheduled bitcoin buyer

Building

go build .

Configuration

The cron schedule to use, USDT quantity to buy each time and Binance API keys are specified via environment variables.

For convenience these values can be read from .env in the current directory, see .env.sample for the expected format.

Running

./buyer

Systemd service

Copy the service unit file to the configuration directory:

cp buyer.service /etc/systemd/system

Enable and start the service:

systemctl enable buyer
systemctl start buyer

Rsyslog forwarding

cat << EOF > /etc/rsyslog.d/20-buyer.conf
if $programname == 'buyer' then @HOST.papertrailapp.com:PORT
& ~
EOF
systemctl restart rsyslog

About

Scheduled bitcoin buyer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages