Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 632 Bytes

File metadata and controls

49 lines (29 loc) · 632 Bytes

CRYPTO-MONITOR

Dependencies

Go > 1.12
Gorilla Websockets

Build

 go build currency.go

RUN

./currency

OR

 go run currency.go

TEST

curl -X GET "http://localhost:8080/currency/all"
curl -X GET "http://localhost:8080/currency/ETHBTC"
curl -X GET "http://localhost:8080/currency/BTCUSD"

CONFIGURE

The file currency.config in the same dir can be used to configure which all symbols can be allowed.By default ETHBSD and BTCUSD is monitored

Resolve Dependecies

From the currency dir run

go mod init currency