Description:
- Public API
- access to main.go,create a function you want to call in spotList.go. eg:
depthinfo := spotList.SpotMarketDepth(params)
- input the params in json format if this request need any params,like:
var params string = {"symbol":"BTCUSDT","limit":"200"}
- if no params needed, just write
var params string =""
- run the request with code
go run main.go
- access to main.go,create a function you want to call in spotList.go. eg:
- Private API
- input the
api_key
andsec_key
in config.go first - same as how to call Public api in next
- input the
Description::
- access to publicws.go,input request payload in
payload
(json format).eg:{"symbol":"MX_USDT","op":"sub.symbol"}
- subscribe the private information by
privateWs.go
- run the request with code
go run publicws.go