Skip to content

snappytux/go-ex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: https://localhost:1234/v1/binance/get/depth/:Symbol/:limit

Bittrex Support

API DOC
Used to get the current tick values for a market.
- url: https://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: https://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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.2%
  • Dockerfile 2.3%
  • Makefile 0.5%