binance

package
v0.0.0-...-4317800 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RestMethod indicates to use REST for delivery
	RestMethod = iota
	// WebSocket indicates to use WS for delivery
	WebSocket
)

Variables

This section is empty.

Functions

func NewDeliveryProvider

func NewDeliveryProvider(serviceConfig *config.ServiceConfig, apiConfig *binance.ApiConfig, method DeliveryMethod) delivery.DepthDeliveryProvider

Types

type DeliveryMethod

type DeliveryMethod int

type DeliveryProvider

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

func (*DeliveryProvider) DepthDelivery

func (p *DeliveryProvider) DepthDelivery(ctx context.Context, symbol string, limit int, dataCh chan *domain.Depth)

Jump to

Keyboard shortcuts

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