client := client.NewClient(
url: "https://api.tdax.com/api/",
userID : "1"// let's say your user id is 1
apiKey : "live-xxxx",
apiSecret : "xxxxx"
)
Call example.
options := Option{
Type: "limit",
Pair: "btc_thb",
Side: "sell",
Nonce: 2731832,
Price: "247315.50",
Amount: "0.649",
}
order, err := Create(client, options)
Call example
err:= Cancel(client,orderId,pair)
Call example
params := []string{"btc_thb", "open", "buy", fmt.Sprintf("%d", offset)} // array of string
orders, err := List(client, params...)
Call example
bids, asks, err := ListOrdersBook(client, "btc_thb")
userAccount, err := Get(client)