- url: 192.168.99.100
- db: exchange_db
- user: root
- pass: 3nYzRaLtpM4
- url: http://192.168.99.100:8080
- user: root
- pass: 3nYzRaLtpM4
docker-compose up -d
-
install make command
sudo apt update && sudo apt install make -y
-
build dockerfild
make build
-
Start DB & PHPMyadmin
make up-db
-
Start GO app
make up-go
-
Checking docker
docker-compose ps
-
Log go app
docker-compose logs go-ex
-
Log go app force real time
docker-compose logs -f go-ex
API DOC
Get Depth Symbol
http.HandleFunc("/v1/binance/get/depth/", binance.GetDepthEnpoint)
limit between 5, 10, 20, 50, 100, 500, 1000
url: http://localhost:1234/v1/binance/get/depth/:Symbol/:limit
API DOC
Used to get the current tick values for a market.
- url: http://localhost:1234/v1/bittrex/get/ticker/:market
a string literal for the market (ex: BTC-LTC)
http.HandleFunc("/v1/bittrex/get/ticker/", bittrex.GetTickerEnpoint)
API DOC
Used to get the current tick values for a market.
- url: http://localhost:1234/v1/kraken/get/depth/:symbol/:limit
a string literal for the market (ex: XBTEUR)
http.HandleFunc("/v1/kraken/get/depth/", kraken.GetDepthEnpoint)