stream

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatPayload

type HeartbeatPayload struct {
	Time clearbank.Time `json:"Time"`
}

type MarketDataPayload

type MarketDataPayload struct {
	Symbol      string         `json:"Symbol"`
	Currency    string         `json:"Currency"`
	ValueDate   clearbank.Time `json:"ValueDate"`
	Type        string         `json:"Type"`
	SendingTime string         `json:"SendingTime"`
	Entries     []struct {
		Size  float64 `json:"Size"`
		Price float64 `json:"Price"`
	} `json:"Entries"`
}

type MarketMessage

type MarketMessage struct {
	Type    string          `json:"Type"`
	Version int             `json:"Version"`
	Payload json.RawMessage `json:"Payload"`
}

type SubscriptionRequest

type SubscriptionRequest struct {
	Type    string `json:"Type"`
	Version int    `json:"Version"`
	Payload struct {
		CurrencyPair string `json:"CurrencyPair"`
	} `json:"Payload"`
}

func NewSubscriptionRequest

func NewSubscriptionRequest(symbol string) SubscriptionRequest

Jump to

Keyboard shortcuts

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