update

package
v0.0.0-...-3f3263e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleUpdateMessage

func HandleUpdateMessage(m *msg.Message) bool

Types

type BrokerProduct

type BrokerProduct struct {
	Id               uint    `json:"id"`
	Username         string  `json:"username"`
	Symbol           string  `json:"symbol"`
	Name             string  `json:"name"`
	PointValue       float32 `json:"pointValue"`
	CostPerOperation float32 `json:"costPer"`
}

type BrokerProductMessage

type BrokerProductMessage struct {
	BrokerProduct BrokerProduct `json:"brokerProduct"`
	Connection    Connection    `json:"connection"`
	Exchange      Exchange      `json:"exchange"`
	Currency      Currency      `json:"currency"`
}

type Connection

type Connection struct {
	Id                   uint   `json:"id"`
	Username             string `json:"username"`
	Code                 string `json:"code"`
	Name                 string `json:"name"`
	SystemCode           string `json:"systemCode"`
	SystemName           string `json:"systemName"`
	InstanceCode         string `json:"instanceCode"`
	SupportsData         bool   `json:"supportsData"`
	SupportsMultipleData bool   `json:"supportsMultipleData"`
	SupportsInventory    bool   `json:"supportsInventory"`
}

type Currency

type Currency struct {
	Id   uint   `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

type DataProduct

type DataProduct struct {
	Id           uint    `json:"id"`
	ConnectionId uint    `json:"connectionId"`
	ExchangeId   uint    `json:"exchangeId"`
	Username     string  `json:"username"`
	Symbol       string  `json:"symbol"`
	Name         string  `json:"name"`
	Increment    float64 `json:"increment"`
}

type DataProductMessage

type DataProductMessage struct {
	DataProduct DataProduct `json:"dataProduct"`
	Connection  Connection  `json:"connection"`
	Exchange    Exchange    `json:"exchange"`
}

type Exchange

type Exchange struct {
	Id         uint   `json:"id"`
	CurrencyId uint   `json:"currencyId"`
	Code       string `json:"code"`
	Name       string `json:"name"`
	Timezone   string `json:"timezone"`
}

Jump to

Keyboard shortcuts

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