snappytux / go-ex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-ex

Connect DB

db info

  • url: 192.168.99.100
  • db: exchange_db
  • user: root
  • pass: 3nYzRaLtpM4

phpmyadmin

Start

docker-compose up -d

On Linux server

  1. install make command
    sudo apt update && sudo apt install make -y

  2. build dockerfild
    make build

  3. Start DB & PHPMyadmin
    make up-db

  4. Start GO app
    make up-go

  5. Checking docker
    docker-compose ps

  6. Log go app
    docker-compose logs go-ex

  7. Log go app force real time
    docker-compose logs -f go-ex

Binance Support

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

Bittrex Support

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)

Kraken Support

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)

About


Languages

Language:Go 97.2%Language:Dockerfile 2.3%Language:Makefile 0.5%