binance

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: 15 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 DerivativesDocumentParser

type DerivativesDocumentParser struct {
	*SpotDocumentParser
}

func (*DerivativesDocumentParser) Parse

func (p *DerivativesDocumentParser) Parse(r io.Reader, urlEntity *config.URLEntity, protectedEndpoints []string) ([]parser.Endpoint, error)

Parse parses an HTML document and extracts API endpoints

type DocumentParser

type DocumentParser struct {
	parser.HTTPDocumentParser
	// contains filtered or unexported fields
}

SpotDocumentParser is a parser for Binance documents

func (*DocumentParser) Parse

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

type MarginDocumentParser

type MarginDocumentParser struct {
	*DerivativesDocumentParser
}

func (*MarginDocumentParser) Parse

func (p *MarginDocumentParser) Parse(r io.Reader, urlEntity *config.URLEntity, protectedEndpoints []string) ([]parser.Endpoint, error)

Parse parses an HTML document and extracts API endpoints

type Parser

type Parser struct {
	parser.HTTPParser
}

Parser implements the parser.Parser interface for Binance

func NewParser

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

NewParser creates a new Binance parser

func (*Parser) CheckVersion

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

TODO: Implement CheckVersion for Binance

type SpotDocumentParser

type SpotDocumentParser struct {
	*DocumentParser
	// contains filtered or unexported fields
}

func (*SpotDocumentParser) Parse

func (p *SpotDocumentParser) Parse(r io.Reader, urlEntity *config.URLEntity, protectedEndpoints []string) ([]parser.Endpoint, error)

Parse parses an HTML document and extracts API endpoints

Jump to

Keyboard shortcuts

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