Skip to content

gearcat0/orbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pro-go-sdk

SDK Features

1. Client

client := client.NewClient(
    url: "https://api.tdax.com/api/",
    userID : "1"// let's say your user id is 1
    apiKey : "live-xxxx",
    apiSecret : "xxxxx"
)

2. Create

Call example.

options := Option{
    Type:   "limit",
    Pair:   "btc_thb",
    Side:   "sell",
    Nonce:  2731832,
    Price:  "247315.50",
    Amount: "0.649",
}
order, err := Create(client, options)

3. Cancel

Call example

err:= Cancel(client,orderId,pair)

4. List user's orders

Call example

params := []string{"btc_thb", "open", "buy", fmt.Sprintf("%d", offset)} // array of string
orders, err := List(client, params...)

5. List book orders

Call example

bids, asks, err := ListOrdersBook(client, "btc_thb")

6 Get user account

userAccount, err := Get(client)

About

fork of the orbix/satang/tdax go api library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages