config

package
v0.0.0-...-6869d6d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// child account kit3
	OkxApiKey       = ""
	OkxApiSecretKey = ""
	OkxPassphrase   = ""
	Url             = ""
)

todo Do not commit configuration files to Git.

Variables

This section is empty.

Functions

This section is empty.

Types

type OkxConfig

type OkxConfig struct {
	BaseUrl       string
	WsUrl         string
	ApiKey        string
	SecretKey     string
	PASSPHRASE    string
	TimeoutSecond int
	SignType      string // 可选: "HMAC_SHA256" or "RSA"
}

func NewOkxConfig

func NewOkxConfig(ApiKey string, SecretKey string, PASSPHRASE string, TimeoutSecond int, SignType string, WsUrl string) *OkxConfig

Jump to

Keyboard shortcuts

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