okx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSamples

func WithSamples(useSamples bool) func(*Parser)

func WithSamplesDir

func WithSamplesDir(samplesDir string) func(*Parser)

Types

type DocumentParser

type DocumentParser struct{}

DocumentParser implements the HTTPDocumentParser interface for OKX WebSocket API

func (*DocumentParser) Parse

func (p *DocumentParser) Parse(r io.Reader, urlEntity *config.URLEntity, protectedMethods []string) ([]parser.Channel, error)

Parse parses the OKX WebSocket API documentation and extracts channel information

type Parser

type Parser struct {
	parser.HTTPParser
}

Parser implements the websocket parser.Parser interface for OKX WebSocket API

func NewParser

func NewParser(opts ...func(*Parser)) *Parser

NewParser creates a new OKX WebSocket parser

func (*Parser) CheckVersion

func (p *Parser) CheckVersion(ctx context.Context, doc parser.Documentation) (bool, time.Time, error)

CheckVersion checks if the WebSocket documentation has been updated

Jump to

Keyboard shortcuts

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