NOTICE:
PACKAGE IS CURRENTLY UNDER HEAVY DEVELOPMENT AND THERE IS NO GUARANTY FOR STABILITY UNTIL V1 RELEASE.
Okex V5 Golang API
A complete golang wrapper for Okex V5 API. Pretty simple and easy to use. For more info about Okex V5 API read here.
go get github.com/amir-the-h/okex
package main
import (
"context"
"github.com/amir-the-h/okex"
"github.com/amir-the-h/okex/api"
"log"
)
func main() {
apiKey := "YOUR-API-KEY"
secretKey := "YOUR-SECRET-KEY"
passphrase := "YOUR-PASS-PHRASE"
dest := okex.NormalServer
ctx := context.Background()
client, err := api.NewClient(ctx, apiKey, secretKey, passphrase, &dest)
if err != nil {
log.Fatalln(err)
}
response, err := client.Rest.Account.GetConfig()
if err != nil {
log.Fatalln(err)
}
log.Printf("%+v", response)
}
see examples
- Trade (except demo special trading endpoints)
- Funding
- Account
- SubAccount
- Market Data
- Public Data
- Trading Data
- Status