okx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package okx 提供 OKX Web3 API 费率扩展

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client OKX 费率客户端

func New

func New(cfg Config) (*Client, error)

New 创建 OKX 客户端

func (*Client) GetRecommendedFees

func (c *Client) GetRecommendedFees(ctx context.Context) (types.RecommendedFees, error)

GetRecommendedFees 获取推荐费率(sat/vB)

func (*Client) Name

func (c *Client) Name() string

type Config

type Config struct {
	BaseURL    string
	APIKey     string
	SecretKey  string
	Passphrase string
	Timeout    int // 秒
}

Config OKX API 配置

Jump to

Keyboard shortcuts

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