model

package
v0.0.0-...-39def3e Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthStatus

type AuthStatus struct {
	Topic TopicType `json:"topic"`
	Args  struct {
		Authenticated bool `json:"authenticated"`
		Competing     bool `json:"competing"`
	} `json:"args"`
}

func (AuthStatus) MarshalEasyJSON

func (v AuthStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthStatus) MarshalJSON

func (v AuthStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuthStatus) UnmarshalEasyJSON

func (v *AuthStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthStatus) UnmarshalJSON

func (v *AuthStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Bulletins

type Bulletins struct {
	Topic TopicType `json:"topic"`
	Args  struct {
		Id      string `json:"id"`
		Message string `json:"message"`
	} `json:"args"`
}

func (Bulletins) MarshalEasyJSON

func (v Bulletins) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Bulletins) MarshalJSON

func (v Bulletins) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Bulletins) UnmarshalEasyJSON

func (v *Bulletins) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Bulletins) UnmarshalJSON

func (v *Bulletins) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IncomingMessage

type IncomingMessage struct {
	Topic TopicType `json:"topic"`
}

func (IncomingMessage) MarshalEasyJSON

func (v IncomingMessage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IncomingMessage) MarshalJSON

func (v IncomingMessage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IncomingMessage) UnmarshalEasyJSON

func (v *IncomingMessage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IncomingMessage) UnmarshalJSON

func (v *IncomingMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LiveOrders

type LiveOrders struct {
	Topic TopicType                                                `json:"topic"`
	Args  []*model.Iserver_Account_Orders_GET_200_Orders_List_Item `json:"args"`
}

func (LiveOrders) MarshalEasyJSON

func (v LiveOrders) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LiveOrders) MarshalJSON

func (v LiveOrders) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LiveOrders) UnmarshalEasyJSON

func (v *LiveOrders) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LiveOrders) UnmarshalJSON

func (v *LiveOrders) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MarketDataHistoryMessage

type MarketDataHistoryMessage struct {
	model.HistoryData
	Topic TopicType `json:"topic"`
}

func (MarketDataHistoryMessage) MarshalEasyJSON

func (v MarketDataHistoryMessage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MarketDataHistoryMessage) MarshalJSON

func (v MarketDataHistoryMessage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MarketDataHistoryMessage) UnmarshalEasyJSON

func (v *MarketDataHistoryMessage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MarketDataHistoryMessage) UnmarshalJSON

func (v *MarketDataHistoryMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MarketDataHistoryRequest

type MarketDataHistoryRequest struct {
	// duration of time back
	// {1-30}min, {1-8}h, {1-1000}d, {1-792}w, {1-182}m, {1-15}y
	Period string `json:"period"`

	// data granularity
	// 	1min, 2min, 3min, 5min, 10min, 15min, 30min, 1h, 2h, 3h, 4h, 8h, 1d, 1w, 1m
	Bar string `json:"bar"`

	// outside regular trading hours
	// true/false
	OutsideRth bool `json:"outsideRth"`

	// The type of data received
	// TRADES, MIDPOINT, BID_ASK
	Source string `json:"source"`

	// historical values returned
	// Can specify multiple separated by forward slash e.g. %o/%c
	Format string `json:"format"`
}

func (MarketDataHistoryRequest) MarshalEasyJSON

func (v MarketDataHistoryRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MarketDataHistoryRequest) MarshalJSON

func (v MarketDataHistoryRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MarketDataHistoryRequest) UnmarshalEasyJSON

func (v *MarketDataHistoryRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MarketDataHistoryRequest) UnmarshalJSON

func (v *MarketDataHistoryRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MarketDataMessage

type MarketDataMessage struct {
	model.Iserver_Marketdata_Snapshot_GET_200_List_Item
	Topic TopicType `json:"topic"`
}

func (MarketDataMessage) MarshalEasyJSON

func (v MarketDataMessage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MarketDataMessage) MarshalJSON

func (v MarketDataMessage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MarketDataMessage) UnmarshalEasyJSON

func (v *MarketDataMessage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MarketDataMessage) UnmarshalJSON

func (v *MarketDataMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MarketDataRequest

type MarketDataRequest struct {
	Fields []string `json:"fields"`
}

func (MarketDataRequest) MarshalEasyJSON

func (v MarketDataRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MarketDataRequest) MarshalJSON

func (v MarketDataRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MarketDataRequest) UnmarshalEasyJSON

func (v *MarketDataRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MarketDataRequest) UnmarshalJSON

func (v *MarketDataRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Notifications

type Notifications struct {
	Topic TopicType `json:"topic"`
	Args  struct {
		Id    string `json:"id"`
		Text  string `json:"text"`
		Title string `json:"title"`
		Url   string `json:"url"`
	} `json:"args"`
}

func (Notifications) MarshalEasyJSON

func (v Notifications) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Notifications) MarshalJSON

func (v Notifications) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Notifications) UnmarshalEasyJSON

func (v *Notifications) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Notifications) UnmarshalJSON

func (v *Notifications) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PNL

type PNL struct {
	Topic TopicType          `json:"topic"`
	Args  map[string]*PNLArg `json:"args"`
}

func (PNL) MarshalEasyJSON

func (v PNL) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PNL) MarshalJSON

func (v PNL) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PNL) UnmarshalEasyJSON

func (v *PNL) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PNL) UnmarshalJSON

func (v *PNL) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PNLArg

type PNLArg struct {
	RowType int64   `json:"rowType"`
	DPL     float64 `json:"dpl"`
	UPL     float64 `json:"upl"`
}

func (PNLArg) MarshalEasyJSON

func (v PNLArg) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PNLArg) MarshalJSON

func (v PNLArg) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PNLArg) UnmarshalEasyJSON

func (v *PNLArg) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PNLArg) UnmarshalJSON

func (v *PNLArg) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SystemConnection

type SystemConnection struct {
	Topic   TopicType `json:"topic"`
	Success string    `json:"success"`
	HB      int64     `json:"hb"`
}

func (SystemConnection) MarshalEasyJSON

func (v SystemConnection) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SystemConnection) MarshalJSON

func (v SystemConnection) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SystemConnection) UnmarshalEasyJSON

func (v *SystemConnection) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SystemConnection) UnmarshalJSON

func (v *SystemConnection) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TopicType

type TopicType string
const (
	TopicSystem        TopicType = "system"
	TopicStatus        TopicType = "sts"
	TopicNotifications TopicType = "ntf"
	TopicBulletins     TopicType = "blt"
	TopicProfitLoss    TopicType = "spl"
	TopicLiveOrders    TopicType = "sor"
)

Jump to

Keyboard shortcuts

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