data

package
v1.2.31 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Unlicense Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Method_name = map[int32]string{
		0: "Post",
		1: "Get",
		2: "Put",
		3: "Delete",
	}
	Method_value = map[string]int32{
		"Post":   0,
		"Get":    1,
		"Put":    2,
		"Delete": 3,
	}
)

Enum value maps for Method.

View Source
var (
	ClientType_name = map[int32]string{
		0: "Invalid",
		1: "Web",
		2: "CLI",
		3: "Other",
	}
	ClientType_value = map[string]int32{
		"Invalid": 0,
		"Web":     1,
		"CLI":     2,
		"Other":   3,
	}
)

Enum value maps for ClientType.

View Source
var (
	Frequency_name = map[int32]string{
		0: "InvalidFrequency",
		1: "Second",
		2: "Minute",
		3: "Hour",
		4: "Day",
		5: "Week",
		6: "Month",
		7: "Quarter",
		8: "Year",
	}
	Frequency_value = map[string]int32{
		"InvalidFrequency": 0,
		"Second":           1,
		"Minute":           2,
		"Hour":             3,
		"Day":              4,
		"Week":             5,
		"Month":            6,
		"Quarter":          7,
		"Year":             8,
	}
)

Enum value maps for Frequency.

View Source
var ClientTypeAlternates = map[string]ClientType{
	"":      ClientType_Invalid,
	"web":   ClientType_Web,
	"cli":   ClientType_CLI,
	"other": ClientType_Other,
}

ClientTypeAlternates contains alternative values for the DynamoDB.ClientType enum

View Source
var File_protos_frontend_data_asset_proto protoreflect.FileDescriptor
View Source
var File_protos_frontend_data_common_proto protoreflect.FileDescriptor
View Source
var File_protos_frontend_data_iam_proto protoreflect.FileDescriptor
View Source
var File_protos_frontend_data_ohlc_proto protoreflect.FileDescriptor
View Source
var File_protos_frontend_data_quote_proto protoreflect.FileDescriptor

FrequencyAlternates contains alternative values for the OHLC.v1.Frequency enum

View Source
var FrequencyMapping = map[Frequency]string{
	Frequency_InvalidFrequency: "",
	Frequency_Second:           "s",
	Frequency_Minute:           "m",
	Frequency_Hour:             "h",
	Frequency_Day:              "d",
	Frequency_Week:             "w",
	Frequency_Month:            "mn",
	Frequency_Quarter:          "q",
	Frequency_Year:             "y",
}

FrequencyMapping contains alternate names for the data.Frequency enum

Functions

This section is empty.

Types

type Asset added in v1.2.27

type Asset struct {

	// The symbol representing this asset (ex. AAPL, USDEUR, etc.)
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// The name of the asset. This can be the company name for a ticker or a
	// currency pair for FX or crypto
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the asset, in the case of a stock
	Type gopb.Financial_Common_AssetType `protobuf:"varint,3,opt,name=type,proto3,enum=protos.common.Financial_Common_AssetType" json:"type"`
	// The class of the asset, showing whether or not the asset is a stock, foreign
	// exchange, crypto, option or OTC
	Market gopb.Financial_Common_AssetClass `protobuf:"varint,4,opt,name=market,proto3,enum=protos.common.Financial_Common_AssetClass" json:"market"`
	// The locale in which the asset is available (US, global)
	Locale gopb.Financial_Common_Locale `protobuf:"varint,5,opt,name=locale,proto3,enum=protos.common.Financial_Common_Locale" json:"locale"`
	// The currency the asset is traded with
	CurrencySymbol string `protobuf:"bytes,6,opt,name=currency_symbol,json=currencySymbol,proto3" json:"currency_symbol,omitempty"`
	// The name associated with the currency symbol. This value will be the same
	// as the currency symbol for stocks, OTC or indices
	CurrencyName string `protobuf:"bytes,7,opt,name=currency_name,json=currencyName,proto3" json:"currency_name,omitempty"`
	// The currency being traded for, in the case of foreign exchange or crypto. This
	// field will not be populated for stocks, OTC or indices
	BaseCurrencySymbol string `protobuf:"bytes,8,opt,name=base_currency_symbol,json=baseCurrencySymbol,proto3" json:"base_currency_symbol,omitempty"`
	// The name of the currency being traded for, in the case of foreign exchange or
	// crypto. This field will not be populated for stocks, OTC or indices
	BaseCurrencyName string `protobuf:"bytes,9,opt,name=base_currency_name,json=baseCurrencyName,proto3" json:"base_currency_name,omitempty"`
	// The date and time the ticker was delisted; this value may not be populated if
	// the asset is currently active
	DelistedUtc string `protobuf:"bytes,10,opt,name=delisted_utc,json=delistedUtc,proto3" json:"delisted_utc,omitempty"`
	// The ISO code of the primary listing exchange for this asset.
	PrimaryExchange string `protobuf:"bytes,11,opt,name=primary_exchange,json=primaryExchange,proto3" json:"primary_exchange,omitempty"`
	// The CIK number for this ticker.
	Cik string `protobuf:"bytes,12,opt,name=cik,proto3" json:"cik,omitempty"`
	// The composite OpenFIGI number for this ticker.
	CompositeFigi string `protobuf:"bytes,13,opt,name=composite_figi,json=compositeFigi,proto3" json:"composite_figi,omitempty"`
	// The share Class OpenFIGI number for this ticker.
	ShareClassFigi string `protobuf:"bytes,14,opt,name=share_class_figi,json=shareClassFigi,proto3" json:"share_class_figi,omitempty"`
	// A list of links that can be used to populate data associated with this asset
	Links []*Link `protobuf:"bytes,15,rep,name=links,proto3" json:"links"`
	// contains filtered or unexported fields
}

Describes the fields on an asset that can be returned from one of our APIs

func (*Asset) Descriptor deprecated added in v1.2.27

func (*Asset) Descriptor() ([]byte, []int)

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetBaseCurrencyName added in v1.2.27

func (x *Asset) GetBaseCurrencyName() string

func (*Asset) GetBaseCurrencySymbol added in v1.2.27

func (x *Asset) GetBaseCurrencySymbol() string

func (*Asset) GetCik added in v1.2.27

func (x *Asset) GetCik() string

func (*Asset) GetCompositeFigi added in v1.2.27

func (x *Asset) GetCompositeFigi() string

func (*Asset) GetCurrencyName added in v1.2.27

func (x *Asset) GetCurrencyName() string

func (*Asset) GetCurrencySymbol added in v1.2.27

func (x *Asset) GetCurrencySymbol() string

func (*Asset) GetDelistedUtc added in v1.2.27

func (x *Asset) GetDelistedUtc() string
func (x *Asset) GetLinks() []*Link

func (*Asset) GetLocale added in v1.2.27

func (x *Asset) GetLocale() gopb.Financial_Common_Locale

func (*Asset) GetMarket added in v1.2.27

func (x *Asset) GetMarket() gopb.Financial_Common_AssetClass

func (*Asset) GetName added in v1.2.27

func (x *Asset) GetName() string

func (*Asset) GetPrimaryExchange added in v1.2.27

func (x *Asset) GetPrimaryExchange() string

func (*Asset) GetShareClassFigi added in v1.2.27

func (x *Asset) GetShareClassFigi() string

func (*Asset) GetSymbol added in v1.2.27

func (x *Asset) GetSymbol() string

func (*Asset) GetType added in v1.2.27

func (x *Asset) GetType() gopb.Financial_Common_AssetType

func (*Asset) ProtoMessage added in v1.2.27

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect added in v1.2.27

func (x *Asset) ProtoReflect() protoreflect.Message

func (*Asset) Reset added in v1.2.27

func (x *Asset) Reset()

func (*Asset) String added in v1.2.27

func (x *Asset) String() string

type Bar added in v1.1.0

type Bar struct {

	// The volume, in terms of shares, that were traded with this bar
	Volume int64 `protobuf:"varint,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// The weighted value average price for this bar
	Weighted *gopb.Decimal `protobuf:"bytes,2,opt,name=weighted,proto3" json:"weighted"`
	// The opening price for the bar
	Open *gopb.Decimal `protobuf:"bytes,3,opt,name=open,proto3" json:"open"`
	// The closing price for the bar
	Close *gopb.Decimal `protobuf:"bytes,4,opt,name=close,proto3" json:"close"`
	// The highest price acheived over the bar
	High *gopb.Decimal `protobuf:"bytes,5,opt,name=high,proto3" json:"high"`
	// The lowest price acheived over the bar
	Low *gopb.Decimal `protobuf:"bytes,6,opt,name=low,proto3" json:"low"`
	// The number of trades made during the bar
	Number int32 `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty"`
	// A timestamp, corresponding to the beginning of the bar
	Timestamp *gopb.UnixTimestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp"`
	// contains filtered or unexported fields
}

Describes a single aggregated bar of data

func (*Bar) Descriptor deprecated added in v1.1.0

func (*Bar) Descriptor() ([]byte, []int)

Deprecated: Use Bar.ProtoReflect.Descriptor instead.

func (*Bar) GetClose added in v1.1.0

func (x *Bar) GetClose() *gopb.Decimal

func (*Bar) GetHigh added in v1.1.0

func (x *Bar) GetHigh() *gopb.Decimal

func (*Bar) GetLow added in v1.1.0

func (x *Bar) GetLow() *gopb.Decimal

func (*Bar) GetNumber added in v1.1.0

func (x *Bar) GetNumber() int32

func (*Bar) GetOpen added in v1.1.0

func (x *Bar) GetOpen() *gopb.Decimal

func (*Bar) GetTimestamp added in v1.1.0

func (x *Bar) GetTimestamp() *gopb.UnixTimestamp

func (*Bar) GetVolume added in v1.1.0

func (x *Bar) GetVolume() int64

func (*Bar) GetWeighted added in v1.1.0

func (x *Bar) GetWeighted() *gopb.Decimal

func (*Bar) ProtoMessage added in v1.1.0

func (*Bar) ProtoMessage()

func (*Bar) ProtoReflect added in v1.1.0

func (x *Bar) ProtoReflect() protoreflect.Message

func (*Bar) Reset added in v1.1.0

func (x *Bar) Reset()

func (*Bar) String added in v1.1.0

func (x *Bar) String() string

type Client

type Client struct {

	// The ID of the client, as recorded in the system. This value should be saved for later
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The domain for which the client is registered. This value may be used to deny access to certain resources
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// The type of the client. This value may be used to deny access to certain resources
	Type ClientType `protobuf:"varint,3,opt,name=type,proto3,enum=protos.frontend.data.ClientType" json:"type"`
	// A list of links that can be used to populate data associated with this client
	Links []*Link `protobuf:"bytes,4,rep,name=links,proto3" json:"links"`
	// contains filtered or unexported fields
}

Describes a Quantum client. Note that this object does not include the secret which should be used to authenticate the client. That particular value will only be made available once when the client is created

func (*Client) Descriptor deprecated

func (*Client) Descriptor() ([]byte, []int)

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetDomain

func (x *Client) GetDomain() string

func (*Client) GetId

func (x *Client) GetId() string
func (x *Client) GetLinks() []*Link

func (*Client) GetType

func (x *Client) GetType() ClientType

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

func (x *Client) ProtoReflect() protoreflect.Message

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type ClientType

type ClientType int32

Describes the type of the client, which will indicate how it should interact with the API

const (
	ClientType_Invalid ClientType = 0 // Used when converting the enum from JSON to hold invalid values
	ClientType_Web     ClientType = 1 // For web (in-browser) clients
	ClientType_CLI     ClientType = 2 // For CLI clients
	ClientType_Other   ClientType = 3 // For clients that do not fit into either type of client
)

func (ClientType) Descriptor

func (ClientType) Descriptor() protoreflect.EnumDescriptor

func (ClientType) Enum

func (x ClientType) Enum() *ClientType

func (ClientType) EnumDescriptor deprecated

func (ClientType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientType.Descriptor instead.

func (ClientType) Number

func (x ClientType) Number() protoreflect.EnumNumber

func (ClientType) String

func (x ClientType) String() string

func (ClientType) Type

func (*ClientType) UnmarshalJSON added in v1.1.0

func (enum *ClientType) UnmarshalJSON(data []byte) error

UnmarshalJSON converts JSON data into a Data.ClientType

type Frequency added in v1.2.0

type Frequency int32

Describes the frequency of the bar

const (
	// Describes an invalid frequency. This is used for deserializing the frequency from JSON
	Frequency_InvalidFrequency Frequency = 0
	// Bars should be aggregated in terms of seconds
	Frequency_Second Frequency = 1
	// Bars should be aggregated in terms of minutes
	Frequency_Minute Frequency = 2
	// Bars should be aggregated in terms of hours
	Frequency_Hour Frequency = 3
	// Bars should be aggregated in terms of days
	Frequency_Day Frequency = 4
	// Bars should be aggregated in terms of weeks
	Frequency_Week Frequency = 5
	// Bars should be aggregated in terms of months
	Frequency_Month Frequency = 6
	// Bars should be aggregated in terms of quarters
	Frequency_Quarter Frequency = 7
	// Bars should be aggregated in terms of years
	Frequency_Year Frequency = 8
)

func (Frequency) Descriptor added in v1.2.0

func (Frequency) Descriptor() protoreflect.EnumDescriptor

func (Frequency) Enum added in v1.2.0

func (x Frequency) Enum() *Frequency

func (Frequency) EnumDescriptor deprecated added in v1.2.0

func (Frequency) EnumDescriptor() ([]byte, []int)

Deprecated: Use Frequency.Descriptor instead.

func (Frequency) ForDate added in v1.2.15

func (enum Frequency) ForDate() bool

ForDate returns true if the frequency is less than or equal to a day (Day, Week, Month, Quarter, Year)

func (Frequency) ForTime added in v1.2.15

func (enum Frequency) ForTime() bool

ForTime returns true if the frequency is more than a day (Second, Minute, Hour)

func (Frequency) MarshalCSV added in v1.2.1

func (enum Frequency) MarshalCSV() (string, error)

MarshalCSV converts a data.Frequency value to CSV cell value

func (Frequency) MarshalDynamoDBAttributeValue added in v1.2.1

func (enum Frequency) MarshalDynamoDBAttributeValue() (types.AttributeValue, error)

MarshalDynamoDBAttributeValue converts a data.Frequency value to a DynamoDB AttributeValue

func (Frequency) MarshalJSON added in v1.2.1

func (enum Frequency) MarshalJSON() ([]byte, error)

MarshalJSON converts a data.Frequency value to a JSON value

func (Frequency) MarshalYAML added in v1.2.1

func (enum Frequency) MarshalYAML() (interface{}, error)

MarshalYAML converts a data.Frequency value to a YAML node value

func (Frequency) Number added in v1.2.0

func (x Frequency) Number() protoreflect.EnumNumber

func (*Frequency) Scan added in v1.2.1

func (enum *Frequency) Scan(value interface{}) error

Scan attempts to convert an SQL driver value to a new data.Frequency value

func (Frequency) String added in v1.2.0

func (x Frequency) String() string

func (Frequency) Type added in v1.2.0

func (*Frequency) UnmarshalCSV added in v1.2.1

func (enum *Frequency) UnmarshalCSV(raw string) error

UnmarshalCSV attempts to convert a CSV cell value to a new data.Frequency value

func (*Frequency) UnmarshalDynamoDBAttributeValue added in v1.2.1

func (enum *Frequency) UnmarshalDynamoDBAttributeValue(value types.AttributeValue) error

UnmarshalDynamoDBAttributeValue attempts to convert a DynamoDB AttributeVAlue to a data.Frequency value. This function can handle []bytes, numerics, or strings. If the AttributeValue is NULL then the Frequency value will not be modified.

func (*Frequency) UnmarshalJSON added in v1.2.1

func (enum *Frequency) UnmarshalJSON(data []byte) error

UnmarshalJSON attempts to convert a JSON value to a new data.Frequency value

func (*Frequency) UnmarshalParam added in v1.2.1

func (enum *Frequency) UnmarshalParam(param string) error

UnmarshalParam attempts to converts a form or query parameter into a new data.Frequency value

func (*Frequency) UnmarshalYAML added in v1.2.1

func (enum *Frequency) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML attempts to convert a YAML node to a new data.Frequency value

func (Frequency) Value added in v1.2.1

func (enum Frequency) Value() (driver.Value, error)

Value converts a data.Frequency value to an SQL driver value

type Link struct {

	// A human-readable name for the link
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The HTTP method to use when requesting data from the link
	Method Method `protobuf:"varint,2,opt,name=method,proto3,enum=protos.frontend.data.Method" json:"method"`
	// The URL to call for this link
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Link to return with a DTO to allow the front-end to retrieve additional information about the DTO

func NewLink(name string, method Method, url string) *Link

NewLink creates a new Link from a name, method, and URL

func (*Link) Descriptor deprecated added in v1.2.27

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetMethod added in v1.2.27

func (x *Link) GetMethod() Method

func (*Link) GetName added in v1.2.27

func (x *Link) GetName() string

func (*Link) GetUrl added in v1.2.27

func (x *Link) GetUrl() string

func (*Link) ProtoMessage added in v1.2.27

func (*Link) ProtoMessage()

func (*Link) ProtoReflect added in v1.2.27

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset added in v1.2.27

func (x *Link) Reset()

func (*Link) String added in v1.2.27

func (x *Link) String() string

type Method added in v1.2.27

type Method int32

HTTP method to use when describing a link associated with a DTO

const (
	Method_Post   Method = 0
	Method_Get    Method = 1
	Method_Put    Method = 2
	Method_Delete Method = 3
)

func (Method) Descriptor added in v1.2.27

func (Method) Descriptor() protoreflect.EnumDescriptor

func (Method) Enum added in v1.2.27

func (x Method) Enum() *Method

func (Method) EnumDescriptor deprecated added in v1.2.27

func (Method) EnumDescriptor() ([]byte, []int)

Deprecated: Use Method.Descriptor instead.

func (Method) Number added in v1.2.27

func (x Method) Number() protoreflect.EnumNumber

func (Method) String added in v1.2.27

func (x Method) String() string

func (Method) Type added in v1.2.27

func (Method) Type() protoreflect.EnumType

type PriceLadderEntry added in v1.2.19

type PriceLadderEntry struct {

	// The price point associated with this entry. All referenced orders and trades are for this price
	Price *gopb.Decimal `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// The number of trades that were made at this price
	Trades int64 `protobuf:"varint,2,opt,name=trades,proto3" json:"trades,omitempty"`
	// The total number of shares that were traded at this price
	TradesVolume int64 `protobuf:"varint,3,opt,name=trades_volume,json=tradesVolume,proto3" json:"trades_volume,omitempty"`
	// The number of ask orders made at this price
	AskOrders int64 `protobuf:"varint,4,opt,name=ask_orders,json=askOrders,proto3" json:"ask_orders,omitempty"`
	// The total number of shares that were asked at this price
	AskOrderVolume int64 `protobuf:"varint,5,opt,name=ask_order_volume,json=askOrderVolume,proto3" json:"ask_order_volume,omitempty"`
	// The number of bid orders made at this price
	BidOrders int64 `protobuf:"varint,6,opt,name=bid_orders,json=bidOrders,proto3" json:"bid_orders,omitempty"`
	// The total number of shares that were bid at this price
	BidOrderVolume int64 `protobuf:"varint,7,opt,name=bid_order_volume,json=bidOrderVolume,proto3" json:"bid_order_volume,omitempty"`
	// contains filtered or unexported fields
}

Describes a single price ladder entry for a given asset

func (*PriceLadderEntry) Descriptor deprecated added in v1.2.19

func (*PriceLadderEntry) Descriptor() ([]byte, []int)

Deprecated: Use PriceLadderEntry.ProtoReflect.Descriptor instead.

func (*PriceLadderEntry) GetAskOrderVolume added in v1.2.21

func (x *PriceLadderEntry) GetAskOrderVolume() int64

func (*PriceLadderEntry) GetAskOrders added in v1.2.21

func (x *PriceLadderEntry) GetAskOrders() int64

func (*PriceLadderEntry) GetBidOrderVolume added in v1.2.21

func (x *PriceLadderEntry) GetBidOrderVolume() int64

func (*PriceLadderEntry) GetBidOrders added in v1.2.21

func (x *PriceLadderEntry) GetBidOrders() int64

func (*PriceLadderEntry) GetPrice added in v1.2.19

func (x *PriceLadderEntry) GetPrice() *gopb.Decimal

func (*PriceLadderEntry) GetTrades added in v1.2.24

func (x *PriceLadderEntry) GetTrades() int64

func (*PriceLadderEntry) GetTradesVolume added in v1.2.24

func (x *PriceLadderEntry) GetTradesVolume() int64

func (*PriceLadderEntry) ProtoMessage added in v1.2.19

func (*PriceLadderEntry) ProtoMessage()

func (*PriceLadderEntry) ProtoReflect added in v1.2.19

func (x *PriceLadderEntry) ProtoReflect() protoreflect.Message

func (*PriceLadderEntry) Reset added in v1.2.19

func (x *PriceLadderEntry) Reset()

func (*PriceLadderEntry) String added in v1.2.19

func (x *PriceLadderEntry) String() string

type Quote added in v1.2.18

type Quote struct {

	// The ask exchange ID
	AskExchange int32 `protobuf:"varint,4,opt,name=ask_exchange,json=askExchange,proto3" json:"ask_exchange,omitempty"`
	// The ask price
	AskPrice *gopb.Decimal `protobuf:"bytes,5,opt,name=ask_price,json=askPrice,proto3" json:"ask_price"`
	// The ask size. This represents the number of round lot orders at the given ask price.
	// The normal round lot size is 100 shares. An ask size of 2 means there are 200 shares
	// available to purchase at the given ask price.
	AskSize int64 `protobuf:"varint,6,opt,name=ask_size,json=askSize,proto3" json:"ask_size,omitempty"`
	// The bid exchange ID
	BidExchange int32 `protobuf:"varint,7,opt,name=bid_exchange,json=bidExchange,proto3" json:"bid_exchange,omitempty"`
	// The bid price
	BidPrice *gopb.Decimal `protobuf:"bytes,8,opt,name=bid_price,json=bidPrice,proto3" json:"bid_price"`
	// The bid size. This represents the number of round lot orders at the given bid price.
	// The normal round lot size is 100 shares. A bid size of 2 means there are 200 shares
	// for purchase at the given bid price.
	BidSize int64 `protobuf:"varint,9,opt,name=bid_size,json=bidSize,proto3" json:"bid_size,omitempty"`
	// There are 3 tapes which define which exchange the ticker is listed on.
	// Tape A is NYSE listed securities
	// Tape B is NYSE ARCA / NYSE American
	// Tape C is NASDAQ
	Tape gopb.Financial_Common_Tape `protobuf:"varint,10,opt,name=tape,proto3,enum=protos.common.Financial_Common_Tape" json:"tape"`
	// The sequence number represents the sequence in which quote events happened. These are
	// increasing and unique per ticker symbol, but will not always be sequential (e.g., 1, 2,
	// 6, 9, 10, 11). Values reset after each trading session/day.
	SequenceNumber int64 `protobuf:"varint,11,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// A list of condition codes
	Conditions []gopb.Financial_Quotes_Condition `protobuf:"varint,12,rep,packed,name=conditions,proto3,enum=protos.common.Financial_Quotes_Condition" json:"conditions"`
	// A list of indicator codes
	Indicators []gopb.Financial_Quotes_Indicator `protobuf:"varint,13,rep,packed,name=indicators,proto3,enum=protos.common.Financial_Quotes_Indicator" json:"indicators"`
	// The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp
	// of when the quote was actually generated at the exchange.
	ParticipantTimestamp *gopb.UnixTimestamp `protobuf:"bytes,14,opt,name=participant_timestamp,json=participantTimestamp,proto3" json:"participant_timestamp"`
	// The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when
	// the SIP received this quote from the exchange which produced it.
	SipTimestamp *gopb.UnixTimestamp `protobuf:"bytes,15,opt,name=sip_timestamp,json=sipTimestamp,proto3" json:"sip_timestamp"`
	// The nanosecond accuracy TRF (Trade Reporting Facility) Unix Timestamp. This is the
	// timestamp of when the trade reporting facility received this quote.
	TrfTimestamp *gopb.UnixTimestamp `protobuf:"bytes,16,opt,name=trf_timestamp,json=trfTimestamp,proto3" json:"trf_timestamp"`
	// contains filtered or unexported fields
}

Describes a single quote for a given asset

func (*Quote) Descriptor deprecated added in v1.2.18

func (*Quote) Descriptor() ([]byte, []int)

Deprecated: Use Quote.ProtoReflect.Descriptor instead.

func (*Quote) GetAskExchange added in v1.2.18

func (x *Quote) GetAskExchange() int32

func (*Quote) GetAskPrice added in v1.2.18

func (x *Quote) GetAskPrice() *gopb.Decimal

func (*Quote) GetAskSize added in v1.2.18

func (x *Quote) GetAskSize() int64

func (*Quote) GetBidExchange added in v1.2.18

func (x *Quote) GetBidExchange() int32

func (*Quote) GetBidPrice added in v1.2.18

func (x *Quote) GetBidPrice() *gopb.Decimal

func (*Quote) GetBidSize added in v1.2.18

func (x *Quote) GetBidSize() int64

func (*Quote) GetConditions added in v1.2.18

func (x *Quote) GetConditions() []gopb.Financial_Quotes_Condition

func (*Quote) GetIndicators added in v1.2.18

func (x *Quote) GetIndicators() []gopb.Financial_Quotes_Indicator

func (*Quote) GetParticipantTimestamp added in v1.2.18

func (x *Quote) GetParticipantTimestamp() *gopb.UnixTimestamp

func (*Quote) GetSequenceNumber added in v1.2.18

func (x *Quote) GetSequenceNumber() int64

func (*Quote) GetSipTimestamp added in v1.2.18

func (x *Quote) GetSipTimestamp() *gopb.UnixTimestamp

func (*Quote) GetTape added in v1.2.18

func (x *Quote) GetTape() gopb.Financial_Common_Tape

func (*Quote) GetTrfTimestamp added in v1.2.18

func (x *Quote) GetTrfTimestamp() *gopb.UnixTimestamp

func (*Quote) ProtoMessage added in v1.2.18

func (*Quote) ProtoMessage()

func (*Quote) ProtoReflect added in v1.2.18

func (x *Quote) ProtoReflect() protoreflect.Message

func (*Quote) Reset added in v1.2.18

func (x *Quote) Reset()

func (*Quote) String added in v1.2.18

func (x *Quote) String() string

type User

type User struct {

	// The email address that the user may use when logging in
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// A list of links that can be used to populate data associated with this user
	Links []*Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links"`
	// contains filtered or unexported fields
}

Describes a Quantum user. This object will not include any fields which will identify the user to our system. Instead, the user's ID will be extracted from the access token which is passed to authenticate them. This adds an extra layer of security to our system as the user is not allowed to know their own ID directly

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (x *User) GetLinks() []*Link

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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