marketdata

package module
v0.0.0-...-c4fb2dd Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

README

otp-mdcommon

components common to market data gateways

Documentation

Index

Constants

View Source
const SubscriberIdKey = "subscriber_id"

Variables

This section is empty.

Functions

func NewConflatedQuoteConnection

func NewConflatedQuoteConnection(id string, stream MdsQuoteStream, out chan<- *model.ClobQuote,
	maxSubscriptions int) *conflatedQuoteConnection

func NewConflatedQuoteStream

func NewConflatedQuoteStream(stream MdsQuoteStream, out chan<- *model.ClobQuote, capacity int) *conflatedQuoteStream

func NewMarketDataSource

func NewMarketDataSource(quoteDistributor QuoteDistributor) marketdatasource.MarketDataSourceServer

func NewQuoteDistributor

func NewQuoteDistributor(stream MdsQuoteStream, sendBufferSize int) *quoteDistributor

Types

type ConflatedQuoteConnection

type ConflatedQuoteConnection interface {
	GetId() string
	Subscribe(listingId int32) error
	Close()
}

type MdsQuoteStream

type MdsQuoteStream interface {
	Subscribe(listingId int32)
	GetStream() <-chan *model.ClobQuote
	Close()
}

type QuoteDistributor

type QuoteDistributor interface {
	GetNewQuoteStream() MdsQuoteStream
}

type QuoteSource

type QuoteSource interface {
	Subscribe(listingId int)
}

type Stream

type Stream interface {
	Subscribe(listingId int32)
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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