Skip to content

go-awesome/cryptocoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get the price list for all pairs from Binance

Please Set 5 environment variables as mentioned for following

2 OS environment variable For Binance:

BINANCE_KEY="xxxx"
BINANCE_SECRET="xxxx"

2 OS environment variable For Coinbase:

COINBASE_KEY="xxxx"
COINBASE_SECRET="xxxx"

1 OS environment variable for Log path without ending trailing slash like below

LOG_PATH="/home/centos/go/src/cryptocoin"

Build the package by following command

user@centos:coinbase$ go build -ldflags "-s -w" main.go
user@centos:coinbase$

Once done, you can run the file as:

user@centos:coinbase$ ./main

after the file has completed the process, it will store all the exchange pair and data on 2 file names:

1. binance-pair-price.txt
2. coinbase-pair-price.txt

Thanks

Happy Trading :)

Releases

No releases published

Packages

No packages published

Languages