inventory

package
v0.0.0-...-dd5eb55 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMessageListener

func InitMessageListener()

Types

type BrokerProduct

type BrokerProduct 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"`
	PointValue       float32 `json:"pointValue"`
	CostPerOperation float32 `json:"costPerOperation"`
	MarginValue      float32 `json:"marginValue"`
	Increment        float64 `json:"increment"`
	MarketType       string  `json:"marketType"`
	ProductType      string  `json:"productType"`
}

type BrokerProductMessage

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

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"`
	SystemConfig         string `json:"systemConfig"`
	InstanceCode         string `json:"instanceCode"`
	SupportsData         bool   `json:"supportsData"`
	SupportsBroker       bool   `json:"supportsBroker"`
	SupportsMultipleData bool   `json:"supportsMultipleData"`
	SupportsInventory    bool   `json:"supportsInventory"`
}

type Currency

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

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"`
	Url        string `json:"url"`
}

type TradingSystem

type TradingSystem struct {
	Id               uint   `json:"id"`
	Username         string `json:"username"`
	WorkspaceCode    string `json:"workspaceCode"`
	Name             string `json:"name"`
	PortfolioId      uint   `json:"portfolioId"`
	DataProductId    uint   `json:"dataProductId"`
	BrokerProductId  uint   `json:"brokerProductId"`
	TradingSessionId uint   `json:"tradingSessionId"`
}

type TradingSystemMessage

type TradingSystemMessage struct {
	TradingSystem TradingSystem `json:"tradingSystem"`
	BrokerProduct BrokerProduct `json:"brokerProduct"`
	Currency      Currency      `json:"currency"`
}

Jump to

Keyboard shortcuts

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