Go to file
云舒 e5ab455e5f feat: update mod struct 2024-04-09 14:31:54 +08:00
examples feat: update mod struct 2024-04-09 14:31:54 +08:00
pkg init 2024-04-01 21:08:39 +08:00
sve update 2024-04-08 23:16:20 +08:00
.gitignore init 2024-04-01 21:08:39 +08:00
README.md feat: update mod struct 2024-04-09 14:31:54 +08:00
go.mod feat: update mod struct 2024-04-09 14:31:54 +08:00
go.sum feat: update mod struct 2024-04-09 14:31:54 +08:00
version.go update 2024-04-08 23:16:20 +08:00

README.md

LBank Connector Go Connector

Supported API Endpoints:

  • Account: examples/account/rsa/account.go
  • Base: examples/account/rsa/base.go
  • Market: examples/account/rsa/market.go
  • Order: examples/account/rsa/order.go
  • Spot: examples/account/rsa/spot.go
  • Wallet: examples/account/rsa/wallet.go
  • WithDraw: examples/account/rsa/withdraw.go

Installation

go get github.com/LBank-exchange/lbank-connector-go

Import

import (
    "github.com/LBank-exchange/lbank-connector-go"
)

Authentication

client := sve.NewClient("yourApiKey", "yourSecretKey")
// Debug Mode
client.Debug = true

REST API

Create an example

package main

import (
	"github.com/LBank-exchange/lbank-connector-go"
)

// rsa
const (
	apiKey    = ""
	secretKey = ""
)

var client = sve.NewClient(apiKey, secretKey)

func TestUserInfo() {
	client.Debug = true
	client.SetHost(sve.LbankApiHost)
	data := map[string]string{}
	client.NewAccountService().UserInfo(data)
}
func main() {
	TestUserInfo()
}