orbix

package module
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 0 Imported by: 0

README

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL