Skip to content

ross-ht/api-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-Demo

V3 Spot API

Description:

  • Public API
    1. access to main.go,create a function you want to call in spotList.go. eg:

      depthinfo := spotList.SpotMarketDepth(params)

    2. input the params in json format if this request need any params,like:

      var params string = {"symbol":"BTCUSDT","limit":"200"}

    3. if no params needed, just write

      var params string =""

    4. run the request with code

      go run main.go

  • Private API
    1. input the api_key and sec_key in config.go first
    2. same as how to call Public api in next

WebSocket For Spot

Description::

  1. access to publicws.go,input request payload in payload (json format).eg:

    {"symbol":"MX_USDT","op":"sub.symbol"}

  2. subscribe the private information by privateWs.go
  3. run the request with code

    go run publicws.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages