Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderSideBid = 0 OrderSideAsk = 1 )
View Source
const (
ErrInvalidPair = "invalid pair"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange interface { Init(config interface{}) error Name() string AvailablePairs() []Pair PairAvailable(pair Pair) bool GetSnapshot(pair Pair) (Snapshot, error) SubscribeEvents(pair Pair) (context.Context, error) SubscribeUpdates(pair Pair, chanSize int) chan uint64 UnsubscribeUpdates(pair Pair) bool SetMaxSnapshotSize(val int) Close() error }
type Snapshot ¶
type SnapshotMode ¶
type SnapshotMode int
const ( SnapshotModeTime SnapshotMode = iota SnapshotModeTicks )
Click to show internal directories.
Click to hide internal directories.