proto

package
v0.0.0-...-bf88da5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BusEventType_name = map[int32]string{
		0:   "BUS_EVENT_TYPE_UNSPECIFIED",
		1:   "BUS_EVENT_TYPE_ALL",
		2:   "BUS_EVENT_TYPE_TIME_UPDATE",
		3:   "BUS_EVENT_TYPE_TRANSFER_RESPONSES",
		4:   "BUS_EVENT_TYPE_POSITION_RESOLUTION",
		5:   "BUS_EVENT_TYPE_ORDER",
		6:   "BUS_EVENT_TYPE_ACCOUNT",
		7:   "BUS_EVENT_TYPE_PARTY",
		8:   "BUS_EVENT_TYPE_TRADE",
		9:   "BUS_EVENT_TYPE_MARGIN_LEVELS",
		10:  "BUS_EVENT_TYPE_PROPOSAL",
		11:  "BUS_EVENT_TYPE_VOTE",
		12:  "BUS_EVENT_TYPE_MARKET_DATA",
		13:  "BUS_EVENT_TYPE_NODE_SIGNATURE",
		14:  "BUS_EVENT_TYPE_LOSS_SOCIALIZATION",
		15:  "BUS_EVENT_TYPE_SETTLE_POSITION",
		16:  "BUS_EVENT_TYPE_SETTLE_DISTRESSED",
		17:  "BUS_EVENT_TYPE_MARKET_CREATED",
		18:  "BUS_EVENT_TYPE_ASSET",
		19:  "BUS_EVENT_TYPE_MARKET_TICK",
		20:  "BUS_EVENT_TYPE_WITHDRAWAL",
		21:  "BUS_EVENT_TYPE_DEPOSIT",
		22:  "BUS_EVENT_TYPE_AUCTION",
		23:  "BUS_EVENT_TYPE_RISK_FACTOR",
		24:  "BUS_EVENT_TYPE_NETWORK_PARAMETER",
		25:  "BUS_EVENT_TYPE_LIQUIDITY_PROVISION",
		26:  "BUS_EVENT_TYPE_MARKET_UPDATED",
		27:  "BUS_EVENT_TYPE_ORACLE_SPEC",
		28:  "BUS_EVENT_TYPE_ORACLE_DATA",
		101: "BUS_EVENT_TYPE_MARKET",
		201: "BUS_EVENT_TYPE_TX_ERROR",
	}
	BusEventType_value = map[string]int32{
		"BUS_EVENT_TYPE_UNSPECIFIED":         0,
		"BUS_EVENT_TYPE_ALL":                 1,
		"BUS_EVENT_TYPE_TIME_UPDATE":         2,
		"BUS_EVENT_TYPE_TRANSFER_RESPONSES":  3,
		"BUS_EVENT_TYPE_POSITION_RESOLUTION": 4,
		"BUS_EVENT_TYPE_ORDER":               5,
		"BUS_EVENT_TYPE_ACCOUNT":             6,
		"BUS_EVENT_TYPE_PARTY":               7,
		"BUS_EVENT_TYPE_TRADE":               8,
		"BUS_EVENT_TYPE_MARGIN_LEVELS":       9,
		"BUS_EVENT_TYPE_PROPOSAL":            10,
		"BUS_EVENT_TYPE_VOTE":                11,
		"BUS_EVENT_TYPE_MARKET_DATA":         12,
		"BUS_EVENT_TYPE_NODE_SIGNATURE":      13,
		"BUS_EVENT_TYPE_LOSS_SOCIALIZATION":  14,
		"BUS_EVENT_TYPE_SETTLE_POSITION":     15,
		"BUS_EVENT_TYPE_SETTLE_DISTRESSED":   16,
		"BUS_EVENT_TYPE_MARKET_CREATED":      17,
		"BUS_EVENT_TYPE_ASSET":               18,
		"BUS_EVENT_TYPE_MARKET_TICK":         19,
		"BUS_EVENT_TYPE_WITHDRAWAL":          20,
		"BUS_EVENT_TYPE_DEPOSIT":             21,
		"BUS_EVENT_TYPE_AUCTION":             22,
		"BUS_EVENT_TYPE_RISK_FACTOR":         23,
		"BUS_EVENT_TYPE_NETWORK_PARAMETER":   24,
		"BUS_EVENT_TYPE_LIQUIDITY_PROVISION": 25,
		"BUS_EVENT_TYPE_MARKET_UPDATED":      26,
		"BUS_EVENT_TYPE_ORACLE_SPEC":         27,
		"BUS_EVENT_TYPE_ORACLE_DATA":         28,
		"BUS_EVENT_TYPE_MARKET":              101,
		"BUS_EVENT_TYPE_TX_ERROR":            201,
	}
)

Enum value maps for BusEventType.

View Source
var (
	ProposalError_name = map[int32]string{
		0:  "PROPOSAL_ERROR_UNSPECIFIED",
		1:  "PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON",
		2:  "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE",
		3:  "PROPOSAL_ERROR_ENACT_TIME_TOO_SOON",
		4:  "PROPOSAL_ERROR_ENACT_TIME_TOO_LATE",
		5:  "PROPOSAL_ERROR_INSUFFICIENT_TOKENS",
		6:  "PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY",
		7:  "PROPOSAL_ERROR_NO_PRODUCT",
		8:  "PROPOSAL_ERROR_UNSUPPORTED_PRODUCT",
		9:  "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP",
		10: "PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED",
		11: "PROPOSAL_ERROR_NO_TRADING_MODE",
		12: "PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE",
		13: "PROPOSAL_ERROR_NODE_VALIDATION_FAILED",
		14: "PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD",
		15: "PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS",
		16: "PROPOSAL_ERROR_INVALID_ASSET",
		17: "PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS",
		18: "PROPOSAL_ERROR_NO_RISK_PARAMETERS",
		19: "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY",
		20: "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE",
		21: "PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED",
		22: "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL",
		23: "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE",
		24: "PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT",
		25: "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET",
		26: "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT",
		27: "PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT",
		28: "PROPOSAL_ERROR_INVALID_FEE_AMOUNT",
		29: "PROPOSAL_ERROR_INVALID_SHAPE",
	}
	ProposalError_value = map[string]int32{
		"PROPOSAL_ERROR_UNSPECIFIED":                         0,
		"PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON":                 1,
		"PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE":                 2,
		"PROPOSAL_ERROR_ENACT_TIME_TOO_SOON":                 3,
		"PROPOSAL_ERROR_ENACT_TIME_TOO_LATE":                 4,
		"PROPOSAL_ERROR_INSUFFICIENT_TOKENS":                 5,
		"PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY":         6,
		"PROPOSAL_ERROR_NO_PRODUCT":                          7,
		"PROPOSAL_ERROR_UNSUPPORTED_PRODUCT":                 8,
		"PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP":    9,
		"PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED":          10,
		"PROPOSAL_ERROR_NO_TRADING_MODE":                     11,
		"PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE":            12,
		"PROPOSAL_ERROR_NODE_VALIDATION_FAILED":              13,
		"PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD":         14,
		"PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS":      15,
		"PROPOSAL_ERROR_INVALID_ASSET":                       16,
		"PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS":             17,
		"PROPOSAL_ERROR_NO_RISK_PARAMETERS":                  18,
		"PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY":       19,
		"PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE":     20,
		"PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED": 21,
		"PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL":  22,
		"PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE":  23,
		"PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT": 24,
		"PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET":        25,
		"PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT":              26,
		"PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT":           27,
		"PROPOSAL_ERROR_INVALID_FEE_AMOUNT":                  28,
		"PROPOSAL_ERROR_INVALID_SHAPE":                       29,
	}
)

Enum value maps for ProposalError.

View Source
var (
	Proposal_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_FAILED",
		2: "STATE_OPEN",
		3: "STATE_PASSED",
		4: "STATE_REJECTED",
		5: "STATE_DECLINED",
		6: "STATE_ENACTED",
		7: "STATE_WAITING_FOR_NODE_VOTE",
	}
	Proposal_State_value = map[string]int32{
		"STATE_UNSPECIFIED":           0,
		"STATE_FAILED":                1,
		"STATE_OPEN":                  2,
		"STATE_PASSED":                3,
		"STATE_REJECTED":              4,
		"STATE_DECLINED":              5,
		"STATE_ENACTED":               6,
		"STATE_WAITING_FOR_NODE_VOTE": 7,
	}
)

Enum value maps for Proposal_State.

View Source
var (
	Vote_Value_name = map[int32]string{
		0: "VALUE_UNSPECIFIED",
		1: "VALUE_NO",
		2: "VALUE_YES",
	}
	Vote_Value_value = map[string]int32{
		"VALUE_UNSPECIFIED": 0,
		"VALUE_NO":          1,
		"VALUE_YES":         2,
	}
)

Enum value maps for Vote_Value.

View Source
var (
	Market_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_PROPOSED",
		2: "STATE_REJECTED",
		3: "STATE_PENDING",
		4: "STATE_CANCELLED",
		5: "STATE_ACTIVE",
		6: "STATE_SUSPENDED",
		7: "STATE_CLOSED",
		8: "STATE_TRADING_TERMINATED",
		9: "STATE_SETTLED",
	}
	Market_State_value = map[string]int32{
		"STATE_UNSPECIFIED":        0,
		"STATE_PROPOSED":           1,
		"STATE_REJECTED":           2,
		"STATE_PENDING":            3,
		"STATE_CANCELLED":          4,
		"STATE_ACTIVE":             5,
		"STATE_SUSPENDED":          6,
		"STATE_CLOSED":             7,
		"STATE_TRADING_TERMINATED": 8,
		"STATE_SETTLED":            9,
	}
)

Enum value maps for Market_State.

View Source
var (
	Market_TradingMode_name = map[int32]string{
		0: "TRADING_MODE_UNSPECIFIED",
		1: "TRADING_MODE_CONTINUOUS",
		2: "TRADING_MODE_BATCH_AUCTION",
		3: "TRADING_MODE_OPENING_AUCTION",
		4: "TRADING_MODE_MONITORING_AUCTION",
	}
	Market_TradingMode_value = map[string]int32{
		"TRADING_MODE_UNSPECIFIED":        0,
		"TRADING_MODE_CONTINUOUS":         1,
		"TRADING_MODE_BATCH_AUCTION":      2,
		"TRADING_MODE_OPENING_AUCTION":    3,
		"TRADING_MODE_MONITORING_AUCTION": 4,
	}
)

Enum value maps for Market_TradingMode.

View Source
var (
	Side_name = map[int32]string{
		0: "SIDE_UNSPECIFIED",
		1: "SIDE_BUY",
		2: "SIDE_SELL",
	}
	Side_value = map[string]int32{
		"SIDE_UNSPECIFIED": 0,
		"SIDE_BUY":         1,
		"SIDE_SELL":        2,
	}
)

Enum value maps for Side.

View Source
var (
	Interval_name = map[int32]string{
		0:     "INTERVAL_UNSPECIFIED",
		60:    "INTERVAL_I1M",
		300:   "INTERVAL_I5M",
		900:   "INTERVAL_I15M",
		3600:  "INTERVAL_I1H",
		21600: "INTERVAL_I6H",
		86400: "INTERVAL_I1D",
	}
	Interval_value = map[string]int32{
		"INTERVAL_UNSPECIFIED": 0,
		"INTERVAL_I1M":         60,
		"INTERVAL_I5M":         300,
		"INTERVAL_I15M":        900,
		"INTERVAL_I1H":         3600,
		"INTERVAL_I6H":         21600,
		"INTERVAL_I1D":         86400,
	}
)

Enum value maps for Interval.

View Source
var (
	AuctionTrigger_name = map[int32]string{
		0: "AUCTION_TRIGGER_UNSPECIFIED",
		1: "AUCTION_TRIGGER_BATCH",
		2: "AUCTION_TRIGGER_OPENING",
		3: "AUCTION_TRIGGER_PRICE",
		4: "AUCTION_TRIGGER_LIQUIDITY",
	}
	AuctionTrigger_value = map[string]int32{
		"AUCTION_TRIGGER_UNSPECIFIED": 0,
		"AUCTION_TRIGGER_BATCH":       1,
		"AUCTION_TRIGGER_OPENING":     2,
		"AUCTION_TRIGGER_PRICE":       3,
		"AUCTION_TRIGGER_LIQUIDITY":   4,
	}
)

Enum value maps for AuctionTrigger.

View Source
var (
	PeggedReference_name = map[int32]string{
		0: "PEGGED_REFERENCE_UNSPECIFIED",
		1: "PEGGED_REFERENCE_MID",
		2: "PEGGED_REFERENCE_BEST_BID",
		3: "PEGGED_REFERENCE_BEST_ASK",
	}
	PeggedReference_value = map[string]int32{
		"PEGGED_REFERENCE_UNSPECIFIED": 0,
		"PEGGED_REFERENCE_MID":         1,
		"PEGGED_REFERENCE_BEST_BID":    2,
		"PEGGED_REFERENCE_BEST_ASK":    3,
	}
)

Enum value maps for PeggedReference.

View Source
var (
	OrderError_name = map[int32]string{
		0:  "ORDER_ERROR_UNSPECIFIED",
		1:  "ORDER_ERROR_INVALID_MARKET_ID",
		2:  "ORDER_ERROR_INVALID_ORDER_ID",
		3:  "ORDER_ERROR_OUT_OF_SEQUENCE",
		4:  "ORDER_ERROR_INVALID_REMAINING_SIZE",
		5:  "ORDER_ERROR_TIME_FAILURE",
		6:  "ORDER_ERROR_REMOVAL_FAILURE",
		7:  "ORDER_ERROR_INVALID_EXPIRATION_DATETIME",
		8:  "ORDER_ERROR_INVALID_ORDER_REFERENCE",
		9:  "ORDER_ERROR_EDIT_NOT_ALLOWED",
		10: "ORDER_ERROR_AMEND_FAILURE",
		11: "ORDER_ERROR_NOT_FOUND",
		12: "ORDER_ERROR_INVALID_PARTY_ID",
		13: "ORDER_ERROR_MARKET_CLOSED",
		14: "ORDER_ERROR_MARGIN_CHECK_FAILED",
		15: "ORDER_ERROR_MISSING_GENERAL_ACCOUNT",
		16: "ORDER_ERROR_INTERNAL_ERROR",
		17: "ORDER_ERROR_INVALID_SIZE",
		18: "ORDER_ERROR_INVALID_PERSISTENCE",
		19: "ORDER_ERROR_INVALID_TYPE",
		20: "ORDER_ERROR_SELF_TRADING",
		21: "ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES",
		22: "ORDER_ERROR_INCORRECT_MARKET_TYPE",
		23: "ORDER_ERROR_INVALID_TIME_IN_FORCE",
		24: "ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION",
		25: "ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING",
		26: "ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT",
		27: "ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT",
		28: "ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT",
		29: "ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC",
		30: "ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN",
		31: "ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN",
		32: "ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION",
		33: "ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION",
		34: "ORDER_ERROR_MUST_BE_LIMIT_ORDER",
		35: "ORDER_ERROR_MUST_BE_GTT_OR_GTC",
		36: "ORDER_ERROR_WITHOUT_REFERENCE_PRICE",
		37: "ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE",
		38: "ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO",
		39: "ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO",
		40: "ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO",
		41: "ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE",
		42: "ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO",
		43: "ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE",
		44: "ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER",
		45: "ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER",
		46: "ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER",
	}
	OrderError_value = map[string]int32{
		"ORDER_ERROR_UNSPECIFIED":                                           0,
		"ORDER_ERROR_INVALID_MARKET_ID":                                     1,
		"ORDER_ERROR_INVALID_ORDER_ID":                                      2,
		"ORDER_ERROR_OUT_OF_SEQUENCE":                                       3,
		"ORDER_ERROR_INVALID_REMAINING_SIZE":                                4,
		"ORDER_ERROR_TIME_FAILURE":                                          5,
		"ORDER_ERROR_REMOVAL_FAILURE":                                       6,
		"ORDER_ERROR_INVALID_EXPIRATION_DATETIME":                           7,
		"ORDER_ERROR_INVALID_ORDER_REFERENCE":                               8,
		"ORDER_ERROR_EDIT_NOT_ALLOWED":                                      9,
		"ORDER_ERROR_AMEND_FAILURE":                                         10,
		"ORDER_ERROR_NOT_FOUND":                                             11,
		"ORDER_ERROR_INVALID_PARTY_ID":                                      12,
		"ORDER_ERROR_MARKET_CLOSED":                                         13,
		"ORDER_ERROR_MARGIN_CHECK_FAILED":                                   14,
		"ORDER_ERROR_MISSING_GENERAL_ACCOUNT":                               15,
		"ORDER_ERROR_INTERNAL_ERROR":                                        16,
		"ORDER_ERROR_INVALID_SIZE":                                          17,
		"ORDER_ERROR_INVALID_PERSISTENCE":                                   18,
		"ORDER_ERROR_INVALID_TYPE":                                          19,
		"ORDER_ERROR_SELF_TRADING":                                          20,
		"ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES":                        21,
		"ORDER_ERROR_INCORRECT_MARKET_TYPE":                                 22,
		"ORDER_ERROR_INVALID_TIME_IN_FORCE":                                 23,
		"ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION":                           24,
		"ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING":                   25,
		"ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT":                  26,
		"ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT":                             27,
		"ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT":                          28,
		"ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC":                            29,
		"ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN":                            30,
		"ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN":                          31,
		"ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION":                  32,
		"ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION":                  33,
		"ORDER_ERROR_MUST_BE_LIMIT_ORDER":                                   34,
		"ORDER_ERROR_MUST_BE_GTT_OR_GTC":                                    35,
		"ORDER_ERROR_WITHOUT_REFERENCE_PRICE":                               36,
		"ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE":                   37,
		"ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO":                  38,
		"ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO":                         39,
		"ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO":               40,
		"ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE":                  41,
		"ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO":                      42,
		"ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE":                            43,
		"ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER": 44,
		"ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER":                        45,
		"ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER":                 46,
	}
)

Enum value maps for OrderError.

View Source
var (
	ChainStatus_name = map[int32]string{
		0: "CHAIN_STATUS_UNSPECIFIED",
		1: "CHAIN_STATUS_DISCONNECTED",
		2: "CHAIN_STATUS_REPLAYING",
		3: "CHAIN_STATUS_CONNECTED",
	}
	ChainStatus_value = map[string]int32{
		"CHAIN_STATUS_UNSPECIFIED":  0,
		"CHAIN_STATUS_DISCONNECTED": 1,
		"CHAIN_STATUS_REPLAYING":    2,
		"CHAIN_STATUS_CONNECTED":    3,
	}
)

Enum value maps for ChainStatus.

View Source
var (
	AccountType_name = map[int32]string{
		0:  "ACCOUNT_TYPE_UNSPECIFIED",
		1:  "ACCOUNT_TYPE_INSURANCE",
		2:  "ACCOUNT_TYPE_SETTLEMENT",
		3:  "ACCOUNT_TYPE_MARGIN",
		4:  "ACCOUNT_TYPE_GENERAL",
		5:  "ACCOUNT_TYPE_FEES_INFRASTRUCTURE",
		6:  "ACCOUNT_TYPE_FEES_LIQUIDITY",
		7:  "ACCOUNT_TYPE_FEES_MAKER",
		8:  "ACCOUNT_TYPE_LOCK_WITHDRAW",
		9:  "ACCOUNT_TYPE_BOND",
		10: "ACCOUNT_TYPE_EXTERNAL",
	}
	AccountType_value = map[string]int32{
		"ACCOUNT_TYPE_UNSPECIFIED":         0,
		"ACCOUNT_TYPE_INSURANCE":           1,
		"ACCOUNT_TYPE_SETTLEMENT":          2,
		"ACCOUNT_TYPE_MARGIN":              3,
		"ACCOUNT_TYPE_GENERAL":             4,
		"ACCOUNT_TYPE_FEES_INFRASTRUCTURE": 5,
		"ACCOUNT_TYPE_FEES_LIQUIDITY":      6,
		"ACCOUNT_TYPE_FEES_MAKER":          7,
		"ACCOUNT_TYPE_LOCK_WITHDRAW":       8,
		"ACCOUNT_TYPE_BOND":                9,
		"ACCOUNT_TYPE_EXTERNAL":            10,
	}
)

Enum value maps for AccountType.

View Source
var (
	TransferType_name = map[int32]string{
		0:  "TRANSFER_TYPE_UNSPECIFIED",
		1:  "TRANSFER_TYPE_LOSS",
		2:  "TRANSFER_TYPE_WIN",
		3:  "TRANSFER_TYPE_CLOSE",
		4:  "TRANSFER_TYPE_MTM_LOSS",
		5:  "TRANSFER_TYPE_MTM_WIN",
		6:  "TRANSFER_TYPE_MARGIN_LOW",
		7:  "TRANSFER_TYPE_MARGIN_HIGH",
		8:  "TRANSFER_TYPE_MARGIN_CONFISCATED",
		9:  "TRANSFER_TYPE_MAKER_FEE_PAY",
		10: "TRANSFER_TYPE_MAKER_FEE_RECEIVE",
		11: "TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY",
		12: "TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE",
		13: "TRANSFER_TYPE_LIQUIDITY_FEE_PAY",
		14: "TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE",
		15: "TRANSFER_TYPE_BOND_LOW",
		16: "TRANSFER_TYPE_BOND_HIGH",
		17: "TRANSFER_TYPE_WITHDRAW_LOCK",
		18: "TRANSFER_TYPE_WITHDRAW",
		19: "TRANSFER_TYPE_DEPOSIT",
		20: "TRANSFER_TYPE_BOND_SLASHING",
	}
	TransferType_value = map[string]int32{
		"TRANSFER_TYPE_UNSPECIFIED":                   0,
		"TRANSFER_TYPE_LOSS":                          1,
		"TRANSFER_TYPE_WIN":                           2,
		"TRANSFER_TYPE_CLOSE":                         3,
		"TRANSFER_TYPE_MTM_LOSS":                      4,
		"TRANSFER_TYPE_MTM_WIN":                       5,
		"TRANSFER_TYPE_MARGIN_LOW":                    6,
		"TRANSFER_TYPE_MARGIN_HIGH":                   7,
		"TRANSFER_TYPE_MARGIN_CONFISCATED":            8,
		"TRANSFER_TYPE_MAKER_FEE_PAY":                 9,
		"TRANSFER_TYPE_MAKER_FEE_RECEIVE":             10,
		"TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY":        11,
		"TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE": 12,
		"TRANSFER_TYPE_LIQUIDITY_FEE_PAY":             13,
		"TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE":      14,
		"TRANSFER_TYPE_BOND_LOW":                      15,
		"TRANSFER_TYPE_BOND_HIGH":                     16,
		"TRANSFER_TYPE_WITHDRAW_LOCK":                 17,
		"TRANSFER_TYPE_WITHDRAW":                      18,
		"TRANSFER_TYPE_DEPOSIT":                       19,
		"TRANSFER_TYPE_BOND_SLASHING":                 20,
	}
)

Enum value maps for TransferType.

View Source
var (
	NodeSignatureKind_name = map[int32]string{
		0: "NODE_SIGNATURE_KIND_UNSPECIFIED",
		1: "NODE_SIGNATURE_KIND_ASSET_NEW",
		2: "NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL",
	}
	NodeSignatureKind_value = map[string]int32{
		"NODE_SIGNATURE_KIND_UNSPECIFIED":      0,
		"NODE_SIGNATURE_KIND_ASSET_NEW":        1,
		"NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL": 2,
	}
)

Enum value maps for NodeSignatureKind.

View Source
var (
	Order_TimeInForce_name = map[int32]string{
		0: "TIME_IN_FORCE_UNSPECIFIED",
		1: "TIME_IN_FORCE_GTC",
		2: "TIME_IN_FORCE_GTT",
		3: "TIME_IN_FORCE_IOC",
		4: "TIME_IN_FORCE_FOK",
		5: "TIME_IN_FORCE_GFA",
		6: "TIME_IN_FORCE_GFN",
	}
	Order_TimeInForce_value = map[string]int32{
		"TIME_IN_FORCE_UNSPECIFIED": 0,
		"TIME_IN_FORCE_GTC":         1,
		"TIME_IN_FORCE_GTT":         2,
		"TIME_IN_FORCE_IOC":         3,
		"TIME_IN_FORCE_FOK":         4,
		"TIME_IN_FORCE_GFA":         5,
		"TIME_IN_FORCE_GFN":         6,
	}
)

Enum value maps for Order_TimeInForce.

View Source
var (
	Order_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_LIMIT",
		2: "TYPE_MARKET",
		3: "TYPE_NETWORK",
	}
	Order_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_LIMIT":       1,
		"TYPE_MARKET":      2,
		"TYPE_NETWORK":     3,
	}
)

Enum value maps for Order_Type.

View Source
var (
	Order_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_ACTIVE",
		2: "STATUS_EXPIRED",
		3: "STATUS_CANCELLED",
		4: "STATUS_STOPPED",
		5: "STATUS_FILLED",
		6: "STATUS_REJECTED",
		7: "STATUS_PARTIALLY_FILLED",
		8: "STATUS_PARKED",
	}
	Order_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":      0,
		"STATUS_ACTIVE":           1,
		"STATUS_EXPIRED":          2,
		"STATUS_CANCELLED":        3,
		"STATUS_STOPPED":          4,
		"STATUS_FILLED":           5,
		"STATUS_REJECTED":         6,
		"STATUS_PARTIALLY_FILLED": 7,
		"STATUS_PARKED":           8,
	}
)

Enum value maps for Order_Status.

View Source
var (
	Trade_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_DEFAULT",
		2: "TYPE_NETWORK_CLOSE_OUT_GOOD",
		3: "TYPE_NETWORK_CLOSE_OUT_BAD",
	}
	Trade_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":            0,
		"TYPE_DEFAULT":                1,
		"TYPE_NETWORK_CLOSE_OUT_GOOD": 2,
		"TYPE_NETWORK_CLOSE_OUT_BAD":  3,
	}
)

Enum value maps for Trade_Type.

View Source
var (
	Deposit_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OPEN",
		2: "STATUS_CANCELLED",
		3: "STATUS_FINALIZED",
	}
	Deposit_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OPEN":        1,
		"STATUS_CANCELLED":   2,
		"STATUS_FINALIZED":   3,
	}
)

Enum value maps for Deposit_Status.

View Source
var (
	Withdrawal_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OPEN",
		2: "STATUS_CANCELLED",
		3: "STATUS_FINALIZED",
	}
	Withdrawal_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OPEN":        1,
		"STATUS_CANCELLED":   2,
		"STATUS_FINALIZED":   3,
	}
)

Enum value maps for Withdrawal_Status.

View Source
var (
	LiquidityProvision_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_ACTIVE",
		2: "STATUS_STOPPED",
		3: "STATUS_CANCELLED",
		4: "STATUS_REJECTED",
		5: "STATUS_UNDEPLOYED",
		6: "STATUS_PENDING",
	}
	LiquidityProvision_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_ACTIVE":      1,
		"STATUS_STOPPED":     2,
		"STATUS_CANCELLED":   3,
		"STATUS_REJECTED":    4,
		"STATUS_UNDEPLOYED":  5,
		"STATUS_PENDING":     6,
	}
)

Enum value maps for LiquidityProvision_Status.

View Source
var (
	OracleDataSubmission_OracleSource_name = map[int32]string{
		0: "ORACLE_SOURCE_UNSPECIFIED",
		1: "ORACLE_SOURCE_OPEN_ORACLE",
	}
	OracleDataSubmission_OracleSource_value = map[string]int32{
		"ORACLE_SOURCE_UNSPECIFIED": 0,
		"ORACLE_SOURCE_OPEN_ORACLE": 1,
	}
)

Enum value maps for OracleDataSubmission_OracleSource.

View Source
var File_assets_proto protoreflect.FileDescriptor
View Source
var File_chain_events_proto protoreflect.FileDescriptor
View Source
var File_events_proto protoreflect.FileDescriptor
View Source
var File_governance_proto protoreflect.FileDescriptor
View Source
var File_markets_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {

	// Unique account identifier (used internally by Vega)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The party that the account belongs to, special values include `network`, which represents the Vega network and is
	// most commonly seen during liquidation of distressed trading positions
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// Balance of the asset, the balance is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	// and importantly balances cannot be negative
	Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// Asset identifier for the account
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
	MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// The account type related to this account
	Type AccountType `protobuf:"varint,6,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Represents an account for an asset on Vega for a particular owner or party

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAsset

func (x *Account) GetAsset() string

func (*Account) GetBalance

func (x *Account) GetBalance() uint64

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetMarketId

func (x *Account) GetMarketId() string

func (*Account) GetOwner

func (x *Account) GetOwner() string

func (*Account) GetType

func (x *Account) GetType() AccountType

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (this *Account) Validate() error

type AccountType

type AccountType int32

Various collateral/account types as used by Vega

const (
	// Default value
	AccountType_ACCOUNT_TYPE_UNSPECIFIED AccountType = 0
	// Insurance pool accounts contain insurance pool funds for a market
	AccountType_ACCOUNT_TYPE_INSURANCE AccountType = 1
	// Settlement accounts exist only during settlement or mark-to-market
	AccountType_ACCOUNT_TYPE_SETTLEMENT AccountType = 2
	// Margin accounts contain margin funds for a party and each party will
	// have multiple margin accounts, one for each market they have traded in
	//
	// Margin account funds will alter as margin requirements on positions change
	AccountType_ACCOUNT_TYPE_MARGIN AccountType = 3
	// General accounts contains general funds for a party. A party will
	// have multiple general accounts, one for each asset they want
	// to trade with
	//
	// General accounts are where funds are initially deposited or withdrawn from,
	// it is also the account where funds are taken to fulfil fees and initial margin requirements
	AccountType_ACCOUNT_TYPE_GENERAL AccountType = 4
	// Infrastructure accounts contain fees earned by providing infrastructure on Vega
	AccountType_ACCOUNT_TYPE_FEES_INFRASTRUCTURE AccountType = 5
	// Liquidity accounts contain fees earned by providing liquidity on Vega markets
	AccountType_ACCOUNT_TYPE_FEES_LIQUIDITY AccountType = 6
	// This account is created to hold fees earned by placing orders that sit on the book
	// and are then matched with an incoming order to create a trade - These fees reward traders
	// who provide the best priced liquidity that actually allows trading to take place
	AccountType_ACCOUNT_TYPE_FEES_MAKER AccountType = 7
	// This account is created to lock funds to be withdrawn by parties
	AccountType_ACCOUNT_TYPE_LOCK_WITHDRAW AccountType = 8
	// This account is created to maintain liquidity providers funds commitments
	AccountType_ACCOUNT_TYPE_BOND AccountType = 9
	// External account represents an external source (deposit/withdrawal)
	AccountType_ACCOUNT_TYPE_EXTERNAL AccountType = 10
)

func (AccountType) Descriptor

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

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

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type

type AddValidator

type AddValidator struct {

	// The identifier of the validator
	Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A message to notify when a new validator is being added to the Vega network

func (*AddValidator) Descriptor deprecated

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

Deprecated: Use AddValidator.ProtoReflect.Descriptor instead.

func (*AddValidator) GetId

func (x *AddValidator) GetId() *Identifier

func (*AddValidator) ProtoMessage

func (*AddValidator) ProtoMessage()

func (*AddValidator) ProtoReflect

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

func (*AddValidator) Reset

func (x *AddValidator) Reset()

func (*AddValidator) String

func (x *AddValidator) String() string

func (*AddValidator) Validate

func (this *AddValidator) Validate() error

type Asset

type Asset struct {

	// Internal identifier of the asset
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the asset (e.g: Great British Pound)
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Symbol of the asset (e.g: GBP)
	Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// Total circulating supply for the asset
	TotalSupply string `protobuf:"bytes,4,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// Number of decimals / precision handled by this asset
	Decimals uint64 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// The definition of the external source for this asset
	Source *AssetSource `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

The Vega representation of an external asset

func (*Asset) Descriptor deprecated

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetDecimals

func (x *Asset) GetDecimals() uint64

func (*Asset) GetId

func (x *Asset) GetId() string

func (*Asset) GetName

func (x *Asset) GetName() string

func (*Asset) GetSource

func (x *Asset) GetSource() *AssetSource

func (*Asset) GetSymbol

func (x *Asset) GetSymbol() string

func (*Asset) GetTotalSupply

func (x *Asset) GetTotalSupply() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

func (*Asset) Validate

func (this *Asset) Validate() error

type AssetSource

type AssetSource struct {

	// The source
	//
	// Types that are assignable to Source:
	//	*AssetSource_BuiltinAsset
	//	*AssetSource_Erc20
	Source isAssetSource_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

Asset source definition

func (*AssetSource) Descriptor deprecated

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

Deprecated: Use AssetSource.ProtoReflect.Descriptor instead.

func (*AssetSource) GetBuiltinAsset

func (x *AssetSource) GetBuiltinAsset() *BuiltinAsset

func (*AssetSource) GetErc20

func (x *AssetSource) GetErc20() *ERC20

func (*AssetSource) GetSource

func (m *AssetSource) GetSource() isAssetSource_Source

func (*AssetSource) ProtoMessage

func (*AssetSource) ProtoMessage()

func (*AssetSource) ProtoReflect

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

func (*AssetSource) Reset

func (x *AssetSource) Reset()

func (*AssetSource) String

func (x *AssetSource) String() string

func (*AssetSource) Validate

func (this *AssetSource) Validate() error

type AssetSource_BuiltinAsset

type AssetSource_BuiltinAsset struct {
	// A built-in asset
	BuiltinAsset *BuiltinAsset `protobuf:"bytes,1,opt,name=builtin_asset,json=builtinAsset,proto3,oneof"`
}

type AssetSource_Erc20

type AssetSource_Erc20 struct {
	// An Ethereum ERC20 asset
	Erc20 *ERC20 `protobuf:"bytes,2,opt,name=erc20,proto3,oneof"`
}

type AuctionDuration

type AuctionDuration struct {

	// Duration of the auction in seconds
	Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
	//Target uncrossing trading volume
	Volume uint64 `protobuf:"varint,2,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

An auction duration is used to configure 3 auction periods:

  1. `duration > 0`, `volume == 0`: The auction will last for at least N seconds
  2. `duration == 0`, `volume > 0`: The auction will end once we can close with given traded volume
  3. `duration > 0`, `volume > 0`: The auction will take at least N seconds, but can end sooner if we can trade a certain volume

func (*AuctionDuration) Descriptor deprecated

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

Deprecated: Use AuctionDuration.ProtoReflect.Descriptor instead.

func (*AuctionDuration) GetDuration

func (x *AuctionDuration) GetDuration() int64

func (*AuctionDuration) GetVolume

func (x *AuctionDuration) GetVolume() uint64

func (*AuctionDuration) ProtoMessage

func (*AuctionDuration) ProtoMessage()

func (*AuctionDuration) ProtoReflect

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

func (*AuctionDuration) Reset

func (x *AuctionDuration) Reset()

func (*AuctionDuration) String

func (x *AuctionDuration) String() string

func (*AuctionDuration) Validate

func (this *AuctionDuration) Validate() error

type AuctionEvent

type AuctionEvent struct {

	// Market identifier for the event
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// True if the event indicates an auction opening and False otherwise
	OpeningAuction bool `protobuf:"varint,2,opt,name=opening_auction,json=openingAuction,proto3" json:"opening_auction,omitempty"`
	// True if the event indicates leaving auction mode and False otherwise
	Leave bool `protobuf:"varint,3,opt,name=leave,proto3" json:"leave,omitempty"`
	// Timestamp containing the start time for an auction
	Start int64 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
	// Timestamp containing the end time for an auction
	End int64 `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"`
	// the reason this market is/was in auction
	Trigger AuctionTrigger `protobuf:"varint,6,opt,name=trigger,proto3,enum=vega.AuctionTrigger" json:"trigger,omitempty"`
	// If an auction was ongoing, but was extended for whatever reason, this field will
	// be set to the trigger type indicating which component extended the auction
	ExtensionTrigger AuctionTrigger `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

An auction event indicating a change in auction state, for example starting or ending an auction

func (*AuctionEvent) Descriptor deprecated

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

Deprecated: Use AuctionEvent.ProtoReflect.Descriptor instead.

func (*AuctionEvent) GetEnd

func (x *AuctionEvent) GetEnd() int64

func (*AuctionEvent) GetExtensionTrigger

func (x *AuctionEvent) GetExtensionTrigger() AuctionTrigger

func (*AuctionEvent) GetLeave

func (x *AuctionEvent) GetLeave() bool

func (*AuctionEvent) GetMarketId

func (x *AuctionEvent) GetMarketId() string

func (*AuctionEvent) GetOpeningAuction

func (x *AuctionEvent) GetOpeningAuction() bool

func (*AuctionEvent) GetStart

func (x *AuctionEvent) GetStart() int64

func (*AuctionEvent) GetTrigger

func (x *AuctionEvent) GetTrigger() AuctionTrigger

func (*AuctionEvent) ProtoMessage

func (*AuctionEvent) ProtoMessage()

func (*AuctionEvent) ProtoReflect

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

func (*AuctionEvent) Reset

func (x *AuctionEvent) Reset()

func (*AuctionEvent) String

func (x *AuctionEvent) String() string

func (*AuctionEvent) Validate

func (this *AuctionEvent) Validate() error

type AuctionIndicativeState

type AuctionIndicativeState struct {

	// The market identifier for which this state relates to
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
	IndicativePrice uint64 `protobuf:"varint,2,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"`
	// The Indicative Uncrossing Volume is the volume available at the Indicative crossing price if we uncrossed the auction now
	IndicativeVolume uint64 `protobuf:"varint,3,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"`
	// The timestamp at which the auction started
	AuctionStart int64 `protobuf:"varint,4,opt,name=auction_start,json=auctionStart,proto3" json:"auction_start,omitempty"`
	// The timestamp at which the auction is meant to stop
	AuctionEnd int64 `protobuf:"varint,5,opt,name=auction_end,json=auctionEnd,proto3" json:"auction_end,omitempty"`
	// contains filtered or unexported fields
}

AuctionIndicativeState is used to emit an event with the indicative price/volume per market during an auction

func (*AuctionIndicativeState) Descriptor deprecated

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

Deprecated: Use AuctionIndicativeState.ProtoReflect.Descriptor instead.

func (*AuctionIndicativeState) GetAuctionEnd

func (x *AuctionIndicativeState) GetAuctionEnd() int64

func (*AuctionIndicativeState) GetAuctionStart

func (x *AuctionIndicativeState) GetAuctionStart() int64

func (*AuctionIndicativeState) GetIndicativePrice

func (x *AuctionIndicativeState) GetIndicativePrice() uint64

func (*AuctionIndicativeState) GetIndicativeVolume

func (x *AuctionIndicativeState) GetIndicativeVolume() uint64

func (*AuctionIndicativeState) GetMarketId

func (x *AuctionIndicativeState) GetMarketId() string

func (*AuctionIndicativeState) ProtoMessage

func (*AuctionIndicativeState) ProtoMessage()

func (*AuctionIndicativeState) ProtoReflect

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

func (*AuctionIndicativeState) Reset

func (x *AuctionIndicativeState) Reset()

func (*AuctionIndicativeState) String

func (x *AuctionIndicativeState) String() string

func (*AuctionIndicativeState) Validate

func (this *AuctionIndicativeState) Validate() error

type AuctionTrigger

type AuctionTrigger int32

Auction triggers indicate what condition triggered an auction (if market is in auction mode)

const (
	// Default value for AuctionTrigger, no auction triggered
	AuctionTrigger_AUCTION_TRIGGER_UNSPECIFIED AuctionTrigger = 0
	// Batch auction
	AuctionTrigger_AUCTION_TRIGGER_BATCH AuctionTrigger = 1
	// Opening auction
	AuctionTrigger_AUCTION_TRIGGER_OPENING AuctionTrigger = 2
	// Price monitoring trigger
	AuctionTrigger_AUCTION_TRIGGER_PRICE AuctionTrigger = 3
	// Liquidity monitoring trigger
	AuctionTrigger_AUCTION_TRIGGER_LIQUIDITY AuctionTrigger = 4
)

func (AuctionTrigger) Descriptor

func (AuctionTrigger) Enum

func (x AuctionTrigger) Enum() *AuctionTrigger

func (AuctionTrigger) EnumDescriptor deprecated

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

Deprecated: Use AuctionTrigger.Descriptor instead.

func (AuctionTrigger) Number

func (AuctionTrigger) String

func (x AuctionTrigger) String() string

func (AuctionTrigger) Type

type BTCDeposit

type BTCDeposit struct {

	// The Vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// The BTC wallet initiating the deposit
	SourceBtcAddress string `protobuf:"bytes,2,opt,name=source_btc_address,json=sourceBtcAddress,proto3" json:"source_btc_address,omitempty"`
	// The Vega party identifier (pub-key) which is the target of the deposit
	TargetPartyId string `protobuf:"bytes,3,opt,name=target_party_id,json=targetPartyId,proto3" json:"target_party_id,omitempty"`
	// contains filtered or unexported fields
}

A Bitcoin deposit into Vega

func (*BTCDeposit) Descriptor deprecated

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

Deprecated: Use BTCDeposit.ProtoReflect.Descriptor instead.

func (*BTCDeposit) GetSourceBtcAddress

func (x *BTCDeposit) GetSourceBtcAddress() string

func (*BTCDeposit) GetTargetPartyId

func (x *BTCDeposit) GetTargetPartyId() string

func (*BTCDeposit) GetVegaAssetId

func (x *BTCDeposit) GetVegaAssetId() string

func (*BTCDeposit) ProtoMessage

func (*BTCDeposit) ProtoMessage()

func (*BTCDeposit) ProtoReflect

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

func (*BTCDeposit) Reset

func (x *BTCDeposit) Reset()

func (*BTCDeposit) String

func (x *BTCDeposit) String() string

func (*BTCDeposit) Validate

func (this *BTCDeposit) Validate() error

type BTCEvent

type BTCEvent struct {

	// The index of the transaction
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// The block in which the transaction happened
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// The action
	//
	// Types that are assignable to Action:
	//	*BTCEvent_Deposit
	//	*BTCEvent_Withdrawal
	Action isBTCEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

An event from the Bitcoin network

func (*BTCEvent) Descriptor deprecated

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

Deprecated: Use BTCEvent.ProtoReflect.Descriptor instead.

func (*BTCEvent) GetAction

func (m *BTCEvent) GetAction() isBTCEvent_Action

func (*BTCEvent) GetBlock

func (x *BTCEvent) GetBlock() uint64

func (*BTCEvent) GetDeposit

func (x *BTCEvent) GetDeposit() *BTCDeposit

func (*BTCEvent) GetIndex

func (x *BTCEvent) GetIndex() uint64

func (*BTCEvent) GetWithdrawal

func (x *BTCEvent) GetWithdrawal() *BTCWithdrawal

func (*BTCEvent) ProtoMessage

func (*BTCEvent) ProtoMessage()

func (*BTCEvent) ProtoReflect

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

func (*BTCEvent) Reset

func (x *BTCEvent) Reset()

func (*BTCEvent) String

func (x *BTCEvent) String() string

func (*BTCEvent) Validate

func (this *BTCEvent) Validate() error

type BTCEvent_Deposit

type BTCEvent_Deposit struct {
	// Deposit BTC asset
	Deposit *BTCDeposit `protobuf:"bytes,1001,opt,name=deposit,proto3,oneof"`
}

type BTCEvent_Withdrawal

type BTCEvent_Withdrawal struct {
	// Withdraw BTC asset
	Withdrawal *BTCWithdrawal `protobuf:"bytes,1002,opt,name=withdrawal,proto3,oneof"`
}

type BTCWithdrawal

type BTCWithdrawal struct {

	// The vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// The party identifier (pub-key) initiating the withdrawal
	SourcePartyId string `protobuf:"bytes,2,opt,name=source_party_id,json=sourcePartyId,proto3" json:"source_party_id,omitempty"`
	// Target Bitcoin wallet address
	TargetBtcAddress string `protobuf:"bytes,3,opt,name=target_btc_address,json=targetBtcAddress,proto3" json:"target_btc_address,omitempty"`
	// The nonce reference of the transaction
	ReferenceNonce string `protobuf:"bytes,4,opt,name=reference_nonce,json=referenceNonce,proto3" json:"reference_nonce,omitempty"`
	// contains filtered or unexported fields
}

A Bitcoin withdrawal from Vega

func (*BTCWithdrawal) Descriptor deprecated

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

Deprecated: Use BTCWithdrawal.ProtoReflect.Descriptor instead.

func (*BTCWithdrawal) GetReferenceNonce

func (x *BTCWithdrawal) GetReferenceNonce() string

func (*BTCWithdrawal) GetSourcePartyId

func (x *BTCWithdrawal) GetSourcePartyId() string

func (*BTCWithdrawal) GetTargetBtcAddress

func (x *BTCWithdrawal) GetTargetBtcAddress() string

func (*BTCWithdrawal) GetVegaAssetId

func (x *BTCWithdrawal) GetVegaAssetId() string

func (*BTCWithdrawal) ProtoMessage

func (*BTCWithdrawal) ProtoMessage()

func (*BTCWithdrawal) ProtoReflect

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

func (*BTCWithdrawal) Reset

func (x *BTCWithdrawal) Reset()

func (*BTCWithdrawal) String

func (x *BTCWithdrawal) String() string

func (*BTCWithdrawal) Validate

func (this *BTCWithdrawal) Validate() error

type BitcoinAddress

type BitcoinAddress struct {

	// A Bitcoin address
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

Used as a wrapper for a Bitcoin address (wallet)

func (*BitcoinAddress) Descriptor deprecated

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

Deprecated: Use BitcoinAddress.ProtoReflect.Descriptor instead.

func (*BitcoinAddress) GetAddress

func (x *BitcoinAddress) GetAddress() string

func (*BitcoinAddress) ProtoMessage

func (*BitcoinAddress) ProtoMessage()

func (*BitcoinAddress) ProtoReflect

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

func (*BitcoinAddress) Reset

func (x *BitcoinAddress) Reset()

func (*BitcoinAddress) String

func (x *BitcoinAddress) String() string

func (*BitcoinAddress) Validate

func (this *BitcoinAddress) Validate() error

type BuiltinAsset

type BuiltinAsset struct {

	// Name of the asset (e.g: Great British Pound)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Symbol of the asset (e.g: GBP)
	Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// Total circulating supply for the asset
	TotalSupply string `protobuf:"bytes,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// Number of decimal / precision handled by this asset
	Decimals uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// Maximum amount that can be requested by a party through the built-in asset faucet at a time
	MaxFaucetAmountMint string `protobuf:"bytes,5,opt,name=max_faucet_amount_mint,json=maxFaucetAmountMint,proto3" json:"max_faucet_amount_mint,omitempty"`
	// contains filtered or unexported fields
}

A Vega internal asset

func (*BuiltinAsset) Descriptor deprecated

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

Deprecated: Use BuiltinAsset.ProtoReflect.Descriptor instead.

func (*BuiltinAsset) GetDecimals

func (x *BuiltinAsset) GetDecimals() uint64

func (*BuiltinAsset) GetMaxFaucetAmountMint

func (x *BuiltinAsset) GetMaxFaucetAmountMint() string

func (*BuiltinAsset) GetName

func (x *BuiltinAsset) GetName() string

func (*BuiltinAsset) GetSymbol

func (x *BuiltinAsset) GetSymbol() string

func (*BuiltinAsset) GetTotalSupply

func (x *BuiltinAsset) GetTotalSupply() string

func (*BuiltinAsset) ProtoMessage

func (*BuiltinAsset) ProtoMessage()

func (*BuiltinAsset) ProtoReflect

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

func (*BuiltinAsset) Reset

func (x *BuiltinAsset) Reset()

func (*BuiltinAsset) String

func (x *BuiltinAsset) String() string

func (*BuiltinAsset) Validate

func (this *BuiltinAsset) Validate() error

type BuiltinAssetDeposit

type BuiltinAssetDeposit struct {

	// A Vega network internal asset identifier
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// A Vega party identifier (pub-key)
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be deposited
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

A deposit for a Vega built-in asset

func (*BuiltinAssetDeposit) Descriptor deprecated

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

Deprecated: Use BuiltinAssetDeposit.ProtoReflect.Descriptor instead.

func (*BuiltinAssetDeposit) GetAmount

func (x *BuiltinAssetDeposit) GetAmount() uint64

func (*BuiltinAssetDeposit) GetPartyId

func (x *BuiltinAssetDeposit) GetPartyId() string

func (*BuiltinAssetDeposit) GetVegaAssetId

func (x *BuiltinAssetDeposit) GetVegaAssetId() string

func (*BuiltinAssetDeposit) ProtoMessage

func (*BuiltinAssetDeposit) ProtoMessage()

func (*BuiltinAssetDeposit) ProtoReflect

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

func (*BuiltinAssetDeposit) Reset

func (x *BuiltinAssetDeposit) Reset()

func (*BuiltinAssetDeposit) String

func (x *BuiltinAssetDeposit) String() string

func (*BuiltinAssetDeposit) Validate

func (this *BuiltinAssetDeposit) Validate() error

type BuiltinAssetEvent

type BuiltinAssetEvent struct {

	// Types that are assignable to Action:
	//	*BuiltinAssetEvent_Deposit
	//	*BuiltinAssetEvent_Withdrawal
	Action isBuiltinAssetEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

An event related to a Vega built-in asset

func (*BuiltinAssetEvent) Descriptor deprecated

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

Deprecated: Use BuiltinAssetEvent.ProtoReflect.Descriptor instead.

func (*BuiltinAssetEvent) GetAction

func (m *BuiltinAssetEvent) GetAction() isBuiltinAssetEvent_Action

func (*BuiltinAssetEvent) GetDeposit

func (x *BuiltinAssetEvent) GetDeposit() *BuiltinAssetDeposit

func (*BuiltinAssetEvent) GetWithdrawal

func (x *BuiltinAssetEvent) GetWithdrawal() *BuiltinAssetWithdrawal

func (*BuiltinAssetEvent) ProtoMessage

func (*BuiltinAssetEvent) ProtoMessage()

func (*BuiltinAssetEvent) ProtoReflect

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

func (*BuiltinAssetEvent) Reset

func (x *BuiltinAssetEvent) Reset()

func (*BuiltinAssetEvent) String

func (x *BuiltinAssetEvent) String() string

func (*BuiltinAssetEvent) Validate

func (this *BuiltinAssetEvent) Validate() error

type BuiltinAssetEvent_Deposit

type BuiltinAssetEvent_Deposit struct {
	// Built-in asset deposit
	Deposit *BuiltinAssetDeposit `protobuf:"bytes,1001,opt,name=deposit,proto3,oneof"`
}

type BuiltinAssetEvent_Withdrawal

type BuiltinAssetEvent_Withdrawal struct {
	// Built-in asset withdrawal
	Withdrawal *BuiltinAssetWithdrawal `protobuf:"bytes,1002,opt,name=withdrawal,proto3,oneof"`
}

type BuiltinAssetWithdrawal

type BuiltinAssetWithdrawal struct {

	// A Vega network internal asset identifier
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// A Vega network party identifier (pub-key)
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be withdrawn
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

A withdrawal for a Vega built-in asset

func (*BuiltinAssetWithdrawal) Descriptor deprecated

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

Deprecated: Use BuiltinAssetWithdrawal.ProtoReflect.Descriptor instead.

func (*BuiltinAssetWithdrawal) GetAmount

func (x *BuiltinAssetWithdrawal) GetAmount() uint64

func (*BuiltinAssetWithdrawal) GetPartyId

func (x *BuiltinAssetWithdrawal) GetPartyId() string

func (*BuiltinAssetWithdrawal) GetVegaAssetId

func (x *BuiltinAssetWithdrawal) GetVegaAssetId() string

func (*BuiltinAssetWithdrawal) ProtoMessage

func (*BuiltinAssetWithdrawal) ProtoMessage()

func (*BuiltinAssetWithdrawal) ProtoReflect

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

func (*BuiltinAssetWithdrawal) Reset

func (x *BuiltinAssetWithdrawal) Reset()

func (*BuiltinAssetWithdrawal) String

func (x *BuiltinAssetWithdrawal) String() string

func (*BuiltinAssetWithdrawal) Validate

func (this *BuiltinAssetWithdrawal) Validate() error

type BusEvent

type BusEvent struct {

	// A unique event identifier for the message
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The batch (or block) of transactions that the events relate to
	Block string `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// The type of bus event (one of the list below)
	Type BusEventType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.BusEventType" json:"type,omitempty"`
	// Types that are assignable to Event:
	//	*BusEvent_TimeUpdate
	//	*BusEvent_TransferResponses
	//	*BusEvent_PositionResolution
	//	*BusEvent_Order
	//	*BusEvent_Account
	//	*BusEvent_Party
	//	*BusEvent_Trade
	//	*BusEvent_MarginLevels
	//	*BusEvent_Proposal
	//	*BusEvent_Vote
	//	*BusEvent_MarketData
	//	*BusEvent_NodeSignature
	//	*BusEvent_LossSocialization
	//	*BusEvent_SettlePosition
	//	*BusEvent_SettleDistressed
	//	*BusEvent_MarketCreated
	//	*BusEvent_Asset
	//	*BusEvent_MarketTick
	//	*BusEvent_Withdrawal
	//	*BusEvent_Deposit
	//	*BusEvent_Auction
	//	*BusEvent_RiskFactor
	//	*BusEvent_NetworkParameter
	//	*BusEvent_LiquidityProvision
	//	*BusEvent_MarketUpdated
	//	*BusEvent_OracleSpec
	//	*BusEvent_OracleData
	//	*BusEvent_Market
	//	*BusEvent_TxErrEvent
	Event isBusEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

A bus event is a container for event bus events emitted by Vega

func (*BusEvent) Descriptor deprecated

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

Deprecated: Use BusEvent.ProtoReflect.Descriptor instead.

func (*BusEvent) GetAccount

func (x *BusEvent) GetAccount() *Account

func (*BusEvent) GetAsset

func (x *BusEvent) GetAsset() *Asset

func (*BusEvent) GetAuction

func (x *BusEvent) GetAuction() *AuctionEvent

func (*BusEvent) GetBlock

func (x *BusEvent) GetBlock() string

func (*BusEvent) GetDeposit

func (x *BusEvent) GetDeposit() *Deposit

func (*BusEvent) GetEvent

func (m *BusEvent) GetEvent() isBusEvent_Event

func (*BusEvent) GetId

func (x *BusEvent) GetId() string

func (*BusEvent) GetLiquidityProvision

func (x *BusEvent) GetLiquidityProvision() *LiquidityProvision

func (*BusEvent) GetLossSocialization

func (x *BusEvent) GetLossSocialization() *LossSocialization

func (*BusEvent) GetMarginLevels

func (x *BusEvent) GetMarginLevels() *MarginLevels

func (*BusEvent) GetMarket

func (x *BusEvent) GetMarket() *MarketEvent

func (*BusEvent) GetMarketCreated

func (x *BusEvent) GetMarketCreated() *Market

func (*BusEvent) GetMarketData

func (x *BusEvent) GetMarketData() *MarketData

func (*BusEvent) GetMarketTick

func (x *BusEvent) GetMarketTick() *MarketTick

func (*BusEvent) GetMarketUpdated

func (x *BusEvent) GetMarketUpdated() *Market

func (*BusEvent) GetNetworkParameter

func (x *BusEvent) GetNetworkParameter() *NetworkParameter

func (*BusEvent) GetNodeSignature

func (x *BusEvent) GetNodeSignature() *NodeSignature

func (*BusEvent) GetOracleData

func (x *BusEvent) GetOracleData() *v1.OracleData

func (*BusEvent) GetOracleSpec

func (x *BusEvent) GetOracleSpec() *v1.OracleSpec

func (*BusEvent) GetOrder

func (x *BusEvent) GetOrder() *Order

func (*BusEvent) GetParty

func (x *BusEvent) GetParty() *Party

func (*BusEvent) GetPositionResolution

func (x *BusEvent) GetPositionResolution() *PositionResolution

func (*BusEvent) GetProposal

func (x *BusEvent) GetProposal() *Proposal

func (*BusEvent) GetRiskFactor

func (x *BusEvent) GetRiskFactor() *RiskFactor

func (*BusEvent) GetSettleDistressed

func (x *BusEvent) GetSettleDistressed() *SettleDistressed

func (*BusEvent) GetSettlePosition

func (x *BusEvent) GetSettlePosition() *SettlePosition

func (*BusEvent) GetTimeUpdate

func (x *BusEvent) GetTimeUpdate() *TimeUpdate

func (*BusEvent) GetTrade

func (x *BusEvent) GetTrade() *Trade

func (*BusEvent) GetTransferResponses

func (x *BusEvent) GetTransferResponses() *TransferResponses

func (*BusEvent) GetTxErrEvent

func (x *BusEvent) GetTxErrEvent() *TxErrorEvent

func (*BusEvent) GetType

func (x *BusEvent) GetType() BusEventType

func (*BusEvent) GetVote

func (x *BusEvent) GetVote() *Vote

func (*BusEvent) GetWithdrawal

func (x *BusEvent) GetWithdrawal() *Withdrawal

func (*BusEvent) ProtoMessage

func (*BusEvent) ProtoMessage()

func (*BusEvent) ProtoReflect

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

func (*BusEvent) Reset

func (x *BusEvent) Reset()

func (*BusEvent) String

func (x *BusEvent) String() string

func (*BusEvent) Validate

func (this *BusEvent) Validate() error

type BusEventType

type BusEventType int32

An (event) bus event type is used to specify a type of event It has 2 styles of event: Single values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item Group values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items

const (
	// Default value, always invalid
	BusEventType_BUS_EVENT_TYPE_UNSPECIFIED BusEventType = 0
	// Events of ALL event types, used when filtering stream from event bus
	BusEventType_BUS_EVENT_TYPE_ALL BusEventType = 1
	// Event for blockchain time updates
	BusEventType_BUS_EVENT_TYPE_TIME_UPDATE BusEventType = 2
	// Event for when a transfer happens internally, contains the transfer information
	BusEventType_BUS_EVENT_TYPE_TRANSFER_RESPONSES BusEventType = 3
	// Event indicating position resolution has occurred
	BusEventType_BUS_EVENT_TYPE_POSITION_RESOLUTION BusEventType = 4
	// Event for order updates, both new and existing orders
	BusEventType_BUS_EVENT_TYPE_ORDER BusEventType = 5
	// Event for account updates
	BusEventType_BUS_EVENT_TYPE_ACCOUNT BusEventType = 6
	// Event for party updates
	BusEventType_BUS_EVENT_TYPE_PARTY BusEventType = 7
	// Event indicating a new trade has occurred
	BusEventType_BUS_EVENT_TYPE_TRADE BusEventType = 8
	// Event indicating margin levels have changed for a party
	BusEventType_BUS_EVENT_TYPE_MARGIN_LEVELS BusEventType = 9
	// Event for proposal updates (for governance)
	BusEventType_BUS_EVENT_TYPE_PROPOSAL BusEventType = 10
	// Event indicating a new vote has occurred (for governance)
	BusEventType_BUS_EVENT_TYPE_VOTE BusEventType = 11
	// Event for market data updates
	BusEventType_BUS_EVENT_TYPE_MARKET_DATA BusEventType = 12
	// Event for a new signature for a Vega node
	BusEventType_BUS_EVENT_TYPE_NODE_SIGNATURE BusEventType = 13
	// Event indicating loss socialisation occurred for a party
	BusEventType_BUS_EVENT_TYPE_LOSS_SOCIALIZATION BusEventType = 14
	// Event for when a position is being settled
	BusEventType_BUS_EVENT_TYPE_SETTLE_POSITION BusEventType = 15
	// Event for when a position is distressed
	BusEventType_BUS_EVENT_TYPE_SETTLE_DISTRESSED BusEventType = 16
	// Event indicating a new market was created
	BusEventType_BUS_EVENT_TYPE_MARKET_CREATED BusEventType = 17
	// Event for when an asset is added to Vega
	BusEventType_BUS_EVENT_TYPE_ASSET BusEventType = 18
	// Event indicating a market tick event
	BusEventType_BUS_EVENT_TYPE_MARKET_TICK BusEventType = 19
	// Event for when a withdrawal occurs
	BusEventType_BUS_EVENT_TYPE_WITHDRAWAL BusEventType = 20
	// Event for when a deposit occurs
	BusEventType_BUS_EVENT_TYPE_DEPOSIT BusEventType = 21
	// Event indicating a change in auction state, for example starting or ending an auction
	BusEventType_BUS_EVENT_TYPE_AUCTION BusEventType = 22
	// Event indicating a risk factor has been updated
	BusEventType_BUS_EVENT_TYPE_RISK_FACTOR BusEventType = 23
	// Event indicating a network parameter has been added or updated
	BusEventType_BUS_EVENT_TYPE_NETWORK_PARAMETER BusEventType = 24
	// Event indicating a liquidity provision has been created or updated
	BusEventType_BUS_EVENT_TYPE_LIQUIDITY_PROVISION BusEventType = 25
	// Event indicating a new market was created
	BusEventType_BUS_EVENT_TYPE_MARKET_UPDATED BusEventType = 26
	// Event indicating an oracle spec has been created or updated
	BusEventType_BUS_EVENT_TYPE_ORACLE_SPEC BusEventType = 27
	// Event indicating that an oracle data has been broadcast
	BusEventType_BUS_EVENT_TYPE_ORACLE_DATA BusEventType = 28
	// Event indicating a market related event, for example when a market opens
	BusEventType_BUS_EVENT_TYPE_MARKET BusEventType = 101
	// Event used to report failed transactions back to a user, this is excluded from the ALL type
	BusEventType_BUS_EVENT_TYPE_TX_ERROR BusEventType = 201
)

func (BusEventType) Descriptor

func (BusEventType) Enum

func (x BusEventType) Enum() *BusEventType

func (BusEventType) EnumDescriptor deprecated

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

Deprecated: Use BusEventType.Descriptor instead.

func (BusEventType) Number

func (BusEventType) String

func (x BusEventType) String() string

func (BusEventType) Type

type BusEvent_Account

type BusEvent_Account struct {
	// Account events
	Account *Account `protobuf:"bytes,105,opt,name=account,proto3,oneof"`
}

type BusEvent_Asset

type BusEvent_Asset struct {
	// Asset events
	Asset *Asset `protobuf:"bytes,117,opt,name=asset,proto3,oneof"`
}

type BusEvent_Auction

type BusEvent_Auction struct {
	// Auction events - See [AuctionEvent](#vega.AuctionEvent)
	Auction *AuctionEvent `protobuf:"bytes,121,opt,name=auction,proto3,oneof"`
}

type BusEvent_Deposit

type BusEvent_Deposit struct {
	// Deposit events
	Deposit *Deposit `protobuf:"bytes,120,opt,name=deposit,proto3,oneof"`
}

type BusEvent_LiquidityProvision

type BusEvent_LiquidityProvision struct {
	// LiquidityProvision  events
	LiquidityProvision *LiquidityProvision `protobuf:"bytes,124,opt,name=liquidity_provision,json=liquidityProvision,proto3,oneof"`
}

type BusEvent_LossSocialization

type BusEvent_LossSocialization struct {
	// Loss socialization events - See [LossSocialization](#vega.LossSocialization)
	LossSocialization *LossSocialization `protobuf:"bytes,113,opt,name=loss_socialization,json=lossSocialization,proto3,oneof"`
}

type BusEvent_MarginLevels

type BusEvent_MarginLevels struct {
	// Margin level update events
	MarginLevels *MarginLevels `protobuf:"bytes,108,opt,name=margin_levels,json=marginLevels,proto3,oneof"`
}

type BusEvent_Market

type BusEvent_Market struct {
	// Market tick events - See [MarketEvent](#vega.MarketEvent)
	Market *MarketEvent `protobuf:"bytes,1001,opt,name=market,proto3,oneof"`
}

type BusEvent_MarketCreated

type BusEvent_MarketCreated struct {
	// Market created events
	MarketCreated *Market `protobuf:"bytes,116,opt,name=market_created,json=marketCreated,proto3,oneof"`
}

type BusEvent_MarketData

type BusEvent_MarketData struct {
	// Market data events
	MarketData *MarketData `protobuf:"bytes,111,opt,name=market_data,json=marketData,proto3,oneof"`
}

type BusEvent_MarketTick

type BusEvent_MarketTick struct {
	// Market tick events - See [MarketTick](#vega.MarketTick)
	MarketTick *MarketTick `protobuf:"bytes,118,opt,name=market_tick,json=marketTick,proto3,oneof"`
}

type BusEvent_MarketUpdated

type BusEvent_MarketUpdated struct {
	// Market created events
	MarketUpdated *Market `protobuf:"bytes,125,opt,name=market_updated,json=marketUpdated,proto3,oneof"`
}

type BusEvent_NetworkParameter

type BusEvent_NetworkParameter struct {
	// Network parameter events
	NetworkParameter *NetworkParameter `protobuf:"bytes,123,opt,name=network_parameter,json=networkParameter,proto3,oneof"`
}

type BusEvent_NodeSignature

type BusEvent_NodeSignature struct {
	// Node signature events
	NodeSignature *NodeSignature `protobuf:"bytes,112,opt,name=node_signature,json=nodeSignature,proto3,oneof"`
}

type BusEvent_OracleData

type BusEvent_OracleData struct {
	// OracleData events
	OracleData *v1.OracleData `protobuf:"bytes,127,opt,name=oracle_data,json=oracleData,proto3,oneof"`
}

type BusEvent_OracleSpec

type BusEvent_OracleSpec struct {
	// OracleSpec events
	OracleSpec *v1.OracleSpec `protobuf:"bytes,126,opt,name=oracle_spec,json=oracleSpec,proto3,oneof"`
}

type BusEvent_Order

type BusEvent_Order struct {
	// Order events
	Order *Order `protobuf:"bytes,104,opt,name=order,proto3,oneof"`
}

type BusEvent_Party

type BusEvent_Party struct {
	// Party events
	Party *Party `protobuf:"bytes,106,opt,name=party,proto3,oneof"`
}

type BusEvent_PositionResolution

type BusEvent_PositionResolution struct {
	// Position resolution events - See [PositionResolution](#vega.PositionResolution)
	PositionResolution *PositionResolution `protobuf:"bytes,103,opt,name=position_resolution,json=positionResolution,proto3,oneof"`
}

type BusEvent_Proposal

type BusEvent_Proposal struct {
	// Proposal events (for governance)
	Proposal *Proposal `protobuf:"bytes,109,opt,name=proposal,proto3,oneof"`
}

type BusEvent_RiskFactor

type BusEvent_RiskFactor struct {
	// Risk factor events
	RiskFactor *RiskFactor `protobuf:"bytes,122,opt,name=risk_factor,json=riskFactor,proto3,oneof"`
}

type BusEvent_SettleDistressed

type BusEvent_SettleDistressed struct {
	// Position distressed events - See [SettleDistressed](#vega.SettleDistressed)
	SettleDistressed *SettleDistressed `protobuf:"bytes,115,opt,name=settle_distressed,json=settleDistressed,proto3,oneof"`
}

type BusEvent_SettlePosition

type BusEvent_SettlePosition struct {
	// Position settlement events - See [SettlePosition](#vega.SettlePosition)
	SettlePosition *SettlePosition `protobuf:"bytes,114,opt,name=settle_position,json=settlePosition,proto3,oneof"`
}

type BusEvent_TimeUpdate

type BusEvent_TimeUpdate struct {
	// Time update events - See [TimeUpdate](#vega.TimeUpdate)
	TimeUpdate *TimeUpdate `protobuf:"bytes,101,opt,name=time_update,json=timeUpdate,proto3,oneof"`
}

type BusEvent_Trade

type BusEvent_Trade struct {
	// Trade events
	Trade *Trade `protobuf:"bytes,107,opt,name=trade,proto3,oneof"`
}

type BusEvent_TransferResponses

type BusEvent_TransferResponses struct {
	// Transfer responses update events - See [TransferResponses](#vega.TransferResponses)
	TransferResponses *TransferResponses `protobuf:"bytes,102,opt,name=transfer_responses,json=transferResponses,proto3,oneof"`
}

type BusEvent_TxErrEvent

type BusEvent_TxErrEvent struct {
	// Transaction error events, not included in the ALL event type
	TxErrEvent *TxErrorEvent `protobuf:"bytes,2001,opt,name=tx_err_event,json=txErrEvent,proto3,oneof"`
}

type BusEvent_Vote

type BusEvent_Vote struct {
	// Vote events (for governance)
	Vote *Vote `protobuf:"bytes,110,opt,name=vote,proto3,oneof"`
}

type BusEvent_Withdrawal

type BusEvent_Withdrawal struct {
	// Withdrawal events
	Withdrawal *Withdrawal `protobuf:"bytes,119,opt,name=withdrawal,proto3,oneof"`
}

type Candle

type Candle struct {

	// Timestamp for the point in time when the candle was initially created/opened, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// An ISO-8601 datetime with nanosecond precision for when the candle was last updated
	Datetime string `protobuf:"bytes,2,opt,name=datetime,proto3" json:"datetime,omitempty"`
	// Highest price for trading during the candle interval
	High uint64 `protobuf:"varint,3,opt,name=high,proto3" json:"high,omitempty"`
	// Lowest price for trading during the candle interval
	Low uint64 `protobuf:"varint,4,opt,name=low,proto3" json:"low,omitempty"`
	// Open trade price
	Open uint64 `protobuf:"varint,5,opt,name=open,proto3" json:"open,omitempty"`
	// Closing trade price
	Close uint64 `protobuf:"varint,6,opt,name=close,proto3" json:"close,omitempty"`
	// Total trading volume during the candle interval
	Volume uint64 `protobuf:"varint,7,opt,name=volume,proto3" json:"volume,omitempty"`
	// Time interval for the candle - See [`Interval`](#vega.Interval)
	Interval Interval `protobuf:"varint,8,opt,name=interval,proto3,enum=vega.Interval" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

Represents the high, low, open, and closing prices for an interval of trading, referred to commonly as a candlestick or candle

func (*Candle) Descriptor deprecated

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

Deprecated: Use Candle.ProtoReflect.Descriptor instead.

func (*Candle) GetClose

func (x *Candle) GetClose() uint64

func (*Candle) GetDatetime

func (x *Candle) GetDatetime() string

func (*Candle) GetHigh

func (x *Candle) GetHigh() uint64

func (*Candle) GetInterval

func (x *Candle) GetInterval() Interval

func (*Candle) GetLow

func (x *Candle) GetLow() uint64

func (*Candle) GetOpen

func (x *Candle) GetOpen() uint64

func (*Candle) GetTimestamp

func (x *Candle) GetTimestamp() int64

func (*Candle) GetVolume

func (x *Candle) GetVolume() uint64

func (*Candle) ProtoMessage

func (*Candle) ProtoMessage()

func (*Candle) ProtoReflect

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

func (*Candle) Reset

func (x *Candle) Reset()

func (*Candle) String

func (x *Candle) String() string

func (*Candle) Validate

func (this *Candle) Validate() error

type ChainEvent

type ChainEvent struct {

	// The identifier of the transaction in which the events happened, usually a hash
	TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// Arbitrary one-time integer used to prevent replay attacks
	Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The event
	//
	// Types that are assignable to Event:
	//	*ChainEvent_Builtin
	//	*ChainEvent_Erc20
	//	*ChainEvent_Btc
	//	*ChainEvent_Validator
	Event isChainEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

An event forwarded to the Vega network to provide information on events happening on other networks

func (*ChainEvent) Descriptor deprecated

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

Deprecated: Use ChainEvent.ProtoReflect.Descriptor instead.

func (*ChainEvent) GetBtc

func (x *ChainEvent) GetBtc() *BTCEvent

func (*ChainEvent) GetBuiltin

func (x *ChainEvent) GetBuiltin() *BuiltinAssetEvent

func (*ChainEvent) GetErc20

func (x *ChainEvent) GetErc20() *ERC20Event

func (*ChainEvent) GetEvent

func (m *ChainEvent) GetEvent() isChainEvent_Event

func (*ChainEvent) GetNonce

func (x *ChainEvent) GetNonce() uint64

func (*ChainEvent) GetTxId

func (x *ChainEvent) GetTxId() string

func (*ChainEvent) GetValidator

func (x *ChainEvent) GetValidator() *ValidatorEvent

func (*ChainEvent) ProtoMessage

func (*ChainEvent) ProtoMessage()

func (*ChainEvent) ProtoReflect

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

func (*ChainEvent) Reset

func (x *ChainEvent) Reset()

func (*ChainEvent) String

func (x *ChainEvent) String() string

func (*ChainEvent) Validate

func (this *ChainEvent) Validate() error

type ChainEvent_Btc

type ChainEvent_Btc struct {
	// Bitcoin BTC event
	Btc *BTCEvent `protobuf:"bytes,1003,opt,name=btc,proto3,oneof"`
}

type ChainEvent_Builtin

type ChainEvent_Builtin struct {
	// Built-in asset event
	Builtin *BuiltinAssetEvent `protobuf:"bytes,1001,opt,name=builtin,proto3,oneof"`
}

type ChainEvent_Erc20

type ChainEvent_Erc20 struct {
	// Ethereum ERC20 event
	Erc20 *ERC20Event `protobuf:"bytes,1002,opt,name=erc20,proto3,oneof"`
}

type ChainEvent_Validator

type ChainEvent_Validator struct {
	// Validator event
	Validator *ValidatorEvent `protobuf:"bytes,1004,opt,name=validator,proto3,oneof"`
}

type ChainStatus

type ChainStatus int32

The Vega blockchain status as reported by the node the caller is connected to

const (
	// Default value, always invalid
	ChainStatus_CHAIN_STATUS_UNSPECIFIED ChainStatus = 0
	// Blockchain is disconnected
	ChainStatus_CHAIN_STATUS_DISCONNECTED ChainStatus = 1
	// Blockchain is replaying historic transactions
	ChainStatus_CHAIN_STATUS_REPLAYING ChainStatus = 2
	// Blockchain is connected and receiving transactions
	ChainStatus_CHAIN_STATUS_CONNECTED ChainStatus = 3
)

func (ChainStatus) Descriptor

func (ChainStatus) Enum

func (x ChainStatus) Enum() *ChainStatus

func (ChainStatus) EnumDescriptor deprecated

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

Deprecated: Use ChainStatus.Descriptor instead.

func (ChainStatus) Number

func (x ChainStatus) Number() protoreflect.EnumNumber

func (ChainStatus) String

func (x ChainStatus) String() string

func (ChainStatus) Type

type ContinuousTrading

type ContinuousTrading struct {

	// Tick size
	TickSize string `protobuf:"bytes,1,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// contains filtered or unexported fields
}

Continuous trading

func (*ContinuousTrading) Descriptor deprecated

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

Deprecated: Use ContinuousTrading.ProtoReflect.Descriptor instead.

func (*ContinuousTrading) GetTickSize

func (x *ContinuousTrading) GetTickSize() string

func (*ContinuousTrading) ProtoMessage

func (*ContinuousTrading) ProtoMessage()

func (*ContinuousTrading) ProtoReflect

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

func (*ContinuousTrading) Reset

func (x *ContinuousTrading) Reset()

func (*ContinuousTrading) String

func (x *ContinuousTrading) String() string

func (*ContinuousTrading) Validate

func (this *ContinuousTrading) Validate() error

type Deposit

type Deposit struct {

	// Unique identifier for the deposit
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Status of the deposit
	Status Deposit_Status `protobuf:"varint,2,opt,name=status,proto3,enum=vega.Deposit_Status" json:"status,omitempty"`
	// Party identifier of the user initiating the deposit
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The Vega asset targeted by this deposit
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// The amount to be deposited
	Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	// The hash of the transaction from the foreign chain
	TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// Timestamp for when the Vega account was updated with the deposit
	CreditedTimestamp int64 `protobuf:"varint,7,opt,name=credited_timestamp,json=creditedTimestamp,proto3" json:"credited_timestamp,omitempty"`
	// Timestamp for when the deposit was created on the Vega network
	CreatedTimestamp int64 `protobuf:"varint,8,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"`
	// contains filtered or unexported fields
}

A deposit on to the Vega network

func (*Deposit) Descriptor deprecated

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

Deprecated: Use Deposit.ProtoReflect.Descriptor instead.

func (*Deposit) GetAmount

func (x *Deposit) GetAmount() string

func (*Deposit) GetAsset

func (x *Deposit) GetAsset() string

func (*Deposit) GetCreatedTimestamp

func (x *Deposit) GetCreatedTimestamp() int64

func (*Deposit) GetCreditedTimestamp

func (x *Deposit) GetCreditedTimestamp() int64

func (*Deposit) GetId

func (x *Deposit) GetId() string

func (*Deposit) GetPartyId

func (x *Deposit) GetPartyId() string

func (*Deposit) GetStatus

func (x *Deposit) GetStatus() Deposit_Status

func (*Deposit) GetTxHash

func (x *Deposit) GetTxHash() string

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) ProtoReflect

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

func (*Deposit) Reset

func (x *Deposit) Reset()

func (*Deposit) String

func (x *Deposit) String() string

func (*Deposit) Validate

func (this *Deposit) Validate() error

type Deposit_Status

type Deposit_Status int32

The status of the deposit

const (
	// Default value, always invalid
	Deposit_STATUS_UNSPECIFIED Deposit_Status = 0
	// The deposit is being processed by the network
	Deposit_STATUS_OPEN Deposit_Status = 1
	// The deposit has been cancelled by the network
	Deposit_STATUS_CANCELLED Deposit_Status = 2
	// The deposit has been finalised and accounts have been updated
	Deposit_STATUS_FINALIZED Deposit_Status = 3
)

func (Deposit_Status) Descriptor

func (Deposit_Status) Enum

func (x Deposit_Status) Enum() *Deposit_Status

func (Deposit_Status) EnumDescriptor deprecated

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

Deprecated: Use Deposit_Status.Descriptor instead.

func (Deposit_Status) Number

func (Deposit_Status) String

func (x Deposit_Status) String() string

func (Deposit_Status) Type

type DevAssets

type DevAssets struct {

	// Asset sources for development networks
	Sources []*AssetSource `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

Dev assets are for use in development networks only

func (*DevAssets) Descriptor deprecated

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

Deprecated: Use DevAssets.ProtoReflect.Descriptor instead.

func (*DevAssets) GetSources

func (x *DevAssets) GetSources() []*AssetSource

func (*DevAssets) ProtoMessage

func (*DevAssets) ProtoMessage()

func (*DevAssets) ProtoReflect

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

func (*DevAssets) Reset

func (x *DevAssets) Reset()

func (*DevAssets) String

func (x *DevAssets) String() string

func (*DevAssets) Validate

func (this *DevAssets) Validate() error

type DiscreteTrading

type DiscreteTrading struct {

	// Duration in nanoseconds, maximum 1 month (2592000000000000 ns)
	DurationNs int64 `protobuf:"varint,1,opt,name=duration_ns,json=durationNs,proto3" json:"duration_ns,omitempty"`
	// Tick size
	TickSize string `protobuf:"bytes,2,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// contains filtered or unexported fields
}

Discrete trading

func (*DiscreteTrading) Descriptor deprecated

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

Deprecated: Use DiscreteTrading.ProtoReflect.Descriptor instead.

func (*DiscreteTrading) GetDurationNs

func (x *DiscreteTrading) GetDurationNs() int64

func (*DiscreteTrading) GetTickSize

func (x *DiscreteTrading) GetTickSize() string

func (*DiscreteTrading) ProtoMessage

func (*DiscreteTrading) ProtoMessage()

func (*DiscreteTrading) ProtoReflect

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

func (*DiscreteTrading) Reset

func (x *DiscreteTrading) Reset()

func (*DiscreteTrading) String

func (x *DiscreteTrading) String() string

func (*DiscreteTrading) Validate

func (this *DiscreteTrading) Validate() error

type ERC20

type ERC20 struct {

	// The address of the contract for the token, on the ethereum network
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// contains filtered or unexported fields
}

An ERC20 token based asset, living on the ethereum network

func (*ERC20) Descriptor deprecated

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

Deprecated: Use ERC20.ProtoReflect.Descriptor instead.

func (*ERC20) GetContractAddress

func (x *ERC20) GetContractAddress() string

func (*ERC20) ProtoMessage

func (*ERC20) ProtoMessage()

func (*ERC20) ProtoReflect

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

func (*ERC20) Reset

func (x *ERC20) Reset()

func (*ERC20) String

func (x *ERC20) String() string

func (*ERC20) Validate

func (this *ERC20) Validate() error

type ERC20AssetDelist

type ERC20AssetDelist struct {

	// The Vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// contains filtered or unexported fields
}

An asset deny-listing for an ERC20 token

func (*ERC20AssetDelist) Descriptor deprecated

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

Deprecated: Use ERC20AssetDelist.ProtoReflect.Descriptor instead.

func (*ERC20AssetDelist) GetVegaAssetId

func (x *ERC20AssetDelist) GetVegaAssetId() string

func (*ERC20AssetDelist) ProtoMessage

func (*ERC20AssetDelist) ProtoMessage()

func (*ERC20AssetDelist) ProtoReflect

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

func (*ERC20AssetDelist) Reset

func (x *ERC20AssetDelist) Reset()

func (*ERC20AssetDelist) String

func (x *ERC20AssetDelist) String() string

func (*ERC20AssetDelist) Validate

func (this *ERC20AssetDelist) Validate() error

type ERC20AssetList

type ERC20AssetList struct {

	// The Vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// contains filtered or unexported fields
}

An asset allow-listing for an ERC20 token

func (*ERC20AssetList) Descriptor deprecated

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

Deprecated: Use ERC20AssetList.ProtoReflect.Descriptor instead.

func (*ERC20AssetList) GetVegaAssetId

func (x *ERC20AssetList) GetVegaAssetId() string

func (*ERC20AssetList) ProtoMessage

func (*ERC20AssetList) ProtoMessage()

func (*ERC20AssetList) ProtoReflect

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

func (*ERC20AssetList) Reset

func (x *ERC20AssetList) Reset()

func (*ERC20AssetList) String

func (x *ERC20AssetList) String() string

func (*ERC20AssetList) Validate

func (this *ERC20AssetList) Validate() error

type ERC20Deposit

type ERC20Deposit struct {

	// The vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// The Ethereum wallet that initiated the deposit
	SourceEthereumAddress string `` /* 126-byte string literal not displayed */
	// The Vega party identifier (pub-key) which is the target of the deposit
	TargetPartyId string `protobuf:"bytes,3,opt,name=target_party_id,json=targetPartyId,proto3" json:"target_party_id,omitempty"`
	// The amount to be deposited
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

An asset deposit for an ERC20 token

func (*ERC20Deposit) Descriptor deprecated

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

Deprecated: Use ERC20Deposit.ProtoReflect.Descriptor instead.

func (*ERC20Deposit) GetAmount

func (x *ERC20Deposit) GetAmount() string

func (*ERC20Deposit) GetSourceEthereumAddress

func (x *ERC20Deposit) GetSourceEthereumAddress() string

func (*ERC20Deposit) GetTargetPartyId

func (x *ERC20Deposit) GetTargetPartyId() string

func (*ERC20Deposit) GetVegaAssetId

func (x *ERC20Deposit) GetVegaAssetId() string

func (*ERC20Deposit) ProtoMessage

func (*ERC20Deposit) ProtoMessage()

func (*ERC20Deposit) ProtoReflect

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

func (*ERC20Deposit) Reset

func (x *ERC20Deposit) Reset()

func (*ERC20Deposit) String

func (x *ERC20Deposit) String() string

func (*ERC20Deposit) Validate

func (this *ERC20Deposit) Validate() error

type ERC20Event

type ERC20Event struct {

	// Index of the transaction
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// The block in which the transaction was added
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// The action
	//
	// Types that are assignable to Action:
	//	*ERC20Event_AssetList
	//	*ERC20Event_AssetDelist
	//	*ERC20Event_Deposit
	//	*ERC20Event_Withdrawal
	Action isERC20Event_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

An event related to an ERC20 token

func (*ERC20Event) Descriptor deprecated

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

Deprecated: Use ERC20Event.ProtoReflect.Descriptor instead.

func (*ERC20Event) GetAction

func (m *ERC20Event) GetAction() isERC20Event_Action

func (*ERC20Event) GetAssetDelist

func (x *ERC20Event) GetAssetDelist() *ERC20AssetDelist

func (*ERC20Event) GetAssetList

func (x *ERC20Event) GetAssetList() *ERC20AssetList

func (*ERC20Event) GetBlock

func (x *ERC20Event) GetBlock() uint64

func (*ERC20Event) GetDeposit

func (x *ERC20Event) GetDeposit() *ERC20Deposit

func (*ERC20Event) GetIndex

func (x *ERC20Event) GetIndex() uint64

func (*ERC20Event) GetWithdrawal

func (x *ERC20Event) GetWithdrawal() *ERC20Withdrawal

func (*ERC20Event) ProtoMessage

func (*ERC20Event) ProtoMessage()

func (*ERC20Event) ProtoReflect

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

func (*ERC20Event) Reset

func (x *ERC20Event) Reset()

func (*ERC20Event) String

func (x *ERC20Event) String() string

func (*ERC20Event) Validate

func (this *ERC20Event) Validate() error

type ERC20Event_AssetDelist

type ERC20Event_AssetDelist struct {
	// De-list an ERC20 asset
	AssetDelist *ERC20AssetDelist `protobuf:"bytes,1002,opt,name=asset_delist,json=assetDelist,proto3,oneof"`
}

type ERC20Event_AssetList

type ERC20Event_AssetList struct {
	// List an ERC20 asset
	AssetList *ERC20AssetList `protobuf:"bytes,1001,opt,name=asset_list,json=assetList,proto3,oneof"`
}

type ERC20Event_Deposit

type ERC20Event_Deposit struct {
	// Deposit ERC20 asset
	Deposit *ERC20Deposit `protobuf:"bytes,1003,opt,name=deposit,proto3,oneof"`
}

type ERC20Event_Withdrawal

type ERC20Event_Withdrawal struct {
	// Withdraw ERC20 asset
	Withdrawal *ERC20Withdrawal `protobuf:"bytes,1004,opt,name=withdrawal,proto3,oneof"`
}

type ERC20Withdrawal

type ERC20Withdrawal struct {

	// The Vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// The target Ethereum wallet address
	TargetEthereumAddress string `` /* 126-byte string literal not displayed */
	// The reference nonce used for the transaction
	ReferenceNonce string `protobuf:"bytes,3,opt,name=reference_nonce,json=referenceNonce,proto3" json:"reference_nonce,omitempty"`
	// contains filtered or unexported fields
}

An asset withdrawal for an ERC20 token

func (*ERC20Withdrawal) Descriptor deprecated

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

Deprecated: Use ERC20Withdrawal.ProtoReflect.Descriptor instead.

func (*ERC20Withdrawal) GetReferenceNonce

func (x *ERC20Withdrawal) GetReferenceNonce() string

func (*ERC20Withdrawal) GetTargetEthereumAddress

func (x *ERC20Withdrawal) GetTargetEthereumAddress() string

func (*ERC20Withdrawal) GetVegaAssetId

func (x *ERC20Withdrawal) GetVegaAssetId() string

func (*ERC20Withdrawal) ProtoMessage

func (*ERC20Withdrawal) ProtoMessage()

func (*ERC20Withdrawal) ProtoReflect

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

func (*ERC20Withdrawal) Reset

func (x *ERC20Withdrawal) Reset()

func (*ERC20Withdrawal) String

func (x *ERC20Withdrawal) String() string

func (*ERC20Withdrawal) Validate

func (this *ERC20Withdrawal) Validate() error

type Erc20WithdrawExt

type Erc20WithdrawExt struct {

	// The address into which the bridge will release the funds
	ReceiverAddress string `protobuf:"bytes,1,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"`
	// contains filtered or unexported fields
}

An extension of data required for the withdraw submissions

func (*Erc20WithdrawExt) Descriptor deprecated

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

Deprecated: Use Erc20WithdrawExt.ProtoReflect.Descriptor instead.

func (*Erc20WithdrawExt) GetReceiverAddress

func (x *Erc20WithdrawExt) GetReceiverAddress() string

func (*Erc20WithdrawExt) ProtoMessage

func (*Erc20WithdrawExt) ProtoMessage()

func (*Erc20WithdrawExt) ProtoReflect

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

func (*Erc20WithdrawExt) Reset

func (x *Erc20WithdrawExt) Reset()

func (*Erc20WithdrawExt) String

func (x *Erc20WithdrawExt) String() string

func (*Erc20WithdrawExt) Validate

func (this *Erc20WithdrawExt) Validate() error

type ErrorDetail

type ErrorDetail struct {

	// A Vega API domain specific unique error code, useful for client side mappings, e.g. 10004
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// A message that describes the error in more detail, should describe the problem encountered
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Any inner error information that could add more context, or be helpful for error reporting
	Inner string `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"`
	// contains filtered or unexported fields
}

Represents Vega domain specific error information over gRPC/Protobuf

func (*ErrorDetail) Descriptor deprecated

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

Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.

func (*ErrorDetail) GetCode

func (x *ErrorDetail) GetCode() int32

func (*ErrorDetail) GetInner

func (x *ErrorDetail) GetInner() string

func (*ErrorDetail) GetMessage

func (x *ErrorDetail) GetMessage() string

func (*ErrorDetail) ProtoMessage

func (*ErrorDetail) ProtoMessage()

func (*ErrorDetail) ProtoReflect

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

func (*ErrorDetail) Reset

func (x *ErrorDetail) Reset()

func (*ErrorDetail) String

func (x *ErrorDetail) String() string

func (*ErrorDetail) Validate

func (this *ErrorDetail) Validate() error

type EthereumAddress

type EthereumAddress struct {

	// An Ethereum address
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

Used as a wrapper for an Ethereum address (wallet/contract)

func (*EthereumAddress) Descriptor deprecated

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

Deprecated: Use EthereumAddress.ProtoReflect.Descriptor instead.

func (*EthereumAddress) GetAddress

func (x *EthereumAddress) GetAddress() string

func (*EthereumAddress) ProtoMessage

func (*EthereumAddress) ProtoMessage()

func (*EthereumAddress) ProtoReflect

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

func (*EthereumAddress) Reset

func (x *EthereumAddress) Reset()

func (*EthereumAddress) String

func (x *EthereumAddress) String() string

func (*EthereumAddress) Validate

func (this *EthereumAddress) Validate() error

type EthereumConfig

type EthereumConfig struct {

	// Network identifier of this Ethereum network
	NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Chain identifier of this Ethereum network
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Bridge address for this Ethereum network
	BridgeAddress string `protobuf:"bytes,3,opt,name=bridge_address,json=bridgeAddress,proto3" json:"bridge_address,omitempty"`
	// Number of confirmations
	Confirmations uint32 `protobuf:"varint,4,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	// contains filtered or unexported fields
}

Ethereum configuration details

func (*EthereumConfig) Descriptor deprecated

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

Deprecated: Use EthereumConfig.ProtoReflect.Descriptor instead.

func (*EthereumConfig) GetBridgeAddress

func (x *EthereumConfig) GetBridgeAddress() string

func (*EthereumConfig) GetChainId

func (x *EthereumConfig) GetChainId() string

func (*EthereumConfig) GetConfirmations

func (x *EthereumConfig) GetConfirmations() uint32

func (*EthereumConfig) GetNetworkId

func (x *EthereumConfig) GetNetworkId() string

func (*EthereumConfig) ProtoMessage

func (*EthereumConfig) ProtoMessage()

func (*EthereumConfig) ProtoReflect

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

func (*EthereumConfig) Reset

func (x *EthereumConfig) Reset()

func (*EthereumConfig) String

func (x *EthereumConfig) String() string

func (*EthereumConfig) Validate

func (this *EthereumConfig) Validate() error

type Fee

type Fee struct {

	// Fee amount paid to the non-aggressive party of the trade
	MakerFee uint64 `protobuf:"varint,1,opt,name=maker_fee,json=makerFee,proto3" json:"maker_fee,omitempty"`
	// Fee amount paid for maintaining the Vega infrastructure
	InfrastructureFee uint64 `protobuf:"varint,2,opt,name=infrastructure_fee,json=infrastructureFee,proto3" json:"infrastructure_fee,omitempty"`
	// Fee amount paid to market makers
	LiquidityFee uint64 `protobuf:"varint,3,opt,name=liquidity_fee,json=liquidityFee,proto3" json:"liquidity_fee,omitempty"`
	// contains filtered or unexported fields
}

Represents any fees paid by a party, resulting from a trade

func (*Fee) Descriptor deprecated

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

Deprecated: Use Fee.ProtoReflect.Descriptor instead.

func (*Fee) GetInfrastructureFee

func (x *Fee) GetInfrastructureFee() uint64

func (*Fee) GetLiquidityFee

func (x *Fee) GetLiquidityFee() uint64

func (*Fee) GetMakerFee

func (x *Fee) GetMakerFee() uint64

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) ProtoReflect

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

func (*Fee) Reset

func (x *Fee) Reset()

func (*Fee) String

func (x *Fee) String() string

func (*Fee) Validate

func (this *Fee) Validate() error

type FeeFactors

type FeeFactors struct {

	// Maker fee
	MakerFee string `protobuf:"bytes,1,opt,name=maker_fee,json=makerFee,proto3" json:"maker_fee,omitempty"`
	// Infrastructure fee
	InfrastructureFee string `protobuf:"bytes,2,opt,name=infrastructure_fee,json=infrastructureFee,proto3" json:"infrastructure_fee,omitempty"`
	// Liquidity fee
	LiquidityFee string `protobuf:"bytes,3,opt,name=liquidity_fee,json=liquidityFee,proto3" json:"liquidity_fee,omitempty"`
	// contains filtered or unexported fields
}

Fee factors definition

func (*FeeFactors) Descriptor deprecated

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

Deprecated: Use FeeFactors.ProtoReflect.Descriptor instead.

func (*FeeFactors) GetInfrastructureFee

func (x *FeeFactors) GetInfrastructureFee() string

func (*FeeFactors) GetLiquidityFee

func (x *FeeFactors) GetLiquidityFee() string

func (*FeeFactors) GetMakerFee

func (x *FeeFactors) GetMakerFee() string

func (*FeeFactors) ProtoMessage

func (*FeeFactors) ProtoMessage()

func (*FeeFactors) ProtoReflect

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

func (*FeeFactors) Reset

func (x *FeeFactors) Reset()

func (*FeeFactors) String

func (x *FeeFactors) String() string

func (*FeeFactors) Validate

func (this *FeeFactors) Validate() error

type Fees

type Fees struct {

	// Fee factors
	Factors *FeeFactors `protobuf:"bytes,1,opt,name=factors,proto3" json:"factors,omitempty"`
	// contains filtered or unexported fields
}

Fees definition

func (*Fees) Descriptor deprecated

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

Deprecated: Use Fees.ProtoReflect.Descriptor instead.

func (*Fees) GetFactors

func (x *Fees) GetFactors() *FeeFactors

func (*Fees) ProtoMessage

func (*Fees) ProtoMessage()

func (*Fees) ProtoReflect

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

func (*Fees) Reset

func (x *Fees) Reset()

func (*Fees) String

func (x *Fees) String() string

func (*Fees) Validate

func (this *Fees) Validate() error

type FinancialAmount

type FinancialAmount struct {

	// A signed integer amount of asset
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Asset identifier
	Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

Asset value information used within a transfer

func (*FinancialAmount) Descriptor deprecated

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

Deprecated: Use FinancialAmount.ProtoReflect.Descriptor instead.

func (*FinancialAmount) GetAmount

func (x *FinancialAmount) GetAmount() uint64

func (*FinancialAmount) GetAsset

func (x *FinancialAmount) GetAsset() string

func (*FinancialAmount) ProtoMessage

func (*FinancialAmount) ProtoMessage()

func (*FinancialAmount) ProtoReflect

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

func (*FinancialAmount) Reset

func (x *FinancialAmount) Reset()

func (*FinancialAmount) String

func (x *FinancialAmount) String() string

func (*FinancialAmount) Validate

func (this *FinancialAmount) Validate() error

type Future

type Future struct {

	// The maturity for the future
	Maturity string `protobuf:"bytes,1,opt,name=maturity,proto3" json:"maturity,omitempty"`
	// The asset for the future
	SettlementAsset string `protobuf:"bytes,2,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
	// Quote name of the instrument
	QuoteName string `protobuf:"bytes,4,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// The oracle spec describing the oracle data of interest
	OracleSpec *v1.OracleSpec `protobuf:"bytes,5,opt,name=oracle_spec,json=oracleSpec,proto3" json:"oracle_spec,omitempty"`
	// The binding between the oracle spec and the settlement price
	OracleSpecBinding *OracleSpecToFutureBinding `protobuf:"bytes,6,opt,name=oracle_spec_binding,json=oracleSpecBinding,proto3" json:"oracle_spec_binding,omitempty"`
	// contains filtered or unexported fields
}

Future product definition

func (*Future) Descriptor deprecated

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

Deprecated: Use Future.ProtoReflect.Descriptor instead.

func (*Future) GetMaturity

func (x *Future) GetMaturity() string

func (*Future) GetOracleSpec

func (x *Future) GetOracleSpec() *v1.OracleSpec

func (*Future) GetOracleSpecBinding

func (x *Future) GetOracleSpecBinding() *OracleSpecToFutureBinding

func (*Future) GetQuoteName

func (x *Future) GetQuoteName() string

func (*Future) GetSettlementAsset

func (x *Future) GetSettlementAsset() string

func (*Future) ProtoMessage

func (*Future) ProtoMessage()

func (*Future) ProtoReflect

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

func (*Future) Reset

func (x *Future) Reset()

func (*Future) String

func (x *Future) String() string

func (*Future) Validate

func (this *Future) Validate() error

type FutureProduct

type FutureProduct struct {

	// Future product maturity (ISO8601/RFC3339 timestamp)
	Maturity string `protobuf:"bytes,1,opt,name=maturity,proto3" json:"maturity,omitempty"`
	// Product settlement asset identifier
	SettlementAsset string `protobuf:"bytes,2,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
	// Product quote name
	QuoteName string `protobuf:"bytes,3,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// The oracle spec describing the oracle data of interest
	OracleSpec *v1.OracleSpecConfiguration `protobuf:"bytes,5,opt,name=oracle_spec,json=oracleSpec,proto3" json:"oracle_spec,omitempty"`
	// The binding between the oracle spec and the settlement price
	OracleSpecBinding *OracleSpecToFutureBinding `protobuf:"bytes,6,opt,name=oracle_spec_binding,json=oracleSpecBinding,proto3" json:"oracle_spec_binding,omitempty"`
	// contains filtered or unexported fields
}

Future product configuration

func (*FutureProduct) Descriptor deprecated

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

Deprecated: Use FutureProduct.ProtoReflect.Descriptor instead.

func (*FutureProduct) GetMaturity

func (x *FutureProduct) GetMaturity() string

func (*FutureProduct) GetOracleSpec

func (x *FutureProduct) GetOracleSpec() *v1.OracleSpecConfiguration

func (*FutureProduct) GetOracleSpecBinding

func (x *FutureProduct) GetOracleSpecBinding() *OracleSpecToFutureBinding

func (*FutureProduct) GetQuoteName

func (x *FutureProduct) GetQuoteName() string

func (*FutureProduct) GetSettlementAsset

func (x *FutureProduct) GetSettlementAsset() string

func (*FutureProduct) ProtoMessage

func (*FutureProduct) ProtoMessage()

func (*FutureProduct) ProtoReflect

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

func (*FutureProduct) Reset

func (x *FutureProduct) Reset()

func (*FutureProduct) String

func (x *FutureProduct) String() string

func (*FutureProduct) Validate

func (this *FutureProduct) Validate() error

type GovernanceData

type GovernanceData struct {

	// The governance proposal
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// All "yes" votes in favour of the proposal above
	Yes []*Vote `protobuf:"bytes,2,rep,name=yes,proto3" json:"yes,omitempty"`
	// All "no" votes against the proposal above
	No []*Vote `protobuf:"bytes,3,rep,name=no,proto3" json:"no,omitempty"`
	// All latest YES votes by party (guaranteed to be unique),
	// where key (string) is the party ID (public key) and
	// value (Vote) is the vote cast by the given party
	YesParty map[string]*Vote `` /* 173-byte string literal not displayed */
	// All latest NO votes by party (guaranteed to be unique),
	// where key (string) is the party ID (public key) and
	// value (Vote) is the vote cast by the given party
	NoParty map[string]*Vote `` /* 170-byte string literal not displayed */
	// contains filtered or unexported fields
}

Governance data

func (*GovernanceData) Descriptor deprecated

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

Deprecated: Use GovernanceData.ProtoReflect.Descriptor instead.

func (*GovernanceData) GetNo

func (x *GovernanceData) GetNo() []*Vote

func (*GovernanceData) GetNoParty

func (x *GovernanceData) GetNoParty() map[string]*Vote

func (*GovernanceData) GetProposal

func (x *GovernanceData) GetProposal() *Proposal

func (*GovernanceData) GetYes

func (x *GovernanceData) GetYes() []*Vote

func (*GovernanceData) GetYesParty

func (x *GovernanceData) GetYesParty() map[string]*Vote

func (*GovernanceData) ProtoMessage

func (*GovernanceData) ProtoMessage()

func (*GovernanceData) ProtoReflect

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

func (*GovernanceData) Reset

func (x *GovernanceData) Reset()

func (*GovernanceData) String

func (x *GovernanceData) String() string

func (*GovernanceData) Validate

func (this *GovernanceData) Validate() error

type Identifier

type Identifier struct {

	// The identifier
	//
	// Types that are assignable to Identifier:
	//	*Identifier_EthereumAddress
	//	*Identifier_BitcoinAddress
	Identifier isIdentifier_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

Used as a wrapper type on any possible network address supported by Vega

func (*Identifier) Descriptor deprecated

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

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetBitcoinAddress

func (x *Identifier) GetBitcoinAddress() *BitcoinAddress

func (*Identifier) GetEthereumAddress

func (x *Identifier) GetEthereumAddress() *EthereumAddress

func (*Identifier) GetIdentifier

func (m *Identifier) GetIdentifier() isIdentifier_Identifier

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

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

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

func (*Identifier) Validate

func (this *Identifier) Validate() error

type Identifier_BitcoinAddress

type Identifier_BitcoinAddress struct {
	// Bitcoin network
	BitcoinAddress *BitcoinAddress `protobuf:"bytes,2,opt,name=bitcoin_address,json=bitcoinAddress,proto3,oneof"`
}

type Identifier_EthereumAddress

type Identifier_EthereumAddress struct {
	// Ethereum network
	EthereumAddress *EthereumAddress `protobuf:"bytes,1,opt,name=ethereum_address,json=ethereumAddress,proto3,oneof"`
}

type Instrument

type Instrument struct {

	// Instrument identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Code for the instrument
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// Name of the instrument
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// A collection of instrument meta-data
	Metadata *InstrumentMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// The product the instrument is composed of
	//
	// Types that are assignable to Product:
	//	*Instrument_Future
	Product isInstrument_Product `protobuf_oneof:"product"`
	// contains filtered or unexported fields
}

Instrument definition

func (*Instrument) Descriptor deprecated

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

Deprecated: Use Instrument.ProtoReflect.Descriptor instead.

func (*Instrument) GetCode

func (x *Instrument) GetCode() string

func (*Instrument) GetFuture

func (x *Instrument) GetFuture() *Future

func (*Instrument) GetId

func (x *Instrument) GetId() string

func (*Instrument) GetMetadata

func (x *Instrument) GetMetadata() *InstrumentMetadata

func (*Instrument) GetName

func (x *Instrument) GetName() string

func (*Instrument) GetProduct

func (m *Instrument) GetProduct() isInstrument_Product

func (*Instrument) ProtoMessage

func (*Instrument) ProtoMessage()

func (*Instrument) ProtoReflect

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

func (*Instrument) Reset

func (x *Instrument) Reset()

func (*Instrument) String

func (x *Instrument) String() string

func (*Instrument) Validate

func (this *Instrument) Validate() error

type InstrumentConfiguration

type InstrumentConfiguration struct {

	// Instrument name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Instrument code
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// Product specification
	//
	// Types that are assignable to Product:
	//	*InstrumentConfiguration_Future
	Product isInstrumentConfiguration_Product `protobuf_oneof:"product"`
	// contains filtered or unexported fields
}

Instrument configuration

func (*InstrumentConfiguration) Descriptor deprecated

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

Deprecated: Use InstrumentConfiguration.ProtoReflect.Descriptor instead.

func (*InstrumentConfiguration) GetCode

func (x *InstrumentConfiguration) GetCode() string

func (*InstrumentConfiguration) GetFuture

func (x *InstrumentConfiguration) GetFuture() *FutureProduct

func (*InstrumentConfiguration) GetName

func (x *InstrumentConfiguration) GetName() string

func (*InstrumentConfiguration) GetProduct

func (m *InstrumentConfiguration) GetProduct() isInstrumentConfiguration_Product

func (*InstrumentConfiguration) ProtoMessage

func (*InstrumentConfiguration) ProtoMessage()

func (*InstrumentConfiguration) ProtoReflect

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

func (*InstrumentConfiguration) Reset

func (x *InstrumentConfiguration) Reset()

func (*InstrumentConfiguration) String

func (x *InstrumentConfiguration) String() string

func (*InstrumentConfiguration) Validate

func (this *InstrumentConfiguration) Validate() error

type InstrumentConfiguration_Future

type InstrumentConfiguration_Future struct {
	// Future
	Future *FutureProduct `protobuf:"bytes,100,opt,name=future,proto3,oneof"`
}

type InstrumentMetadata

type InstrumentMetadata struct {

	// A list of 0 or more tags
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

Instrument metadata definition

func (*InstrumentMetadata) Descriptor deprecated

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

Deprecated: Use InstrumentMetadata.ProtoReflect.Descriptor instead.

func (*InstrumentMetadata) GetTags

func (x *InstrumentMetadata) GetTags() []string

func (*InstrumentMetadata) ProtoMessage

func (*InstrumentMetadata) ProtoMessage()

func (*InstrumentMetadata) ProtoReflect

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

func (*InstrumentMetadata) Reset

func (x *InstrumentMetadata) Reset()

func (*InstrumentMetadata) String

func (x *InstrumentMetadata) String() string

func (*InstrumentMetadata) Validate

func (this *InstrumentMetadata) Validate() error

type Instrument_Future

type Instrument_Future struct {
	// Future
	Future *Future `protobuf:"bytes,100,opt,name=future,proto3,oneof"`
}

type Interval

type Interval int32

Represents a set of time intervals that are used when querying for candle-stick data

const (
	// Default value, always invalid
	Interval_INTERVAL_UNSPECIFIED Interval = 0
	// 1 minute.
	Interval_INTERVAL_I1M Interval = 60
	// 5 minutes.
	Interval_INTERVAL_I5M Interval = 300
	// 15 minutes.
	Interval_INTERVAL_I15M Interval = 900
	// 1 hour.
	Interval_INTERVAL_I1H Interval = 3600
	// 6 hours.
	Interval_INTERVAL_I6H Interval = 21600
	// 1 day.
	Interval_INTERVAL_I1D Interval = 86400
)

func (Interval) Descriptor

func (Interval) Descriptor() protoreflect.EnumDescriptor

func (Interval) Enum

func (x Interval) Enum() *Interval

func (Interval) EnumDescriptor deprecated

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

Deprecated: Use Interval.Descriptor instead.

func (Interval) Number

func (x Interval) Number() protoreflect.EnumNumber

func (Interval) String

func (x Interval) String() string

func (Interval) Type

type LedgerEntry

type LedgerEntry struct {

	// One or more accounts to transfer from
	FromAccount string `protobuf:"bytes,1,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"`
	// One or more accounts to transfer to
	ToAccount string `protobuf:"bytes,2,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"`
	// An amount to transfer
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// A reference for auditing purposes
	Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"`
	// Type of ledger entry
	Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	// Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Represents a ledger entry on Vega

func (*LedgerEntry) Descriptor deprecated

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

Deprecated: Use LedgerEntry.ProtoReflect.Descriptor instead.

func (*LedgerEntry) GetAmount

func (x *LedgerEntry) GetAmount() uint64

func (*LedgerEntry) GetFromAccount

func (x *LedgerEntry) GetFromAccount() string

func (*LedgerEntry) GetReference

func (x *LedgerEntry) GetReference() string

func (*LedgerEntry) GetTimestamp

func (x *LedgerEntry) GetTimestamp() int64

func (*LedgerEntry) GetToAccount

func (x *LedgerEntry) GetToAccount() string

func (*LedgerEntry) GetType

func (x *LedgerEntry) GetType() string

func (*LedgerEntry) ProtoMessage

func (*LedgerEntry) ProtoMessage()

func (*LedgerEntry) ProtoReflect

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

func (*LedgerEntry) Reset

func (x *LedgerEntry) Reset()

func (*LedgerEntry) String

func (x *LedgerEntry) String() string

func (*LedgerEntry) Validate

func (this *LedgerEntry) Validate() error

type LiquidityMonitoringParameters

type LiquidityMonitoringParameters struct {

	// Specifies parameters related to target stake calculation
	TargetStakeParameters *TargetStakeParameters `` /* 126-byte string literal not displayed */
	// Specifies the triggering ratio for entering liquidity auction
	TriggeringRatio float64 `protobuf:"fixed64,2,opt,name=triggering_ratio,json=triggeringRatio,proto3" json:"triggering_ratio,omitempty"`
	// Specifies by how many seconds an auction should be extended if leaving the auction were to trigger a liquidity auction
	AuctionExtension int64 `protobuf:"varint,3,opt,name=auction_extension,json=auctionExtension,proto3" json:"auction_extension,omitempty"`
	// contains filtered or unexported fields
}

LiquidityMonitoringParameters contains settings used for liquidity monitoring

func (*LiquidityMonitoringParameters) Descriptor deprecated

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

Deprecated: Use LiquidityMonitoringParameters.ProtoReflect.Descriptor instead.

func (*LiquidityMonitoringParameters) GetAuctionExtension

func (x *LiquidityMonitoringParameters) GetAuctionExtension() int64

func (*LiquidityMonitoringParameters) GetTargetStakeParameters

func (x *LiquidityMonitoringParameters) GetTargetStakeParameters() *TargetStakeParameters

func (*LiquidityMonitoringParameters) GetTriggeringRatio

func (x *LiquidityMonitoringParameters) GetTriggeringRatio() float64

func (*LiquidityMonitoringParameters) ProtoMessage

func (*LiquidityMonitoringParameters) ProtoMessage()

func (*LiquidityMonitoringParameters) ProtoReflect

func (*LiquidityMonitoringParameters) Reset

func (x *LiquidityMonitoringParameters) Reset()

func (*LiquidityMonitoringParameters) String

func (*LiquidityMonitoringParameters) Validate

func (this *LiquidityMonitoringParameters) Validate() error

type LiquidityOrder

type LiquidityOrder struct {

	// The pegged reference point for the order
	Reference PeggedReference `protobuf:"varint,1,opt,name=reference,proto3,enum=vega.PeggedReference" json:"reference,omitempty"`
	// The relative proportion of the commitment to be allocated at a price level
	Proportion uint32 `protobuf:"varint,2,opt,name=proportion,proto3" json:"proportion,omitempty"`
	// The offset/amount of units away for the order
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

Represents a liquidity order

func (*LiquidityOrder) Descriptor deprecated

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

Deprecated: Use LiquidityOrder.ProtoReflect.Descriptor instead.

func (*LiquidityOrder) GetOffset

func (x *LiquidityOrder) GetOffset() int64

func (*LiquidityOrder) GetProportion

func (x *LiquidityOrder) GetProportion() uint32

func (*LiquidityOrder) GetReference

func (x *LiquidityOrder) GetReference() PeggedReference

func (*LiquidityOrder) ProtoMessage

func (*LiquidityOrder) ProtoMessage()

func (*LiquidityOrder) ProtoReflect

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

func (*LiquidityOrder) Reset

func (x *LiquidityOrder) Reset()

func (*LiquidityOrder) String

func (x *LiquidityOrder) String() string

func (*LiquidityOrder) Validate

func (this *LiquidityOrder) Validate() error

type LiquidityOrderReference

type LiquidityOrderReference struct {

	// Unique identifier of the pegged order generated by the core to fulfil this liquidity order
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// The liquidity order from the original submission
	LiquidityOrder *LiquidityOrder `protobuf:"bytes,2,opt,name=liquidity_order,json=liquidityOrder,proto3" json:"liquidity_order,omitempty"`
	// contains filtered or unexported fields
}

A pair of a liquidity order and the id of the generated order by the core

func (*LiquidityOrderReference) Descriptor deprecated

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

Deprecated: Use LiquidityOrderReference.ProtoReflect.Descriptor instead.

func (*LiquidityOrderReference) GetLiquidityOrder

func (x *LiquidityOrderReference) GetLiquidityOrder() *LiquidityOrder

func (*LiquidityOrderReference) GetOrderId

func (x *LiquidityOrderReference) GetOrderId() string

func (*LiquidityOrderReference) ProtoMessage

func (*LiquidityOrderReference) ProtoMessage()

func (*LiquidityOrderReference) ProtoReflect

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

func (*LiquidityOrderReference) Reset

func (x *LiquidityOrderReference) Reset()

func (*LiquidityOrderReference) String

func (x *LiquidityOrderReference) String() string

func (*LiquidityOrderReference) Validate

func (this *LiquidityOrderReference) Validate() error

type LiquidityProviderFeeShare

type LiquidityProviderFeeShare struct {

	// The liquidity provider party id
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// The share own by this liquidity provider (float)
	EquityLikeShare string `protobuf:"bytes,2,opt,name=equity_like_share,json=equityLikeShare,proto3" json:"equity_like_share,omitempty"`
	// The average entry valuation of the liquidity provider for the market
	AverageEntryValuation string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

The equity like share of liquidity fee for each liquidity provider

func (*LiquidityProviderFeeShare) Descriptor deprecated

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

Deprecated: Use LiquidityProviderFeeShare.ProtoReflect.Descriptor instead.

func (*LiquidityProviderFeeShare) GetAverageEntryValuation

func (x *LiquidityProviderFeeShare) GetAverageEntryValuation() string

func (*LiquidityProviderFeeShare) GetEquityLikeShare

func (x *LiquidityProviderFeeShare) GetEquityLikeShare() string

func (*LiquidityProviderFeeShare) GetParty

func (x *LiquidityProviderFeeShare) GetParty() string

func (*LiquidityProviderFeeShare) ProtoMessage

func (*LiquidityProviderFeeShare) ProtoMessage()

func (*LiquidityProviderFeeShare) ProtoReflect

func (*LiquidityProviderFeeShare) Reset

func (x *LiquidityProviderFeeShare) Reset()

func (*LiquidityProviderFeeShare) String

func (x *LiquidityProviderFeeShare) String() string

func (*LiquidityProviderFeeShare) Validate

func (this *LiquidityProviderFeeShare) Validate() error

type LiquidityProvision

type LiquidityProvision struct {

	// Unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique party identifier for the creator of the provision
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Timestamp for when the order was created at, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Timestamp for when the order was updated at, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Market identifier for the order, required field
	MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Specified as a unitless number that represents the amount of settlement asset of the market
	CommitmentAmount uint64 `protobuf:"varint,6,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"`
	// Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
	Fee string `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"`
	// A set of liquidity sell orders to meet the liquidity provision obligation
	Sells []*LiquidityOrderReference `protobuf:"bytes,8,rep,name=sells,proto3" json:"sells,omitempty"`
	// A set of liquidity buy orders to meet the liquidity provision obligation
	Buys []*LiquidityOrderReference `protobuf:"bytes,9,rep,name=buys,proto3" json:"buys,omitempty"`
	// Version of this liquidity provision order
	Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"`
	// Status of this liquidity provision order
	Status LiquidityProvision_Status `protobuf:"varint,11,opt,name=status,proto3,enum=vega.LiquidityProvision_Status" json:"status,omitempty"`
	// A reference shared between this liquidity provision and all it's orders
	Reference string `protobuf:"bytes,12,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

An Liquidity provider commitment

func (*LiquidityProvision) Descriptor deprecated

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

Deprecated: Use LiquidityProvision.ProtoReflect.Descriptor instead.

func (*LiquidityProvision) GetBuys

func (*LiquidityProvision) GetCommitmentAmount

func (x *LiquidityProvision) GetCommitmentAmount() uint64

func (*LiquidityProvision) GetCreatedAt

func (x *LiquidityProvision) GetCreatedAt() int64

func (*LiquidityProvision) GetFee

func (x *LiquidityProvision) GetFee() string

func (*LiquidityProvision) GetId

func (x *LiquidityProvision) GetId() string

func (*LiquidityProvision) GetMarketId

func (x *LiquidityProvision) GetMarketId() string

func (*LiquidityProvision) GetPartyId

func (x *LiquidityProvision) GetPartyId() string

func (*LiquidityProvision) GetReference

func (x *LiquidityProvision) GetReference() string

func (*LiquidityProvision) GetSells

func (*LiquidityProvision) GetStatus

func (*LiquidityProvision) GetUpdatedAt

func (x *LiquidityProvision) GetUpdatedAt() int64

func (*LiquidityProvision) GetVersion

func (x *LiquidityProvision) GetVersion() string

func (*LiquidityProvision) ProtoMessage

func (*LiquidityProvision) ProtoMessage()

func (*LiquidityProvision) ProtoReflect

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

func (*LiquidityProvision) Reset

func (x *LiquidityProvision) Reset()

func (*LiquidityProvision) String

func (x *LiquidityProvision) String() string

func (*LiquidityProvision) Validate

func (this *LiquidityProvision) Validate() error

type LiquidityProvisionSubmission

type LiquidityProvisionSubmission struct {

	// Market identifier for the order, required field
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Specified as a unitless number that represents the amount of settlement asset of the market
	CommitmentAmount uint64 `protobuf:"varint,2,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"`
	// Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
	Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`
	// A set of liquidity sell orders to meet the liquidity provision obligation
	Sells []*LiquidityOrder `protobuf:"bytes,4,rep,name=sells,proto3" json:"sells,omitempty"`
	// A set of liquidity buy orders to meet the liquidity provision obligation
	Buys []*LiquidityOrder `protobuf:"bytes,5,rep,name=buys,proto3" json:"buys,omitempty"`
	// A reference to be added to every order created out of this liquidityProvisionSubmission
	Reference string `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

func (*LiquidityProvisionSubmission) Descriptor deprecated

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

Deprecated: Use LiquidityProvisionSubmission.ProtoReflect.Descriptor instead.

func (*LiquidityProvisionSubmission) GetBuys

func (*LiquidityProvisionSubmission) GetCommitmentAmount

func (x *LiquidityProvisionSubmission) GetCommitmentAmount() uint64

func (*LiquidityProvisionSubmission) GetFee

func (*LiquidityProvisionSubmission) GetMarketId

func (x *LiquidityProvisionSubmission) GetMarketId() string

func (*LiquidityProvisionSubmission) GetReference

func (x *LiquidityProvisionSubmission) GetReference() string

func (*LiquidityProvisionSubmission) GetSells

func (*LiquidityProvisionSubmission) ProtoMessage

func (*LiquidityProvisionSubmission) ProtoMessage()

func (*LiquidityProvisionSubmission) ProtoReflect

func (*LiquidityProvisionSubmission) Reset

func (x *LiquidityProvisionSubmission) Reset()

func (*LiquidityProvisionSubmission) String

func (*LiquidityProvisionSubmission) Validate

func (this *LiquidityProvisionSubmission) Validate() error

type LiquidityProvision_Status

type LiquidityProvision_Status int32

Status of a liquidity provision order

const (
	// The default value
	LiquidityProvision_STATUS_UNSPECIFIED LiquidityProvision_Status = 0
	// The liquidity provision is active
	LiquidityProvision_STATUS_ACTIVE LiquidityProvision_Status = 1
	// The liquidity provision was stopped by the network
	LiquidityProvision_STATUS_STOPPED LiquidityProvision_Status = 2
	// The liquidity provision was cancelled by the liquidity provider
	LiquidityProvision_STATUS_CANCELLED LiquidityProvision_Status = 3
	// The liquidity provision was invalid and got rejected
	LiquidityProvision_STATUS_REJECTED LiquidityProvision_Status = 4
	// The liquidity provision is valid and accepted by network, but orders aren't deployed
	LiquidityProvision_STATUS_UNDEPLOYED LiquidityProvision_Status = 5
	// The liquidity provision is valid and accepted by network
	// but have never been deployed. I when it's possible to deploy them for the first time
	// margin check fails, then they will be cancelled without any penalties.
	LiquidityProvision_STATUS_PENDING LiquidityProvision_Status = 6
)

func (LiquidityProvision_Status) Descriptor

func (LiquidityProvision_Status) Enum

func (LiquidityProvision_Status) EnumDescriptor deprecated

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

Deprecated: Use LiquidityProvision_Status.Descriptor instead.

func (LiquidityProvision_Status) Number

func (LiquidityProvision_Status) String

func (x LiquidityProvision_Status) String() string

func (LiquidityProvision_Status) Type

type LogNormalModelParams

type LogNormalModelParams struct {

	// Mu param
	Mu float64 `protobuf:"fixed64,1,opt,name=mu,proto3" json:"mu,omitempty"`
	// R param
	R float64 `protobuf:"fixed64,2,opt,name=r,proto3" json:"r,omitempty"`
	// Sigma param
	Sigma float64 `protobuf:"fixed64,3,opt,name=sigma,proto3" json:"sigma,omitempty"`
	// contains filtered or unexported fields
}

Risk model parameters for log normal

func (*LogNormalModelParams) Descriptor deprecated

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

Deprecated: Use LogNormalModelParams.ProtoReflect.Descriptor instead.

func (*LogNormalModelParams) GetMu

func (x *LogNormalModelParams) GetMu() float64

func (*LogNormalModelParams) GetR

func (x *LogNormalModelParams) GetR() float64

func (*LogNormalModelParams) GetSigma

func (x *LogNormalModelParams) GetSigma() float64

func (*LogNormalModelParams) ProtoMessage

func (*LogNormalModelParams) ProtoMessage()

func (*LogNormalModelParams) ProtoReflect

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

func (*LogNormalModelParams) Reset

func (x *LogNormalModelParams) Reset()

func (*LogNormalModelParams) String

func (x *LogNormalModelParams) String() string

func (*LogNormalModelParams) Validate

func (this *LogNormalModelParams) Validate() error

type LogNormalRiskModel

type LogNormalRiskModel struct {

	// Risk Aversion Parameter
	RiskAversionParameter float64 `` /* 128-byte string literal not displayed */
	// Tau
	Tau float64 `protobuf:"fixed64,2,opt,name=tau,proto3" json:"tau,omitempty"`
	// Risk model parameters for log normal
	Params *LogNormalModelParams `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

Risk model for log normal

func (*LogNormalRiskModel) Descriptor deprecated

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

Deprecated: Use LogNormalRiskModel.ProtoReflect.Descriptor instead.

func (*LogNormalRiskModel) GetParams

func (x *LogNormalRiskModel) GetParams() *LogNormalModelParams

func (*LogNormalRiskModel) GetRiskAversionParameter

func (x *LogNormalRiskModel) GetRiskAversionParameter() float64

func (*LogNormalRiskModel) GetTau

func (x *LogNormalRiskModel) GetTau() float64

func (*LogNormalRiskModel) ProtoMessage

func (*LogNormalRiskModel) ProtoMessage()

func (*LogNormalRiskModel) ProtoReflect

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

func (*LogNormalRiskModel) Reset

func (x *LogNormalRiskModel) Reset()

func (*LogNormalRiskModel) String

func (x *LogNormalRiskModel) String() string

func (*LogNormalRiskModel) Validate

func (this *LogNormalRiskModel) Validate() error

type LossSocialization

type LossSocialization struct {

	// Market identifier for the event
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier (public key) for the event
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Amount distributed
	Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

A loss socialization event contains details on the amount of wins unable to be distributed

func (*LossSocialization) Descriptor deprecated

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

Deprecated: Use LossSocialization.ProtoReflect.Descriptor instead.

func (*LossSocialization) GetAmount

func (x *LossSocialization) GetAmount() int64

func (*LossSocialization) GetMarketId

func (x *LossSocialization) GetMarketId() string

func (*LossSocialization) GetPartyId

func (x *LossSocialization) GetPartyId() string

func (*LossSocialization) ProtoMessage

func (*LossSocialization) ProtoMessage()

func (*LossSocialization) ProtoReflect

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

func (*LossSocialization) Reset

func (x *LossSocialization) Reset()

func (*LossSocialization) String

func (x *LossSocialization) String() string

func (*LossSocialization) Validate

func (this *LossSocialization) Validate() error

type MarginCalculator

type MarginCalculator struct {

	// Scaling factors for margin calculation
	ScalingFactors *ScalingFactors `protobuf:"bytes,1,opt,name=scaling_factors,json=scalingFactors,proto3" json:"scaling_factors,omitempty"`
	// contains filtered or unexported fields
}

Margin Calculator definition

func (*MarginCalculator) Descriptor deprecated

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

Deprecated: Use MarginCalculator.ProtoReflect.Descriptor instead.

func (*MarginCalculator) GetScalingFactors

func (x *MarginCalculator) GetScalingFactors() *ScalingFactors

func (*MarginCalculator) ProtoMessage

func (*MarginCalculator) ProtoMessage()

func (*MarginCalculator) ProtoReflect

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

func (*MarginCalculator) Reset

func (x *MarginCalculator) Reset()

func (*MarginCalculator) String

func (x *MarginCalculator) String() string

func (*MarginCalculator) Validate

func (this *MarginCalculator) Validate() error

type MarginLevels

type MarginLevels struct {

	// Maintenance margin value
	MaintenanceMargin uint64 `protobuf:"varint,1,opt,name=maintenance_margin,json=maintenanceMargin,proto3" json:"maintenance_margin,omitempty"`
	// Search level value
	SearchLevel uint64 `protobuf:"varint,2,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"`
	// Initial margin value
	InitialMargin uint64 `protobuf:"varint,3,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"`
	// Collateral release level value
	CollateralReleaseLevel uint64 `` /* 130-byte string literal not displayed */
	// Party identifier
	PartyId string `protobuf:"bytes,5,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Market identifier
	MarketId string `protobuf:"bytes,6,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Asset identifier
	Asset string `protobuf:"bytes,7,opt,name=asset,proto3" json:"asset,omitempty"`
	// Timestamp for the time the ledger entry was created, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Represents the margin levels for a party on a market at a given time

func (*MarginLevels) Descriptor deprecated

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

Deprecated: Use MarginLevels.ProtoReflect.Descriptor instead.

func (*MarginLevels) GetAsset

func (x *MarginLevels) GetAsset() string

func (*MarginLevels) GetCollateralReleaseLevel

func (x *MarginLevels) GetCollateralReleaseLevel() uint64

func (*MarginLevels) GetInitialMargin

func (x *MarginLevels) GetInitialMargin() uint64

func (*MarginLevels) GetMaintenanceMargin

func (x *MarginLevels) GetMaintenanceMargin() uint64

func (*MarginLevels) GetMarketId

func (x *MarginLevels) GetMarketId() string

func (*MarginLevels) GetPartyId

func (x *MarginLevels) GetPartyId() string

func (*MarginLevels) GetSearchLevel

func (x *MarginLevels) GetSearchLevel() uint64

func (*MarginLevels) GetTimestamp

func (x *MarginLevels) GetTimestamp() int64

func (*MarginLevels) ProtoMessage

func (*MarginLevels) ProtoMessage()

func (*MarginLevels) ProtoReflect

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

func (*MarginLevels) Reset

func (x *MarginLevels) Reset()

func (*MarginLevels) String

func (x *MarginLevels) String() string

func (*MarginLevels) Validate

func (this *MarginLevels) Validate() error

type Market

type Market struct {

	// Unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Tradable instrument configuration
	TradableInstrument *TradableInstrument `protobuf:"bytes,2,opt,name=tradable_instrument,json=tradableInstrument,proto3" json:"tradable_instrument,omitempty"`
	// Number of decimal places that a price must be shifted by in order to get a
	// correct price denominated in the currency of the market, for example:
	// `realPrice = price / 10^decimalPlaces`
	DecimalPlaces uint64 `protobuf:"varint,3,opt,name=decimal_places,json=decimalPlaces,proto3" json:"decimal_places,omitempty"`
	// Fees configuration
	Fees *Fees `protobuf:"bytes,4,opt,name=fees,proto3" json:"fees,omitempty"`
	// Auction duration specifies how long the opening auction will run (minimum
	// duration and optionally a minimum traded volume)
	OpeningAuction *AuctionDuration `protobuf:"bytes,5,opt,name=opening_auction,json=openingAuction,proto3" json:"opening_auction,omitempty"`
	// Trading mode for the market
	//
	// Types that are assignable to TradingModeConfig:
	//	*Market_Continuous
	//	*Market_Discrete
	TradingModeConfig isMarket_TradingModeConfig `protobuf_oneof:"trading_mode_config"`
	// PriceMonitoringSettings for the market
	PriceMonitoringSettings *PriceMonitoringSettings `` /* 132-byte string literal not displayed */
	// LiquidityMonitoringParameters for the market
	LiquidityMonitoringParameters *LiquidityMonitoringParameters `` /* 150-byte string literal not displayed */
	// Current mode of execution of the market
	TradingMode Market_TradingMode `protobuf:"varint,8,opt,name=trading_mode,json=tradingMode,proto3,enum=vega.Market_TradingMode" json:"trading_mode,omitempty"`
	// Current state of the market
	State Market_State `protobuf:"varint,9,opt,name=state,proto3,enum=vega.Market_State" json:"state,omitempty"`
	// Timestamps for when the market staye changes
	MarketTimestamps *MarketTimestamps `protobuf:"bytes,10,opt,name=market_timestamps,json=marketTimestamps,proto3" json:"market_timestamps,omitempty"`
	// contains filtered or unexported fields
}

Market definition

func (*Market) Descriptor deprecated

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

Deprecated: Use Market.ProtoReflect.Descriptor instead.

func (*Market) GetContinuous

func (x *Market) GetContinuous() *ContinuousTrading

func (*Market) GetDecimalPlaces

func (x *Market) GetDecimalPlaces() uint64

func (*Market) GetDiscrete

func (x *Market) GetDiscrete() *DiscreteTrading

func (*Market) GetFees

func (x *Market) GetFees() *Fees

func (*Market) GetId

func (x *Market) GetId() string

func (*Market) GetLiquidityMonitoringParameters

func (x *Market) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters

func (*Market) GetMarketTimestamps

func (x *Market) GetMarketTimestamps() *MarketTimestamps

func (*Market) GetOpeningAuction

func (x *Market) GetOpeningAuction() *AuctionDuration

func (*Market) GetPriceMonitoringSettings

func (x *Market) GetPriceMonitoringSettings() *PriceMonitoringSettings

func (*Market) GetState

func (x *Market) GetState() Market_State

func (*Market) GetTradableInstrument

func (x *Market) GetTradableInstrument() *TradableInstrument

func (*Market) GetTradingMode

func (x *Market) GetTradingMode() Market_TradingMode

func (*Market) GetTradingModeConfig

func (m *Market) GetTradingModeConfig() isMarket_TradingModeConfig

func (*Market) ProtoMessage

func (*Market) ProtoMessage()

func (*Market) ProtoReflect

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

func (*Market) Reset

func (x *Market) Reset()

func (*Market) String

func (x *Market) String() string

func (*Market) Validate

func (this *Market) Validate() error

type MarketData

type MarketData struct {

	// Mark price, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	MarkPrice uint64 `protobuf:"varint,1,opt,name=mark_price,json=markPrice,proto3" json:"mark_price,omitempty"`
	// Highest price level on an order book for buy orders, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	BestBidPrice uint64 `protobuf:"varint,2,opt,name=best_bid_price,json=bestBidPrice,proto3" json:"best_bid_price,omitempty"`
	// Aggregated volume being bid at the best bid price
	BestBidVolume uint64 `protobuf:"varint,3,opt,name=best_bid_volume,json=bestBidVolume,proto3" json:"best_bid_volume,omitempty"`
	// Lowest price level on an order book for offer orders
	BestOfferPrice uint64 `protobuf:"varint,4,opt,name=best_offer_price,json=bestOfferPrice,proto3" json:"best_offer_price,omitempty"`
	// Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
	//  // formatted price of `1.23456` assuming market configured to 5 decimal places
	BestOfferVolume uint64 `protobuf:"varint,5,opt,name=best_offer_volume,json=bestOfferVolume,proto3" json:"best_offer_volume,omitempty"`
	// Highest price on the order book for buy orders not including pegged orders
	BestStaticBidPrice uint64 `protobuf:"varint,6,opt,name=best_static_bid_price,json=bestStaticBidPrice,proto3" json:"best_static_bid_price,omitempty"`
	// Total volume at the best static bid price excluding pegged orders
	BestStaticBidVolume uint64 `protobuf:"varint,7,opt,name=best_static_bid_volume,json=bestStaticBidVolume,proto3" json:"best_static_bid_volume,omitempty"`
	// Lowest price on the order book for sell orders not including pegged orders
	BestStaticOfferPrice uint64 `` /* 126-byte string literal not displayed */
	// Total volume at the best static offer price excluding pegged orders
	BestStaticOfferVolume uint64 `` /* 129-byte string literal not displayed */
	// Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	MidPrice uint64 `protobuf:"varint,10,opt,name=mid_price,json=midPrice,proto3" json:"mid_price,omitempty"`
	// Arithmetic average of the best static bid price and best static offer price
	StaticMidPrice uint64 `protobuf:"varint,11,opt,name=static_mid_price,json=staticMidPrice,proto3" json:"static_mid_price,omitempty"`
	// Market identifier for the data
	Market string `protobuf:"bytes,12,opt,name=market,proto3" json:"market,omitempty"`
	// Timestamp at which this mark price was relevant, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	Timestamp int64 `protobuf:"varint,13,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The sum of the size of all positions greater than 0 on the market
	OpenInterest uint64 `protobuf:"varint,14,opt,name=open_interest,json=openInterest,proto3" json:"open_interest,omitempty"`
	// Time in seconds until the end of the auction (0 if currently not in auction period)
	AuctionEnd int64 `protobuf:"varint,15,opt,name=auction_end,json=auctionEnd,proto3" json:"auction_end,omitempty"`
	// Time until next auction (used in FBA's) - currently always 0
	AuctionStart int64 `protobuf:"varint,16,opt,name=auction_start,json=auctionStart,proto3" json:"auction_start,omitempty"`
	// Indicative price (zero if not in auction)
	IndicativePrice uint64 `protobuf:"varint,17,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"`
	// Indicative volume (zero if not in auction)
	IndicativeVolume uint64 `protobuf:"varint,18,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"`
	// The current trading mode for the market
	MarketTradingMode Market_TradingMode `` /* 145-byte string literal not displayed */
	// When a market is in an auction trading mode, this field indicates what triggered the auction
	Trigger AuctionTrigger `protobuf:"varint,20,opt,name=trigger,proto3,enum=vega.AuctionTrigger" json:"trigger,omitempty"`
	// Targeted stake for the given market
	TargetStake string `protobuf:"bytes,21,opt,name=target_stake,json=targetStake,proto3" json:"target_stake,omitempty"`
	// Available stake for the given market
	SuppliedStake string `protobuf:"bytes,22,opt,name=supplied_stake,json=suppliedStake,proto3" json:"supplied_stake,omitempty"`
	// One or more price monitoring bounds for the current timestamp
	PriceMonitoringBounds []*PriceMonitoringBounds `` /* 127-byte string literal not displayed */
	// the market value proxy
	MarketValueProxy string `protobuf:"bytes,24,opt,name=market_value_proxy,json=marketValueProxy,proto3" json:"market_value_proxy,omitempty"`
	// the equity like share of liquidity fee for each liquidity provider
	LiquidityProviderFeeShare []*LiquidityProviderFeeShare `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents data generated by a market when open

func (*MarketData) Descriptor deprecated

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

Deprecated: Use MarketData.ProtoReflect.Descriptor instead.

func (*MarketData) GetAuctionEnd

func (x *MarketData) GetAuctionEnd() int64

func (*MarketData) GetAuctionStart

func (x *MarketData) GetAuctionStart() int64

func (*MarketData) GetBestBidPrice

func (x *MarketData) GetBestBidPrice() uint64

func (*MarketData) GetBestBidVolume

func (x *MarketData) GetBestBidVolume() uint64

func (*MarketData) GetBestOfferPrice

func (x *MarketData) GetBestOfferPrice() uint64

func (*MarketData) GetBestOfferVolume

func (x *MarketData) GetBestOfferVolume() uint64

func (*MarketData) GetBestStaticBidPrice

func (x *MarketData) GetBestStaticBidPrice() uint64

func (*MarketData) GetBestStaticBidVolume

func (x *MarketData) GetBestStaticBidVolume() uint64

func (*MarketData) GetBestStaticOfferPrice

func (x *MarketData) GetBestStaticOfferPrice() uint64

func (*MarketData) GetBestStaticOfferVolume

func (x *MarketData) GetBestStaticOfferVolume() uint64

func (*MarketData) GetIndicativePrice

func (x *MarketData) GetIndicativePrice() uint64

func (*MarketData) GetIndicativeVolume

func (x *MarketData) GetIndicativeVolume() uint64

func (*MarketData) GetLiquidityProviderFeeShare

func (x *MarketData) GetLiquidityProviderFeeShare() []*LiquidityProviderFeeShare

func (*MarketData) GetMarkPrice

func (x *MarketData) GetMarkPrice() uint64

func (*MarketData) GetMarket

func (x *MarketData) GetMarket() string

func (*MarketData) GetMarketTradingMode

func (x *MarketData) GetMarketTradingMode() Market_TradingMode

func (*MarketData) GetMarketValueProxy

func (x *MarketData) GetMarketValueProxy() string

func (*MarketData) GetMidPrice

func (x *MarketData) GetMidPrice() uint64

func (*MarketData) GetOpenInterest

func (x *MarketData) GetOpenInterest() uint64

func (*MarketData) GetPriceMonitoringBounds

func (x *MarketData) GetPriceMonitoringBounds() []*PriceMonitoringBounds

func (*MarketData) GetStaticMidPrice

func (x *MarketData) GetStaticMidPrice() uint64

func (*MarketData) GetSuppliedStake

func (x *MarketData) GetSuppliedStake() string

func (*MarketData) GetTargetStake

func (x *MarketData) GetTargetStake() string

func (*MarketData) GetTimestamp

func (x *MarketData) GetTimestamp() int64

func (*MarketData) GetTrigger

func (x *MarketData) GetTrigger() AuctionTrigger

func (*MarketData) ProtoMessage

func (*MarketData) ProtoMessage()

func (*MarketData) ProtoReflect

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

func (*MarketData) Reset

func (x *MarketData) Reset()

func (*MarketData) String

func (x *MarketData) String() string

func (*MarketData) Validate

func (this *MarketData) Validate() error

type MarketDepth

type MarketDepth struct {

	// Market identifier
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Collection of price levels for the buy side of the book
	Buy []*PriceLevel `protobuf:"bytes,2,rep,name=buy,proto3" json:"buy,omitempty"`
	// Collection of price levels for the sell side of the book
	Sell []*PriceLevel `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell,omitempty"`
	// Sequence number for the market depth data returned
	SequenceNumber uint64 `protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// contains filtered or unexported fields
}

Represents market depth or order book data for the specified market on Vega

func (*MarketDepth) Descriptor deprecated

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

Deprecated: Use MarketDepth.ProtoReflect.Descriptor instead.

func (*MarketDepth) GetBuy

func (x *MarketDepth) GetBuy() []*PriceLevel

func (*MarketDepth) GetMarketId

func (x *MarketDepth) GetMarketId() string

func (*MarketDepth) GetSell

func (x *MarketDepth) GetSell() []*PriceLevel

func (*MarketDepth) GetSequenceNumber

func (x *MarketDepth) GetSequenceNumber() uint64

func (*MarketDepth) ProtoMessage

func (*MarketDepth) ProtoMessage()

func (*MarketDepth) ProtoReflect

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

func (*MarketDepth) Reset

func (x *MarketDepth) Reset()

func (*MarketDepth) String

func (x *MarketDepth) String() string

func (*MarketDepth) Validate

func (this *MarketDepth) Validate() error

type MarketDepthUpdate

type MarketDepthUpdate struct {

	// Market identifier
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Collection of updated price levels for the buy side of the book
	Buy []*PriceLevel `protobuf:"bytes,2,rep,name=buy,proto3" json:"buy,omitempty"`
	// Collection of updated price levels for the sell side of the book
	Sell []*PriceLevel `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell,omitempty"`
	// Sequence number for the market depth update data returned
	SequenceNumber uint64 `protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// contains filtered or unexported fields
}

Represents the changed market depth since the last update

func (*MarketDepthUpdate) Descriptor deprecated

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

Deprecated: Use MarketDepthUpdate.ProtoReflect.Descriptor instead.

func (*MarketDepthUpdate) GetBuy

func (x *MarketDepthUpdate) GetBuy() []*PriceLevel

func (*MarketDepthUpdate) GetMarketId

func (x *MarketDepthUpdate) GetMarketId() string

func (*MarketDepthUpdate) GetSell

func (x *MarketDepthUpdate) GetSell() []*PriceLevel

func (*MarketDepthUpdate) GetSequenceNumber

func (x *MarketDepthUpdate) GetSequenceNumber() uint64

func (*MarketDepthUpdate) ProtoMessage

func (*MarketDepthUpdate) ProtoMessage()

func (*MarketDepthUpdate) ProtoReflect

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

func (*MarketDepthUpdate) Reset

func (x *MarketDepthUpdate) Reset()

func (*MarketDepthUpdate) String

func (x *MarketDepthUpdate) String() string

func (*MarketDepthUpdate) Validate

func (this *MarketDepthUpdate) Validate() error

type MarketEvent

type MarketEvent struct {

	// Market identifier for the event
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Payload is a unique information string
	Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

MarketEvent - the common denominator for all market events interface has a method to return a string for logging

func (*MarketEvent) Descriptor deprecated

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

Deprecated: Use MarketEvent.ProtoReflect.Descriptor instead.

func (*MarketEvent) GetMarketId

func (x *MarketEvent) GetMarketId() string

func (*MarketEvent) GetPayload

func (x *MarketEvent) GetPayload() string

func (*MarketEvent) ProtoMessage

func (*MarketEvent) ProtoMessage()

func (*MarketEvent) ProtoReflect

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

func (*MarketEvent) Reset

func (x *MarketEvent) Reset()

func (*MarketEvent) String

func (x *MarketEvent) String() string

func (*MarketEvent) Validate

func (this *MarketEvent) Validate() error

type MarketTick

type MarketTick struct {

	// Market identifier for the event
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Timestamp containing latest update from Vega blockchain aka Vega-time
	Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

A market ticket event contains the time value for when a particular market was last processed on Vega

func (*MarketTick) Descriptor deprecated

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

Deprecated: Use MarketTick.ProtoReflect.Descriptor instead.

func (*MarketTick) GetId

func (x *MarketTick) GetId() string

func (*MarketTick) GetTime

func (x *MarketTick) GetTime() int64

func (*MarketTick) ProtoMessage

func (*MarketTick) ProtoMessage()

func (*MarketTick) ProtoReflect

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

func (*MarketTick) Reset

func (x *MarketTick) Reset()

func (*MarketTick) String

func (x *MarketTick) String() string

func (*MarketTick) Validate

func (this *MarketTick) Validate() error

type MarketTimestamps

type MarketTimestamps struct {

	// Time when the market is first proposed
	Proposed int64 `protobuf:"varint,1,opt,name=proposed,proto3" json:"proposed,omitempty"`
	// Time when the market has been voted in and is created into an opening auction
	Pending int64 `protobuf:"varint,2,opt,name=pending,proto3" json:"pending,omitempty"`
	// Time when the market has left the opening auction and is ready to accept trades
	Open int64 `protobuf:"varint,3,opt,name=open,proto3" json:"open,omitempty"`
	// Time when the market is closed
	Close int64 `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"`
	// contains filtered or unexported fields
}

Time stamps for important times about creating, enacting etc the market

func (*MarketTimestamps) Descriptor deprecated

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

Deprecated: Use MarketTimestamps.ProtoReflect.Descriptor instead.

func (*MarketTimestamps) GetClose

func (x *MarketTimestamps) GetClose() int64

func (*MarketTimestamps) GetOpen

func (x *MarketTimestamps) GetOpen() int64

func (*MarketTimestamps) GetPending

func (x *MarketTimestamps) GetPending() int64

func (*MarketTimestamps) GetProposed

func (x *MarketTimestamps) GetProposed() int64

func (*MarketTimestamps) ProtoMessage

func (*MarketTimestamps) ProtoMessage()

func (*MarketTimestamps) ProtoReflect

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

func (*MarketTimestamps) Reset

func (x *MarketTimestamps) Reset()

func (*MarketTimestamps) String

func (x *MarketTimestamps) String() string

func (*MarketTimestamps) Validate

func (this *MarketTimestamps) Validate() error

type Market_Continuous

type Market_Continuous struct {
	// Continuous
	Continuous *ContinuousTrading `protobuf:"bytes,100,opt,name=continuous,proto3,oneof"`
}

type Market_Discrete

type Market_Discrete struct {
	// Discrete
	Discrete *DiscreteTrading `protobuf:"bytes,101,opt,name=discrete,proto3,oneof"`
}

type Market_State

type Market_State int32

The current state of the Market

const (
	// Default value, invalid
	Market_STATE_UNSPECIFIED Market_State = 0
	// The Governance proposal valid and accepted
	Market_STATE_PROPOSED Market_State = 1
	// Outcome of governance votes is to reject the market
	Market_STATE_REJECTED Market_State = 2
	// Governance vote passes/wins
	Market_STATE_PENDING Market_State = 3
	// Market triggers cancellation condition or governance
	// votes to close before market becomes Active
	Market_STATE_CANCELLED Market_State = 4
	// Enactment date reached and usual auction exit checks pass
	Market_STATE_ACTIVE Market_State = 5
	// Price monitoring or liquidity monitoring trigger
	Market_STATE_SUSPENDED Market_State = 6
	// Governance vote (to close)
	Market_STATE_CLOSED Market_State = 7
	// Defined by the product (i.e. from a product parameter,
	// specified in market definition, giving close date/time)
	Market_STATE_TRADING_TERMINATED Market_State = 8
	// Settlement triggered and completed as defined by product
	Market_STATE_SETTLED Market_State = 9
)

func (Market_State) Descriptor

func (Market_State) Enum

func (x Market_State) Enum() *Market_State

func (Market_State) EnumDescriptor deprecated

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

Deprecated: Use Market_State.Descriptor instead.

func (Market_State) Number

func (Market_State) String

func (x Market_State) String() string

func (Market_State) Type

type Market_TradingMode

type Market_TradingMode int32

The trading mode the market is currently running, also referred to as 'market state'

const (
	// Default value, this is invalid
	Market_TRADING_MODE_UNSPECIFIED Market_TradingMode = 0
	// Normal trading
	Market_TRADING_MODE_CONTINUOUS Market_TradingMode = 1
	// Auction trading (FBA)
	Market_TRADING_MODE_BATCH_AUCTION Market_TradingMode = 2
	// Opening auction
	Market_TRADING_MODE_OPENING_AUCTION Market_TradingMode = 3
	// Auction triggered by monitoring
	Market_TRADING_MODE_MONITORING_AUCTION Market_TradingMode = 4
)

func (Market_TradingMode) Descriptor

func (Market_TradingMode) Enum

func (Market_TradingMode) EnumDescriptor deprecated

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

Deprecated: Use Market_TradingMode.Descriptor instead.

func (Market_TradingMode) Number

func (Market_TradingMode) String

func (x Market_TradingMode) String() string

func (Market_TradingMode) Type

type NetworkParameter

type NetworkParameter struct {

	// The unique key
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value for the network parameter
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Represents a network parameter on Vega

func (*NetworkParameter) Descriptor deprecated

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

Deprecated: Use NetworkParameter.ProtoReflect.Descriptor instead.

func (*NetworkParameter) GetKey

func (x *NetworkParameter) GetKey() string

func (*NetworkParameter) GetValue

func (x *NetworkParameter) GetValue() string

func (*NetworkParameter) ProtoMessage

func (*NetworkParameter) ProtoMessage()

func (*NetworkParameter) ProtoReflect

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

func (*NetworkParameter) Reset

func (x *NetworkParameter) Reset()

func (*NetworkParameter) String

func (x *NetworkParameter) String() string

func (*NetworkParameter) Validate

func (this *NetworkParameter) Validate() error

type NewAsset

type NewAsset struct {

	// The configuration of the new asset
	Changes *AssetSource `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

New asset on Vega

func (*NewAsset) Descriptor deprecated

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

Deprecated: Use NewAsset.ProtoReflect.Descriptor instead.

func (*NewAsset) GetChanges

func (x *NewAsset) GetChanges() *AssetSource

func (*NewAsset) ProtoMessage

func (*NewAsset) ProtoMessage()

func (*NewAsset) ProtoReflect

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

func (*NewAsset) Reset

func (x *NewAsset) Reset()

func (*NewAsset) String

func (x *NewAsset) String() string

func (*NewAsset) Validate

func (this *NewAsset) Validate() error

type NewMarket

type NewMarket struct {

	// The configuration of the new market
	Changes *NewMarketConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// The commitment from the party creating the NewMarket proposal
	LiquidityCommitment *NewMarketCommitment `protobuf:"bytes,2,opt,name=liquidity_commitment,json=liquidityCommitment,proto3" json:"liquidity_commitment,omitempty"`
	// contains filtered or unexported fields
}

New market on Vega

func (*NewMarket) Descriptor deprecated

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

Deprecated: Use NewMarket.ProtoReflect.Descriptor instead.

func (*NewMarket) GetChanges

func (x *NewMarket) GetChanges() *NewMarketConfiguration

func (*NewMarket) GetLiquidityCommitment

func (x *NewMarket) GetLiquidityCommitment() *NewMarketCommitment

func (*NewMarket) ProtoMessage

func (*NewMarket) ProtoMessage()

func (*NewMarket) ProtoReflect

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

func (*NewMarket) Reset

func (x *NewMarket) Reset()

func (*NewMarket) String

func (x *NewMarket) String() string

func (*NewMarket) Validate

func (this *NewMarket) Validate() error

type NewMarketCommitment

type NewMarketCommitment struct {

	// Specified as a unitless number that represents the amount of settlement asset of the market
	CommitmentAmount uint64 `protobuf:"varint,1,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"`
	// Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
	Fee string `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
	// A set of liquidity sell orders to meet the liquidity provision obligation
	Sells []*LiquidityOrder `protobuf:"bytes,3,rep,name=sells,proto3" json:"sells,omitempty"`
	// A set of liquidity buy orders to meet the liquidity provision obligation
	Buys []*LiquidityOrder `protobuf:"bytes,4,rep,name=buys,proto3" json:"buys,omitempty"`
	// A reference to be associated to all orders created from this commitment
	Reference string `protobuf:"bytes,5,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

A commitment of liquidity to be made by the party which proposes a market

func (*NewMarketCommitment) Descriptor deprecated

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

Deprecated: Use NewMarketCommitment.ProtoReflect.Descriptor instead.

func (*NewMarketCommitment) GetBuys

func (x *NewMarketCommitment) GetBuys() []*LiquidityOrder

func (*NewMarketCommitment) GetCommitmentAmount

func (x *NewMarketCommitment) GetCommitmentAmount() uint64

func (*NewMarketCommitment) GetFee

func (x *NewMarketCommitment) GetFee() string

func (*NewMarketCommitment) GetReference

func (x *NewMarketCommitment) GetReference() string

func (*NewMarketCommitment) GetSells

func (x *NewMarketCommitment) GetSells() []*LiquidityOrder

func (*NewMarketCommitment) ProtoMessage

func (*NewMarketCommitment) ProtoMessage()

func (*NewMarketCommitment) ProtoReflect

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

func (*NewMarketCommitment) Reset

func (x *NewMarketCommitment) Reset()

func (*NewMarketCommitment) String

func (x *NewMarketCommitment) String() string

func (*NewMarketCommitment) Validate

func (this *NewMarketCommitment) Validate() error

type NewMarketConfiguration

type NewMarketConfiguration struct {

	// New market instrument configuration
	Instrument *InstrumentConfiguration `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// Decimal places used for the new market
	DecimalPlaces uint64 `protobuf:"varint,2,opt,name=decimal_places,json=decimalPlaces,proto3" json:"decimal_places,omitempty"`
	// Optional new market meta data, tags
	Metadata []string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// Price monitoring parameters
	PriceMonitoringParameters *PriceMonitoringParameters `` /* 138-byte string literal not displayed */
	// Liquidity monitoring parameters
	LiquidityMonitoringParameters *LiquidityMonitoringParameters `` /* 150-byte string literal not displayed */
	// New market risk model parameters
	//
	// Types that are assignable to RiskParameters:
	//	*NewMarketConfiguration_Simple
	//	*NewMarketConfiguration_LogNormal
	RiskParameters isNewMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
	// Trading mode for the new market
	//
	// Types that are assignable to TradingMode:
	//	*NewMarketConfiguration_Continuous
	//	*NewMarketConfiguration_Discrete
	TradingMode isNewMarketConfiguration_TradingMode `protobuf_oneof:"trading_mode"`
	// contains filtered or unexported fields
}

Configuration for a new market on Vega

func (*NewMarketConfiguration) Descriptor deprecated

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

Deprecated: Use NewMarketConfiguration.ProtoReflect.Descriptor instead.

func (*NewMarketConfiguration) GetContinuous

func (x *NewMarketConfiguration) GetContinuous() *ContinuousTrading

func (*NewMarketConfiguration) GetDecimalPlaces

func (x *NewMarketConfiguration) GetDecimalPlaces() uint64

func (*NewMarketConfiguration) GetDiscrete

func (x *NewMarketConfiguration) GetDiscrete() *DiscreteTrading

func (*NewMarketConfiguration) GetInstrument

func (x *NewMarketConfiguration) GetInstrument() *InstrumentConfiguration

func (*NewMarketConfiguration) GetLiquidityMonitoringParameters

func (x *NewMarketConfiguration) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters

func (*NewMarketConfiguration) GetLogNormal

func (x *NewMarketConfiguration) GetLogNormal() *LogNormalRiskModel

func (*NewMarketConfiguration) GetMetadata

func (x *NewMarketConfiguration) GetMetadata() []string

func (*NewMarketConfiguration) GetPriceMonitoringParameters

func (x *NewMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters

func (*NewMarketConfiguration) GetRiskParameters

func (m *NewMarketConfiguration) GetRiskParameters() isNewMarketConfiguration_RiskParameters

func (*NewMarketConfiguration) GetSimple

func (x *NewMarketConfiguration) GetSimple() *SimpleModelParams

func (*NewMarketConfiguration) GetTradingMode

func (m *NewMarketConfiguration) GetTradingMode() isNewMarketConfiguration_TradingMode

func (*NewMarketConfiguration) ProtoMessage

func (*NewMarketConfiguration) ProtoMessage()

func (*NewMarketConfiguration) ProtoReflect

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

func (*NewMarketConfiguration) Reset

func (x *NewMarketConfiguration) Reset()

func (*NewMarketConfiguration) String

func (x *NewMarketConfiguration) String() string

func (*NewMarketConfiguration) Validate

func (this *NewMarketConfiguration) Validate() error

type NewMarketConfiguration_Continuous

type NewMarketConfiguration_Continuous struct {
	// Continuous trading
	Continuous *ContinuousTrading `protobuf:"bytes,200,opt,name=continuous,proto3,oneof"`
}

type NewMarketConfiguration_Discrete

type NewMarketConfiguration_Discrete struct {
	// Discrete trading
	Discrete *DiscreteTrading `protobuf:"bytes,201,opt,name=discrete,proto3,oneof"`
}

type NewMarketConfiguration_LogNormal

type NewMarketConfiguration_LogNormal struct {
	// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected
	LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}

type NewMarketConfiguration_Simple

type NewMarketConfiguration_Simple struct {
	// Simple risk model parameters, valid only if MODEL_SIMPLE is selected
	Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}

type NodeRegistration

type NodeRegistration struct {

	// Public key, required field
	PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// Public key for the blockchain, required field
	ChainPubKey []byte `protobuf:"bytes,2,opt,name=chain_pub_key,json=chainPubKey,proto3" json:"chain_pub_key,omitempty"`
	// contains filtered or unexported fields
}

Used to Register a node as a validator during network start-up

func (*NodeRegistration) Descriptor deprecated

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

Deprecated: Use NodeRegistration.ProtoReflect.Descriptor instead.

func (*NodeRegistration) GetChainPubKey

func (x *NodeRegistration) GetChainPubKey() []byte

func (*NodeRegistration) GetPubKey

func (x *NodeRegistration) GetPubKey() []byte

func (*NodeRegistration) ProtoMessage

func (*NodeRegistration) ProtoMessage()

func (*NodeRegistration) ProtoReflect

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

func (*NodeRegistration) Reset

func (x *NodeRegistration) Reset()

func (*NodeRegistration) String

func (x *NodeRegistration) String() string

func (*NodeRegistration) Validate

func (this *NodeRegistration) Validate() error

type NodeSignature

type NodeSignature struct {

	// The identifier of the resource being signed
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The signature
	Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	// The kind of resource being signed
	Kind NodeSignatureKind `protobuf:"varint,3,opt,name=kind,proto3,enum=vega.NodeSignatureKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Represents a signature from a validator, to be used by a foreign chain in order to recognise a decision taken by the Vega network

func (*NodeSignature) Descriptor deprecated

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

Deprecated: Use NodeSignature.ProtoReflect.Descriptor instead.

func (*NodeSignature) GetId

func (x *NodeSignature) GetId() string

func (*NodeSignature) GetKind

func (x *NodeSignature) GetKind() NodeSignatureKind

func (*NodeSignature) GetSig

func (x *NodeSignature) GetSig() []byte

func (*NodeSignature) ProtoMessage

func (*NodeSignature) ProtoMessage()

func (*NodeSignature) ProtoReflect

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

func (*NodeSignature) Reset

func (x *NodeSignature) Reset()

func (*NodeSignature) String

func (x *NodeSignature) String() string

func (*NodeSignature) Validate

func (this *NodeSignature) Validate() error

type NodeSignatureKind

type NodeSignatureKind int32

The kind of the signature created by a node, for example, allow-listing a new asset, withdrawal etc

const (
	// Represents an unspecified or missing value from the input
	NodeSignatureKind_NODE_SIGNATURE_KIND_UNSPECIFIED NodeSignatureKind = 0
	// Represents a signature for a new asset allow-listing
	NodeSignatureKind_NODE_SIGNATURE_KIND_ASSET_NEW NodeSignatureKind = 1
	// Represents a signature for an asset withdrawal
	NodeSignatureKind_NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL NodeSignatureKind = 2
)

func (NodeSignatureKind) Descriptor

func (NodeSignatureKind) Enum

func (NodeSignatureKind) EnumDescriptor deprecated

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

Deprecated: Use NodeSignatureKind.Descriptor instead.

func (NodeSignatureKind) Number

func (NodeSignatureKind) String

func (x NodeSignatureKind) String() string

func (NodeSignatureKind) Type

type NodeVote

type NodeVote struct {

	// Public key, required field
	PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// Reference, required field
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

Used when a node votes for validating a given resource exists or is valid, for example, an ERC20 deposit is valid and exists on ethereum

func (*NodeVote) Descriptor deprecated

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

Deprecated: Use NodeVote.ProtoReflect.Descriptor instead.

func (*NodeVote) GetPubKey

func (x *NodeVote) GetPubKey() []byte

func (*NodeVote) GetReference

func (x *NodeVote) GetReference() string

func (*NodeVote) ProtoMessage

func (*NodeVote) ProtoMessage()

func (*NodeVote) ProtoReflect

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

func (*NodeVote) Reset

func (x *NodeVote) Reset()

func (*NodeVote) String

func (x *NodeVote) String() string

func (*NodeVote) Validate

func (this *NodeVote) Validate() error

type OracleDataSubmission

type OracleDataSubmission struct {

	// The source from which the data is coming from
	Source OracleDataSubmission_OracleSource `protobuf:"varint,1,opt,name=source,proto3,enum=vega.OracleDataSubmission_OracleSource" json:"source,omitempty"`
	// The data provided by the third party provider
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Command to submit new Oracle data from third party providers

func (*OracleDataSubmission) Descriptor deprecated

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

Deprecated: Use OracleDataSubmission.ProtoReflect.Descriptor instead.

func (*OracleDataSubmission) GetPayload

func (x *OracleDataSubmission) GetPayload() []byte

func (*OracleDataSubmission) GetSource

func (*OracleDataSubmission) ProtoMessage

func (*OracleDataSubmission) ProtoMessage()

func (*OracleDataSubmission) ProtoReflect

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

func (*OracleDataSubmission) Reset

func (x *OracleDataSubmission) Reset()

func (*OracleDataSubmission) String

func (x *OracleDataSubmission) String() string

func (*OracleDataSubmission) Validate

func (this *OracleDataSubmission) Validate() error

type OracleDataSubmission_OracleSource

type OracleDataSubmission_OracleSource int32

The supported Oracle sources

const (
	// The default value
	OracleDataSubmission_ORACLE_SOURCE_UNSPECIFIED OracleDataSubmission_OracleSource = 0
	// Support for Open Oracle standard
	OracleDataSubmission_ORACLE_SOURCE_OPEN_ORACLE OracleDataSubmission_OracleSource = 1
)

func (OracleDataSubmission_OracleSource) Descriptor

func (OracleDataSubmission_OracleSource) Enum

func (OracleDataSubmission_OracleSource) EnumDescriptor deprecated

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

Deprecated: Use OracleDataSubmission_OracleSource.Descriptor instead.

func (OracleDataSubmission_OracleSource) Number

func (OracleDataSubmission_OracleSource) String

func (OracleDataSubmission_OracleSource) Type

type OracleSpecToFutureBinding

type OracleSpecToFutureBinding struct {

	// settlement_price_property holds the name of the property in the oracle data
	// that should be used as settlement price.
	// If it is set to "prices.BTC.value", then the Future will use the value of
	// this property as settlement price.
	SettlementPriceProperty string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

OracleSpecToFutureBinding tells on which property oracle data should be used as settlement price.

func (*OracleSpecToFutureBinding) Descriptor deprecated

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

Deprecated: Use OracleSpecToFutureBinding.ProtoReflect.Descriptor instead.

func (*OracleSpecToFutureBinding) GetSettlementPriceProperty

func (x *OracleSpecToFutureBinding) GetSettlementPriceProperty() string

func (*OracleSpecToFutureBinding) ProtoMessage

func (*OracleSpecToFutureBinding) ProtoMessage()

func (*OracleSpecToFutureBinding) ProtoReflect

func (*OracleSpecToFutureBinding) Reset

func (x *OracleSpecToFutureBinding) Reset()

func (*OracleSpecToFutureBinding) String

func (x *OracleSpecToFutureBinding) String() string

func (*OracleSpecToFutureBinding) Validate

func (this *OracleSpecToFutureBinding) Validate() error

type Order

type Order struct {

	// Unique identifier for the order (set by the system after consensus)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Market identifier for the order
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier for the order
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Side for the order, e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)
	Side Side `protobuf:"varint,4,opt,name=side,proto3,enum=vega.Side" json:"side,omitempty"`
	// Price for the order, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"`
	// Size for the order, for example, in a futures market the size equals the number of contracts
	Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	// Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED
	Remaining uint64 `protobuf:"varint,7,opt,name=remaining,proto3" json:"remaining,omitempty"`
	// Time in force indicates how long an order will remain active before it is executed or expires.
	// - See [`Order.TimeInForce`](#vega.Order.TimeInForce)
	TimeInForce Order_TimeInForce `protobuf:"varint,8,opt,name=time_in_force,json=timeInForce,proto3,enum=vega.Order_TimeInForce" json:"time_in_force,omitempty"`
	// Type for the order - See [`Order.Type`](#vega.Order.Type)
	Type Order_Type `protobuf:"varint,9,opt,name=type,proto3,enum=vega.Order_Type" json:"type,omitempty"`
	// Timestamp for when the order was created at, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	CreatedAt int64 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// The current status for the order. See [`Order.Status`](#vega.Order.Status)
	// - For detail on `STATUS_REJECTED` please check the [`OrderError`](#vega.OrderError) value given in the `reason` field
	Status Order_Status `protobuf:"varint,11,opt,name=status,proto3,enum=vega.Order_Status" json:"status,omitempty"`
	// Timestamp for when the order will expire, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`, valid only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`
	ExpiresAt int64 `protobuf:"varint,12,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Reference given for the order, this is typically used to retrieve an order submitted through consensus
	// - Currently set internally by the node to return a unique reference identifier for the order submission
	Reference string `protobuf:"bytes,13,opt,name=reference,proto3" json:"reference,omitempty"`
	// If the Order `status` is `STATUS_REJECTED` then an [`OrderError`](#vega.OrderError) reason will be specified
	// - The default for this field is `ORDER_ERROR_NONE` which signifies that there were no errors
	Reason OrderError `protobuf:"varint,14,opt,name=reason,proto3,enum=vega.OrderError" json:"reason,omitempty"`
	// Timestamp for when the Order was last updated, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	UpdatedAt int64 `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// The version for the order, initial value is version 1 and is incremented after each successful amend
	Version uint64 `protobuf:"varint,16,opt,name=version,proto3" json:"version,omitempty"`
	// Batch identifier for the order, used internally for orders submitted during auctions
	// to keep track of the auction batch this order falls under (required for fees calculation)
	BatchId uint64 `protobuf:"varint,17,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// Pegged order details, used only if the order represents a pegged order.
	PeggedOrder *PeggedOrder `protobuf:"bytes,18,opt,name=pegged_order,json=peggedOrder,proto3" json:"pegged_order,omitempty"`
	// Is this order created as part of a liquidity provision, will be empty if not.
	LiquidityProvisionId string `protobuf:"bytes,19,opt,name=liquidity_provision_id,json=liquidityProvisionId,proto3" json:"liquidity_provision_id,omitempty"`
	// contains filtered or unexported fields
}

An order can be submitted, amended and cancelled on Vega in an attempt to make trades with other parties

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetBatchId

func (x *Order) GetBatchId() uint64

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() int64

func (*Order) GetExpiresAt

func (x *Order) GetExpiresAt() int64

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetLiquidityProvisionId

func (x *Order) GetLiquidityProvisionId() string

func (*Order) GetMarketId

func (x *Order) GetMarketId() string

func (*Order) GetPartyId

func (x *Order) GetPartyId() string

func (*Order) GetPeggedOrder

func (x *Order) GetPeggedOrder() *PeggedOrder

func (*Order) GetPrice

func (x *Order) GetPrice() uint64

func (*Order) GetReason

func (x *Order) GetReason() OrderError

func (*Order) GetReference

func (x *Order) GetReference() string

func (*Order) GetRemaining

func (x *Order) GetRemaining() uint64

func (*Order) GetSide

func (x *Order) GetSide() Side

func (*Order) GetSize

func (x *Order) GetSize() uint64

func (*Order) GetStatus

func (x *Order) GetStatus() Order_Status

func (*Order) GetTimeInForce

func (x *Order) GetTimeInForce() Order_TimeInForce

func (*Order) GetType

func (x *Order) GetType() Order_Type

func (*Order) GetUpdatedAt

func (x *Order) GetUpdatedAt() int64

func (*Order) GetVersion

func (x *Order) GetVersion() uint64

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

func (*Order) Validate

func (this *Order) Validate() error

type OrderAmendment

type OrderAmendment struct {

	// Order identifier, this is required to find the order and will not be updated, required field
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// Party identifier, this is required to find the order and will not be updated, required field
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Market identifier, this is required to find the order and will not be updated
	MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Amend the price for the order, if the Price value is set, otherwise price will remain unchanged - See [`Price`](#vega.Price)
	Price *Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
	// Amend the size for the order by the delta specified:
	// - To reduce the size from the current value set a negative integer value
	// - To increase the size from the current value, set a positive integer value
	// - To leave the size unchanged set a value of zero
	SizeDelta int64 `protobuf:"varint,5,opt,name=size_delta,json=sizeDelta,proto3" json:"size_delta,omitempty"`
	// Amend the expiry time for the order, if the Timestamp value is set, otherwise expiry time will remain unchanged
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	ExpiresAt *Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Amend the time in force for the order, set to TIME_IN_FORCE_UNSPECIFIED to remain unchanged
	// - See [`TimeInForce`](#api.VegaTimeResponse).`timestamp`
	TimeInForce Order_TimeInForce `protobuf:"varint,7,opt,name=time_in_force,json=timeInForce,proto3,enum=vega.Order_TimeInForce" json:"time_in_force,omitempty"`
	// Amend the pegged order offset for the order
	PeggedOffset *wrappers.Int64Value `protobuf:"bytes,8,opt,name=pegged_offset,json=peggedOffset,proto3" json:"pegged_offset,omitempty"`
	// Amend the pegged order reference for the order
	// - See [`PeggedReference`](#vega.PeggedReference)
	PeggedReference PeggedReference `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

An order amendment is a request to amend or update an existing order on Vega

func (*OrderAmendment) Descriptor deprecated

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

Deprecated: Use OrderAmendment.ProtoReflect.Descriptor instead.

func (*OrderAmendment) GetExpiresAt

func (x *OrderAmendment) GetExpiresAt() *Timestamp

func (*OrderAmendment) GetMarketId

func (x *OrderAmendment) GetMarketId() string

func (*OrderAmendment) GetOrderId

func (x *OrderAmendment) GetOrderId() string

func (*OrderAmendment) GetPartyId

func (x *OrderAmendment) GetPartyId() string

func (*OrderAmendment) GetPeggedOffset

func (x *OrderAmendment) GetPeggedOffset() *wrappers.Int64Value

func (*OrderAmendment) GetPeggedReference

func (x *OrderAmendment) GetPeggedReference() PeggedReference

func (*OrderAmendment) GetPrice

func (x *OrderAmendment) GetPrice() *Price

func (*OrderAmendment) GetSizeDelta

func (x *OrderAmendment) GetSizeDelta() int64

func (*OrderAmendment) GetTimeInForce

func (x *OrderAmendment) GetTimeInForce() Order_TimeInForce

func (*OrderAmendment) ProtoMessage

func (*OrderAmendment) ProtoMessage()

func (*OrderAmendment) ProtoReflect

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

func (*OrderAmendment) Reset

func (x *OrderAmendment) Reset()

func (*OrderAmendment) String

func (x *OrderAmendment) String() string

func (*OrderAmendment) Validate

func (this *OrderAmendment) Validate() error

type OrderCancellation

type OrderCancellation struct {

	// Unique identifier for the order (set by the system after consensus), required field
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// Market identifier for the order, required field
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier for the order, required field
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// contains filtered or unexported fields
}

An order cancellation is a request to cancel an existing order on Vega

func (*OrderCancellation) Descriptor deprecated

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

Deprecated: Use OrderCancellation.ProtoReflect.Descriptor instead.

func (*OrderCancellation) GetMarketId

func (x *OrderCancellation) GetMarketId() string

func (*OrderCancellation) GetOrderId

func (x *OrderCancellation) GetOrderId() string

func (*OrderCancellation) GetPartyId

func (x *OrderCancellation) GetPartyId() string

func (*OrderCancellation) ProtoMessage

func (*OrderCancellation) ProtoMessage()

func (*OrderCancellation) ProtoReflect

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

func (*OrderCancellation) Reset

func (x *OrderCancellation) Reset()

func (*OrderCancellation) String

func (x *OrderCancellation) String() string

func (*OrderCancellation) Validate

func (this *OrderCancellation) Validate() error

type OrderCancellationConfirmation

type OrderCancellationConfirmation struct {

	// The order that was cancelled
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

Used when cancelling an Order

func (*OrderCancellationConfirmation) Descriptor deprecated

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

Deprecated: Use OrderCancellationConfirmation.ProtoReflect.Descriptor instead.

func (*OrderCancellationConfirmation) GetOrder

func (x *OrderCancellationConfirmation) GetOrder() *Order

func (*OrderCancellationConfirmation) ProtoMessage

func (*OrderCancellationConfirmation) ProtoMessage()

func (*OrderCancellationConfirmation) ProtoReflect

func (*OrderCancellationConfirmation) Reset

func (x *OrderCancellationConfirmation) Reset()

func (*OrderCancellationConfirmation) String

func (*OrderCancellationConfirmation) Validate

func (this *OrderCancellationConfirmation) Validate() error

type OrderConfirmation

type OrderConfirmation struct {

	// The order that was confirmed
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// 0 or more trades that were emitted
	Trades []*Trade `protobuf:"bytes,2,rep,name=trades,proto3" json:"trades,omitempty"`
	// 0 or more passive orders that were affected
	PassiveOrdersAffected []*Order `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Used when confirming an Order

func (*OrderConfirmation) Descriptor deprecated

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

Deprecated: Use OrderConfirmation.ProtoReflect.Descriptor instead.

func (*OrderConfirmation) GetOrder

func (x *OrderConfirmation) GetOrder() *Order

func (*OrderConfirmation) GetPassiveOrdersAffected

func (x *OrderConfirmation) GetPassiveOrdersAffected() []*Order

func (*OrderConfirmation) GetTrades

func (x *OrderConfirmation) GetTrades() []*Trade

func (*OrderConfirmation) ProtoMessage

func (*OrderConfirmation) ProtoMessage()

func (*OrderConfirmation) ProtoReflect

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

func (*OrderConfirmation) Reset

func (x *OrderConfirmation) Reset()

func (*OrderConfirmation) String

func (x *OrderConfirmation) String() string

func (*OrderConfirmation) Validate

func (this *OrderConfirmation) Validate() error

type OrderError

type OrderError int32

OrderError codes are returned in the `[Order](#vega.Order).reason` field - If there is an issue with an order during its life-cycle, it will be marked with `status.ORDER_STATUS_REJECTED`

const (
	// Default value, no error reported
	OrderError_ORDER_ERROR_UNSPECIFIED OrderError = 0
	// Order was submitted for a market that does not exist
	OrderError_ORDER_ERROR_INVALID_MARKET_ID OrderError = 1
	// Order was submitted with an invalid identifier
	OrderError_ORDER_ERROR_INVALID_ORDER_ID OrderError = 2
	// Order was amended with a sequence number that was not previous version + 1
	OrderError_ORDER_ERROR_OUT_OF_SEQUENCE OrderError = 3
	// Order was amended with an invalid remaining size (e.g. remaining greater than total size)
	OrderError_ORDER_ERROR_INVALID_REMAINING_SIZE OrderError = 4
	// Node was unable to get Vega (blockchain) time
	OrderError_ORDER_ERROR_TIME_FAILURE OrderError = 5
	// Failed to remove an order from the book
	OrderError_ORDER_ERROR_REMOVAL_FAILURE OrderError = 6
	// An order with `TimeInForce.TIME_IN_FORCE_GTT` was submitted or amended
	// with an expiration that was badly formatted or otherwise invalid
	OrderError_ORDER_ERROR_INVALID_EXPIRATION_DATETIME OrderError = 7
	// Order was submitted or amended with an invalid reference field
	OrderError_ORDER_ERROR_INVALID_ORDER_REFERENCE OrderError = 8
	// Order amend was submitted for an order field that cannot not be amended (e.g. order identifier)
	OrderError_ORDER_ERROR_EDIT_NOT_ALLOWED OrderError = 9
	// Amend failure because amend details do not match original order
	OrderError_ORDER_ERROR_AMEND_FAILURE OrderError = 10
	// Order not found in an order book or store
	OrderError_ORDER_ERROR_NOT_FOUND OrderError = 11
	// Order was submitted with an invalid or missing party identifier
	OrderError_ORDER_ERROR_INVALID_PARTY_ID OrderError = 12
	// Order was submitted for a market that has closed
	OrderError_ORDER_ERROR_MARKET_CLOSED OrderError = 13
	// Order was submitted, but the party did not have enough collateral to cover the order
	OrderError_ORDER_ERROR_MARGIN_CHECK_FAILED OrderError = 14
	// Order was submitted, but the party did not have an account for this asset
	OrderError_ORDER_ERROR_MISSING_GENERAL_ACCOUNT OrderError = 15
	// Unspecified internal error
	OrderError_ORDER_ERROR_INTERNAL_ERROR OrderError = 16
	// Order was submitted with an invalid or missing size (e.g. 0)
	OrderError_ORDER_ERROR_INVALID_SIZE OrderError = 17
	// Order was submitted with an invalid persistence for its type
	OrderError_ORDER_ERROR_INVALID_PERSISTENCE OrderError = 18
	// Order was submitted with an invalid type field
	OrderError_ORDER_ERROR_INVALID_TYPE OrderError = 19
	// Order was stopped as it would have traded with another order submitted from the same party
	OrderError_ORDER_ERROR_SELF_TRADING OrderError = 20
	// Order was submitted, but the party did not have enough collateral to cover the fees for the order
	OrderError_ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES OrderError = 21
	// Order was submitted with an incorrect or invalid market type
	OrderError_ORDER_ERROR_INCORRECT_MARKET_TYPE OrderError = 22
	// Order was submitted with invalid time in force
	OrderError_ORDER_ERROR_INVALID_TIME_IN_FORCE OrderError = 23
	// A GFN order has got to the market when it is in auction mode
	OrderError_ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION OrderError = 24
	// A GFA order has got to the market when it is in continuous trading mode
	OrderError_ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING OrderError = 25
	// Attempt to amend order to GTT without ExpiryAt
	OrderError_ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT OrderError = 26
	// Attempt to amend ExpiryAt to a value before CreatedAt
	OrderError_ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT OrderError = 27
	// Attempt to amend to GTC without an ExpiryAt value
	OrderError_ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT OrderError = 28
	// Amending to FOK or IOC is invalid
	OrderError_ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC OrderError = 29
	// Amending to GFA or GFN is invalid
	OrderError_ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN OrderError = 30
	// Amending from GFA or GFN is invalid
	OrderError_ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN OrderError = 31
	// IOC orders are not allowed during auction
	OrderError_ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION OrderError = 32
	// FOK orders are not allowed during auction
	OrderError_ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION OrderError = 33
	// Pegged orders must be LIMIT orders
	OrderError_ORDER_ERROR_MUST_BE_LIMIT_ORDER OrderError = 34
	// Pegged orders can only have TIF GTC or GTT
	OrderError_ORDER_ERROR_MUST_BE_GTT_OR_GTC OrderError = 35
	// Pegged order must have a reference price
	OrderError_ORDER_ERROR_WITHOUT_REFERENCE_PRICE OrderError = 36
	// Buy pegged order cannot reference best ask price
	OrderError_ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE OrderError = 37
	// Pegged order offset must be <= 0
	OrderError_ORDER_ERROR_OFFSET_MUST_BE_LESS_OR_EQUAL_TO_ZERO OrderError = 38
	// Pegged order offset must be < 0
	OrderError_ORDER_ERROR_OFFSET_MUST_BE_LESS_THAN_ZERO OrderError = 39
	// Pegged order offset must be >= 0
	OrderError_ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO OrderError = 40
	// Sell pegged order cannot reference best bid price
	OrderError_ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE OrderError = 41
	// Pegged order offset must be > zero
	OrderError_ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO OrderError = 42
	// The party has an insufficient balance, or does not have
	// a general account to submit the order (no deposits made
	// for the required asset)
	OrderError_ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE OrderError = 43
	// Cannot amend a non pegged orders details
	OrderError_ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER OrderError = 44
	// We are unable to re-price a pegged order because a market price is unavailable
	OrderError_ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER OrderError = 45
	// It is not possible to amend the price of an existing pegged order
	OrderError_ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER OrderError = 46
)

func (OrderError) Descriptor

func (OrderError) Descriptor() protoreflect.EnumDescriptor

func (OrderError) Enum

func (x OrderError) Enum() *OrderError

func (OrderError) EnumDescriptor deprecated

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

Deprecated: Use OrderError.Descriptor instead.

func (OrderError) Number

func (x OrderError) Number() protoreflect.EnumNumber

func (OrderError) String

func (x OrderError) String() string

func (OrderError) Type

type OrderSubmission

type OrderSubmission struct {

	// Unique identifier for the order (set by the system after consensus)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Market identifier for the order, required field
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier for the order, required field
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Price for the order, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places,
	// , required field for limit orders, however it is not required for market orders
	Price uint64 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
	// Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative
	Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	// Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side)
	Side Side `protobuf:"varint,6,opt,name=side,proto3,enum=vega.Side" json:"side,omitempty"`
	// Time in force indicates how long an order will remain active before it is executed or expires, required field
	// - See [`Order.TimeInForce`](#vega.Order.TimeInForce)
	TimeInForce Order_TimeInForce `protobuf:"varint,7,opt,name=time_in_force,json=timeInForce,proto3,enum=vega.Order_TimeInForce" json:"time_in_force,omitempty"`
	// Timestamp for when the order will expire, in nanoseconds since the epoch,
	// required field only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	ExpiresAt int64 `protobuf:"varint,8,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Type for the order, required field - See [`Order.Type`](#vega.Order.Type)
	Type Order_Type `protobuf:"varint,9,opt,name=type,proto3,enum=vega.Order_Type" json:"type,omitempty"`
	// Reference given for the order, this is typically used to retrieve an order submitted through consensus, currently
	// set internally by the node to return a unique reference identifier for the order submission
	Reference string `protobuf:"bytes,10,opt,name=reference,proto3" json:"reference,omitempty"`
	// Used to specify the details for a pegged order
	// - See [`PeggedOrder`](#vega.PeggedOrder)
	PeggedOrder *PeggedOrder `protobuf:"bytes,11,opt,name=pegged_order,json=peggedOrder,proto3" json:"pegged_order,omitempty"`
	// contains filtered or unexported fields
}

An order submission is a request to submit or create a new order on Vega

func (*OrderSubmission) Descriptor deprecated

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

Deprecated: Use OrderSubmission.ProtoReflect.Descriptor instead.

func (*OrderSubmission) GetExpiresAt

func (x *OrderSubmission) GetExpiresAt() int64

func (*OrderSubmission) GetId

func (x *OrderSubmission) GetId() string

func (*OrderSubmission) GetMarketId

func (x *OrderSubmission) GetMarketId() string

func (*OrderSubmission) GetPartyId

func (x *OrderSubmission) GetPartyId() string

func (*OrderSubmission) GetPeggedOrder

func (x *OrderSubmission) GetPeggedOrder() *PeggedOrder

func (*OrderSubmission) GetPrice

func (x *OrderSubmission) GetPrice() uint64

func (*OrderSubmission) GetReference

func (x *OrderSubmission) GetReference() string

func (*OrderSubmission) GetSide

func (x *OrderSubmission) GetSide() Side

func (*OrderSubmission) GetSize

func (x *OrderSubmission) GetSize() uint64

func (*OrderSubmission) GetTimeInForce

func (x *OrderSubmission) GetTimeInForce() Order_TimeInForce

func (*OrderSubmission) GetType

func (x *OrderSubmission) GetType() Order_Type

func (*OrderSubmission) ProtoMessage

func (*OrderSubmission) ProtoMessage()

func (*OrderSubmission) ProtoReflect

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

func (*OrderSubmission) Reset

func (x *OrderSubmission) Reset()

func (*OrderSubmission) String

func (x *OrderSubmission) String() string

func (*OrderSubmission) Validate

func (this *OrderSubmission) Validate() error

type Order_Status

type Order_Status int32

Status values for an order See resulting status in [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail.

const (
	// Default value, always invalid
	Order_STATUS_UNSPECIFIED Order_Status = 0
	// Used for active unfilled or partially filled orders
	Order_STATUS_ACTIVE Order_Status = 1
	// Used for expired GTT orders
	Order_STATUS_EXPIRED Order_Status = 2
	// Used for orders cancelled by the party that created the order
	Order_STATUS_CANCELLED Order_Status = 3
	// Used for unfilled FOK or IOC orders, and for orders that were stopped by the network
	Order_STATUS_STOPPED Order_Status = 4
	// Used for closed fully filled orders
	Order_STATUS_FILLED Order_Status = 5
	// Used for orders when not enough collateral was available to fill the margin requirements
	Order_STATUS_REJECTED Order_Status = 6
	// Used for closed partially filled IOC orders
	Order_STATUS_PARTIALLY_FILLED Order_Status = 7
	// Order has been removed from the order book and has been parked, this applies to pegged orders only
	Order_STATUS_PARKED Order_Status = 8
)

func (Order_Status) Descriptor

func (Order_Status) Enum

func (x Order_Status) Enum() *Order_Status

func (Order_Status) EnumDescriptor deprecated

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

Deprecated: Use Order_Status.Descriptor instead.

func (Order_Status) Number

func (Order_Status) String

func (x Order_Status) String() string

func (Order_Status) Type

type Order_TimeInForce

type Order_TimeInForce int32

Time In Force for an order See [What order types are available to trade on Vega?](https://docs.testnet.vega.xyz/docs/trading-questions/#what-order-types-are-available-to-trade-on-vega) for more detail

const (
	// Default value for TimeInForce, can be valid for an amend
	Order_TIME_IN_FORCE_UNSPECIFIED Order_TimeInForce = 0
	// Good until cancelled
	Order_TIME_IN_FORCE_GTC Order_TimeInForce = 1
	// Good until specified time
	Order_TIME_IN_FORCE_GTT Order_TimeInForce = 2
	// Immediate or cancel
	Order_TIME_IN_FORCE_IOC Order_TimeInForce = 3
	// Fill or kill
	Order_TIME_IN_FORCE_FOK Order_TimeInForce = 4
	// Good for auction
	Order_TIME_IN_FORCE_GFA Order_TimeInForce = 5
	// Good for normal
	Order_TIME_IN_FORCE_GFN Order_TimeInForce = 6
)

func (Order_TimeInForce) Descriptor

func (Order_TimeInForce) Enum

func (Order_TimeInForce) EnumDescriptor deprecated

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

Deprecated: Use Order_TimeInForce.Descriptor instead.

func (Order_TimeInForce) Number

func (Order_TimeInForce) String

func (x Order_TimeInForce) String() string

func (Order_TimeInForce) Type

type Order_Type

type Order_Type int32

Type values for an order

const (
	// Default value, always invalid
	Order_TYPE_UNSPECIFIED Order_Type = 0
	// Used for Limit orders
	Order_TYPE_LIMIT Order_Type = 1
	// Used for Market orders
	Order_TYPE_MARKET Order_Type = 2
	// Used for orders where the initiating party is the network (with distressed traders)
	Order_TYPE_NETWORK Order_Type = 3
)

func (Order_Type) Descriptor

func (Order_Type) Descriptor() protoreflect.EnumDescriptor

func (Order_Type) Enum

func (x Order_Type) Enum() *Order_Type

func (Order_Type) EnumDescriptor deprecated

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

Deprecated: Use Order_Type.Descriptor instead.

func (Order_Type) Number

func (x Order_Type) Number() protoreflect.EnumNumber

func (Order_Type) String

func (x Order_Type) String() string

func (Order_Type) Type

type Party

type Party struct {

	// A unique identifier for the party, typically represented by a public key
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A party represents an entity who wishes to trade on or query a Vega network

func (*Party) Descriptor deprecated

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

Deprecated: Use Party.ProtoReflect.Descriptor instead.

func (*Party) GetId

func (x *Party) GetId() string

func (*Party) ProtoMessage

func (*Party) ProtoMessage()

func (*Party) ProtoReflect

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

func (*Party) Reset

func (x *Party) Reset()

func (*Party) String

func (x *Party) String() string

func (*Party) Validate

func (this *Party) Validate() error

type PeggedOrder

type PeggedOrder struct {

	// Which price point are we linked to
	Reference PeggedReference `protobuf:"varint,1,opt,name=reference,proto3,enum=vega.PeggedReference" json:"reference,omitempty"`
	// Offset from the price reference
	Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

Pegged orders are limit orders where the price is specified in the form REFERENCE +/- OFFSET They can be used for any limit order that is valid during continuous trading

func (*PeggedOrder) Descriptor deprecated

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

Deprecated: Use PeggedOrder.ProtoReflect.Descriptor instead.

func (*PeggedOrder) GetOffset

func (x *PeggedOrder) GetOffset() int64

func (*PeggedOrder) GetReference

func (x *PeggedOrder) GetReference() PeggedReference

func (*PeggedOrder) ProtoMessage

func (*PeggedOrder) ProtoMessage()

func (*PeggedOrder) ProtoReflect

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

func (*PeggedOrder) Reset

func (x *PeggedOrder) Reset()

func (*PeggedOrder) String

func (x *PeggedOrder) String() string

func (*PeggedOrder) Validate

func (this *PeggedOrder) Validate() error

type PeggedReference

type PeggedReference int32

A pegged reference defines which price point a pegged order is linked to - meaning the price for a pegged order is calculated from the value of the reference price point

const (
	// Default value for PeggedReference, no reference given
	PeggedReference_PEGGED_REFERENCE_UNSPECIFIED PeggedReference = 0
	// Mid price reference
	PeggedReference_PEGGED_REFERENCE_MID PeggedReference = 1
	// Best bid price reference
	PeggedReference_PEGGED_REFERENCE_BEST_BID PeggedReference = 2
	// Best ask price reference
	PeggedReference_PEGGED_REFERENCE_BEST_ASK PeggedReference = 3
)

func (PeggedReference) Descriptor

func (PeggedReference) Enum

func (x PeggedReference) Enum() *PeggedReference

func (PeggedReference) EnumDescriptor deprecated

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

Deprecated: Use PeggedReference.Descriptor instead.

func (PeggedReference) Number

func (PeggedReference) String

func (x PeggedReference) String() string

func (PeggedReference) Type

type Position

type Position struct {

	// Market identifier
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Open volume for the position, value is signed +ve for long and -ve for short
	OpenVolume int64 `protobuf:"varint,3,opt,name=open_volume,json=openVolume,proto3" json:"open_volume,omitempty"`
	// Realised profit and loss for the position, value is signed +ve for long and -ve for short
	RealisedPnl int64 `protobuf:"varint,4,opt,name=realised_pnl,json=realisedPnl,proto3" json:"realised_pnl,omitempty"`
	// Unrealised profit and loss for the position, value is signed +ve for long and -ve for short
	UnrealisedPnl int64 `protobuf:"varint,5,opt,name=unrealised_pnl,json=unrealisedPnl,proto3" json:"unrealised_pnl,omitempty"`
	// Average entry price for the position, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	AverageEntryPrice uint64 `protobuf:"varint,6,opt,name=average_entry_price,json=averageEntryPrice,proto3" json:"average_entry_price,omitempty"`
	// Timestamp for the latest time the position was updated
	UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Represents position data for a party on the specified market on Vega

func (*Position) Descriptor deprecated

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

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetAverageEntryPrice

func (x *Position) GetAverageEntryPrice() uint64

func (*Position) GetMarketId

func (x *Position) GetMarketId() string

func (*Position) GetOpenVolume

func (x *Position) GetOpenVolume() int64

func (*Position) GetPartyId

func (x *Position) GetPartyId() string

func (*Position) GetRealisedPnl

func (x *Position) GetRealisedPnl() int64

func (*Position) GetUnrealisedPnl

func (x *Position) GetUnrealisedPnl() int64

func (*Position) GetUpdatedAt

func (x *Position) GetUpdatedAt() int64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

func (*Position) Validate

func (this *Position) Validate() error

type PositionResolution

type PositionResolution struct {

	// Market identifier for the event
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Number of distressed traders
	Distressed int64 `protobuf:"varint,2,opt,name=distressed,proto3" json:"distressed,omitempty"`
	// Number of close outs
	Closed int64 `protobuf:"varint,3,opt,name=closed,proto3" json:"closed,omitempty"`
	// Mark price, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	MarkPrice uint64 `protobuf:"varint,4,opt,name=mark_price,json=markPrice,proto3" json:"mark_price,omitempty"`
	// contains filtered or unexported fields
}

A position resolution event contains information on distressed trades

func (*PositionResolution) Descriptor deprecated

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

Deprecated: Use PositionResolution.ProtoReflect.Descriptor instead.

func (*PositionResolution) GetClosed

func (x *PositionResolution) GetClosed() int64

func (*PositionResolution) GetDistressed

func (x *PositionResolution) GetDistressed() int64

func (*PositionResolution) GetMarkPrice

func (x *PositionResolution) GetMarkPrice() uint64

func (*PositionResolution) GetMarketId

func (x *PositionResolution) GetMarketId() string

func (*PositionResolution) ProtoMessage

func (*PositionResolution) ProtoMessage()

func (*PositionResolution) ProtoReflect

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

func (*PositionResolution) Reset

func (x *PositionResolution) Reset()

func (*PositionResolution) String

func (x *PositionResolution) String() string

func (*PositionResolution) Validate

func (this *PositionResolution) Validate() error

type PositionTrade

type PositionTrade struct {

	// Volume for the position trade, value is signed +ve for long and -ve for short
	Volume int64 `protobuf:"varint,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// Price for the position trade, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*PositionTrade) Descriptor deprecated

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

Deprecated: Use PositionTrade.ProtoReflect.Descriptor instead.

func (*PositionTrade) GetPrice

func (x *PositionTrade) GetPrice() uint64

func (*PositionTrade) GetVolume

func (x *PositionTrade) GetVolume() int64

func (*PositionTrade) ProtoMessage

func (*PositionTrade) ProtoMessage()

func (*PositionTrade) ProtoReflect

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

func (*PositionTrade) Reset

func (x *PositionTrade) Reset()

func (*PositionTrade) String

func (x *PositionTrade) String() string

func (*PositionTrade) Validate

func (this *PositionTrade) Validate() error

type Price

type Price struct {

	// Price value, given as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Price) Descriptor deprecated

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

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) GetValue

func (x *Price) GetValue() uint64

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

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

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

func (*Price) Validate

func (this *Price) Validate() error

type PriceLevel

type PriceLevel struct {

	// Price for the price level, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	// Number of orders at the price level
	NumberOfOrders uint64 `protobuf:"varint,2,opt,name=number_of_orders,json=numberOfOrders,proto3" json:"number_of_orders,omitempty"`
	// Volume at the price level
	Volume uint64 `protobuf:"varint,3,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

Represents a price level from market depth or order book data

func (*PriceLevel) Descriptor deprecated

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

Deprecated: Use PriceLevel.ProtoReflect.Descriptor instead.

func (*PriceLevel) GetNumberOfOrders

func (x *PriceLevel) GetNumberOfOrders() uint64

func (*PriceLevel) GetPrice

func (x *PriceLevel) GetPrice() uint64

func (*PriceLevel) GetVolume

func (x *PriceLevel) GetVolume() uint64

func (*PriceLevel) ProtoMessage

func (*PriceLevel) ProtoMessage()

func (*PriceLevel) ProtoReflect

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

func (*PriceLevel) Reset

func (x *PriceLevel) Reset()

func (*PriceLevel) String

func (x *PriceLevel) String() string

func (*PriceLevel) Validate

func (this *PriceLevel) Validate() error

type PriceMonitoringBounds

type PriceMonitoringBounds struct {

	// Minimum price that isn't currently breaching the specified price monitoring trigger
	MinValidPrice uint64 `protobuf:"varint,1,opt,name=min_valid_price,json=minValidPrice,proto3" json:"min_valid_price,omitempty"`
	// Maximum price that isn't currently breaching the specified price monitoring trigger
	MaxValidPrice uint64 `protobuf:"varint,2,opt,name=max_valid_price,json=maxValidPrice,proto3" json:"max_valid_price,omitempty"`
	// Price monitoring trigger associated with the bounds
	Trigger *PriceMonitoringTrigger `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	// Reference price used to calculate the valid price range
	ReferencePrice float64 `protobuf:"fixed64,4,opt,name=reference_price,json=referencePrice,proto3" json:"reference_price,omitempty"`
	// contains filtered or unexported fields
}

Represents a list of valid (at the current timestamp) price ranges per associated trigger

func (*PriceMonitoringBounds) Descriptor deprecated

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

Deprecated: Use PriceMonitoringBounds.ProtoReflect.Descriptor instead.

func (*PriceMonitoringBounds) GetMaxValidPrice

func (x *PriceMonitoringBounds) GetMaxValidPrice() uint64

func (*PriceMonitoringBounds) GetMinValidPrice

func (x *PriceMonitoringBounds) GetMinValidPrice() uint64

func (*PriceMonitoringBounds) GetReferencePrice

func (x *PriceMonitoringBounds) GetReferencePrice() float64

func (*PriceMonitoringBounds) GetTrigger

func (*PriceMonitoringBounds) ProtoMessage

func (*PriceMonitoringBounds) ProtoMessage()

func (*PriceMonitoringBounds) ProtoReflect

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

func (*PriceMonitoringBounds) Reset

func (x *PriceMonitoringBounds) Reset()

func (*PriceMonitoringBounds) String

func (x *PriceMonitoringBounds) String() string

func (*PriceMonitoringBounds) Validate

func (this *PriceMonitoringBounds) Validate() error

type PriceMonitoringParameters

type PriceMonitoringParameters struct {
	Triggers []*PriceMonitoringTrigger `protobuf:"bytes,1,rep,name=triggers,proto3" json:"triggers,omitempty"`
	// contains filtered or unexported fields
}

PriceMonitoringParameters contains a collection of triggers to be used for a given market

func (*PriceMonitoringParameters) Descriptor deprecated

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

Deprecated: Use PriceMonitoringParameters.ProtoReflect.Descriptor instead.

func (*PriceMonitoringParameters) GetTriggers

func (*PriceMonitoringParameters) ProtoMessage

func (*PriceMonitoringParameters) ProtoMessage()

func (*PriceMonitoringParameters) ProtoReflect

func (*PriceMonitoringParameters) Reset

func (x *PriceMonitoringParameters) Reset()

func (*PriceMonitoringParameters) String

func (x *PriceMonitoringParameters) String() string

func (*PriceMonitoringParameters) Validate

func (this *PriceMonitoringParameters) Validate() error

type PriceMonitoringSettings

type PriceMonitoringSettings struct {

	// Specifies price monitoring parameters to be used for price monitoring purposes
	Parameters *PriceMonitoringParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// Specifies how often (expressed in seconds) the price monitoring bounds should be updated
	UpdateFrequency int64 `protobuf:"varint,2,opt,name=update_frequency,json=updateFrequency,proto3" json:"update_frequency,omitempty"`
	// contains filtered or unexported fields
}

PriceMonitoringSettings contains the settings for price monitoring

func (*PriceMonitoringSettings) Descriptor deprecated

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

Deprecated: Use PriceMonitoringSettings.ProtoReflect.Descriptor instead.

func (*PriceMonitoringSettings) GetParameters

func (*PriceMonitoringSettings) GetUpdateFrequency

func (x *PriceMonitoringSettings) GetUpdateFrequency() int64

func (*PriceMonitoringSettings) ProtoMessage

func (*PriceMonitoringSettings) ProtoMessage()

func (*PriceMonitoringSettings) ProtoReflect

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

func (*PriceMonitoringSettings) Reset

func (x *PriceMonitoringSettings) Reset()

func (*PriceMonitoringSettings) String

func (x *PriceMonitoringSettings) String() string

func (*PriceMonitoringSettings) Validate

func (this *PriceMonitoringSettings) Validate() error

type PriceMonitoringTrigger

type PriceMonitoringTrigger struct {

	// Price monitoring projection horizon τ in seconds
	Horizon int64 `protobuf:"varint,1,opt,name=horizon,proto3" json:"horizon,omitempty"`
	// Price monitoirng probability level p
	Probability float64 `protobuf:"fixed64,2,opt,name=probability,proto3" json:"probability,omitempty"`
	// Price monitoring auction extension duration in seconds should the price
	// breach it's theoretical level over the specified horizon at the specified
	// probability level
	AuctionExtension int64 `protobuf:"varint,3,opt,name=auction_extension,json=auctionExtension,proto3" json:"auction_extension,omitempty"`
	// contains filtered or unexported fields
}

PriceMonitoringTrigger holds together price projection horizon τ, probability level p, and auction extension duration

func (*PriceMonitoringTrigger) Descriptor deprecated

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

Deprecated: Use PriceMonitoringTrigger.ProtoReflect.Descriptor instead.

func (*PriceMonitoringTrigger) GetAuctionExtension

func (x *PriceMonitoringTrigger) GetAuctionExtension() int64

func (*PriceMonitoringTrigger) GetHorizon

func (x *PriceMonitoringTrigger) GetHorizon() int64

func (*PriceMonitoringTrigger) GetProbability

func (x *PriceMonitoringTrigger) GetProbability() float64

func (*PriceMonitoringTrigger) ProtoMessage

func (*PriceMonitoringTrigger) ProtoMessage()

func (*PriceMonitoringTrigger) ProtoReflect

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

func (*PriceMonitoringTrigger) Reset

func (x *PriceMonitoringTrigger) Reset()

func (*PriceMonitoringTrigger) String

func (x *PriceMonitoringTrigger) String() string

func (*PriceMonitoringTrigger) Validate

func (this *PriceMonitoringTrigger) Validate() error

type Proposal

type Proposal struct {

	// Unique proposal identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Proposal reference
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	// Party identifier of the author (the party submitting the proposal)
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Proposal state - See (Proposal.State)[#vega.Proposal.State] definition
	State Proposal_State `protobuf:"varint,4,opt,name=state,proto3,enum=vega.Proposal_State" json:"state,omitempty"`
	// Proposal timestamp for date and time (in nanoseconds) when proposal was submitted to the network
	Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Proposal configuration and the actual change that is meant to be executed when proposal is enacted
	Terms *ProposalTerms `protobuf:"bytes,6,opt,name=terms,proto3" json:"terms,omitempty"`
	// A reason for the current state of the proposal, this may be set in case of REJECTED and FAILED statuses
	Reason ProposalError `protobuf:"varint,7,opt,name=reason,proto3,enum=vega.ProposalError" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

Governance proposal

func (*Proposal) Descriptor deprecated

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetId

func (x *Proposal) GetId() string

func (*Proposal) GetPartyId

func (x *Proposal) GetPartyId() string

func (*Proposal) GetReason

func (x *Proposal) GetReason() ProposalError

func (*Proposal) GetReference

func (x *Proposal) GetReference() string

func (*Proposal) GetState

func (x *Proposal) GetState() Proposal_State

func (*Proposal) GetTerms

func (x *Proposal) GetTerms() *ProposalTerms

func (*Proposal) GetTimestamp

func (x *Proposal) GetTimestamp() int64

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

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

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

func (*Proposal) Validate

func (this *Proposal) Validate() error

type ProposalError

type ProposalError int32

A list of possible errors that can cause a proposal to be in state rejected or failed

const (
	// Default value
	ProposalError_PROPOSAL_ERROR_UNSPECIFIED ProposalError = 0
	// The specified close time is too early base on network parameters
	ProposalError_PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON ProposalError = 1
	// The specified close time is too late based on network parameters
	ProposalError_PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE ProposalError = 2
	// The specified enact time is too early based on network parameters
	ProposalError_PROPOSAL_ERROR_ENACT_TIME_TOO_SOON ProposalError = 3
	// The specified enact time is too late based on network parameters
	ProposalError_PROPOSAL_ERROR_ENACT_TIME_TOO_LATE ProposalError = 4
	// The proposer for this proposal as insufficient tokens
	ProposalError_PROPOSAL_ERROR_INSUFFICIENT_TOKENS ProposalError = 5
	// The instrument quote name and base name were the same
	ProposalError_PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY ProposalError = 6
	// The proposal has no product
	ProposalError_PROPOSAL_ERROR_NO_PRODUCT ProposalError = 7
	// The specified product is not supported
	ProposalError_PROPOSAL_ERROR_UNSUPPORTED_PRODUCT ProposalError = 8
	// Invalid future maturity timestamp (expect RFC3339)
	ProposalError_PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT_TIMESTAMP ProposalError = 9
	// The product maturity is past
	ProposalError_PROPOSAL_ERROR_PRODUCT_MATURITY_IS_PASSED ProposalError = 10
	// The proposal has no trading mode
	ProposalError_PROPOSAL_ERROR_NO_TRADING_MODE ProposalError = 11
	// The proposal has an unsupported trading mode
	ProposalError_PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE ProposalError = 12
	// The proposal failed node validation
	ProposalError_PROPOSAL_ERROR_NODE_VALIDATION_FAILED ProposalError = 13
	// A field is missing in a builtin asset source
	ProposalError_PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD ProposalError = 14
	// The contract address is missing in the ERC20 asset source
	ProposalError_PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS ProposalError = 15
	// The asset identifier is invalid or does not exist on the Vega network
	ProposalError_PROPOSAL_ERROR_INVALID_ASSET ProposalError = 16
	// Proposal terms timestamps are not compatible (Validation < Closing < Enactment)
	ProposalError_PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS ProposalError = 17
	// No risk parameters were specified
	ProposalError_PROPOSAL_ERROR_NO_RISK_PARAMETERS ProposalError = 18
	// Invalid key in update network parameter proposal
	ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY ProposalError = 19
	// Invalid valid in update network parameter proposal
	ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE ProposalError = 20
	// Validation failed for network parameter proposal
	ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED ProposalError = 21
	// Opening auction duration is less than the network minimum opening auction time
	ProposalError_PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL ProposalError = 22
	// Opening auction duration is more than the network minimum opening auction time
	ProposalError_PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE ProposalError = 23
	// Market proposal is missing a liquidity commitment
	ProposalError_PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT ProposalError = 24
	// Market proposal market could not be instantiate in execution
	ProposalError_PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET ProposalError = 25
	// Market proposal market contained invalid product definition
	ProposalError_PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT ProposalError = 26
	// Market proposal is missing commitment amount
	ProposalError_PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT ProposalError = 27
	// Market proposal have invalid fee
	ProposalError_PROPOSAL_ERROR_INVALID_FEE_AMOUNT ProposalError = 28
	// Market proposal have invalid shape
	ProposalError_PROPOSAL_ERROR_INVALID_SHAPE ProposalError = 29
)

func (ProposalError) Descriptor

func (ProposalError) Enum

func (x ProposalError) Enum() *ProposalError

func (ProposalError) EnumDescriptor deprecated

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

Deprecated: Use ProposalError.Descriptor instead.

func (ProposalError) Number

func (ProposalError) String

func (x ProposalError) String() string

func (ProposalError) Type

type ProposalTerms

type ProposalTerms struct {

	// Timestamp (Unix time in seconds) when voting closes for this proposal,
	// constrained by `minCloseInSeconds` and `maxCloseInSeconds` network parameters
	ClosingTimestamp int64 `protobuf:"varint,1,opt,name=closing_timestamp,json=closingTimestamp,proto3" json:"closing_timestamp,omitempty"`
	// Timestamp (Unix time in seconds) when proposal gets enacted (if passed),
	// constrained by `minEnactInSeconds` and `maxEnactInSeconds` network parameters
	EnactmentTimestamp int64 `protobuf:"varint,2,opt,name=enactment_timestamp,json=enactmentTimestamp,proto3" json:"enactment_timestamp,omitempty"`
	// Validation timestamp (Unix time in seconds)
	ValidationTimestamp int64 `protobuf:"varint,3,opt,name=validation_timestamp,json=validationTimestamp,proto3" json:"validation_timestamp,omitempty"`
	// Changes being proposed
	//
	// Types that are assignable to Change:
	//	*ProposalTerms_UpdateMarket
	//	*ProposalTerms_NewMarket
	//	*ProposalTerms_UpdateNetworkParameter
	//	*ProposalTerms_NewAsset
	Change isProposalTerms_Change `protobuf_oneof:"change"`
	// contains filtered or unexported fields
}

Terms for a governance proposal on Vega

func (*ProposalTerms) Descriptor deprecated

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

Deprecated: Use ProposalTerms.ProtoReflect.Descriptor instead.

func (*ProposalTerms) GetChange

func (m *ProposalTerms) GetChange() isProposalTerms_Change

func (*ProposalTerms) GetClosingTimestamp

func (x *ProposalTerms) GetClosingTimestamp() int64

func (*ProposalTerms) GetEnactmentTimestamp

func (x *ProposalTerms) GetEnactmentTimestamp() int64

func (*ProposalTerms) GetNewAsset

func (x *ProposalTerms) GetNewAsset() *NewAsset

func (*ProposalTerms) GetNewMarket

func (x *ProposalTerms) GetNewMarket() *NewMarket

func (*ProposalTerms) GetUpdateMarket

func (x *ProposalTerms) GetUpdateMarket() *UpdateMarket

func (*ProposalTerms) GetUpdateNetworkParameter

func (x *ProposalTerms) GetUpdateNetworkParameter() *UpdateNetworkParameter

func (*ProposalTerms) GetValidationTimestamp

func (x *ProposalTerms) GetValidationTimestamp() int64

func (*ProposalTerms) ProtoMessage

func (*ProposalTerms) ProtoMessage()

func (*ProposalTerms) ProtoReflect

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

func (*ProposalTerms) Reset

func (x *ProposalTerms) Reset()

func (*ProposalTerms) String

func (x *ProposalTerms) String() string

func (*ProposalTerms) Validate

func (this *ProposalTerms) Validate() error

type ProposalTerms_NewAsset

type ProposalTerms_NewAsset struct {
	// Proposal change for creating new assets on Vega
	NewAsset *NewAsset `protobuf:"bytes,104,opt,name=new_asset,json=newAsset,proto3,oneof"`
}

type ProposalTerms_NewMarket

type ProposalTerms_NewMarket struct {
	// Proposal change for creating new market on Vega
	NewMarket *NewMarket `protobuf:"bytes,102,opt,name=new_market,json=newMarket,proto3,oneof"`
}

type ProposalTerms_UpdateMarket

type ProposalTerms_UpdateMarket struct {
	// Proposal change for modifying an existing market on Vega
	UpdateMarket *UpdateMarket `protobuf:"bytes,101,opt,name=update_market,json=updateMarket,proto3,oneof"`
}

type ProposalTerms_UpdateNetworkParameter

type ProposalTerms_UpdateNetworkParameter struct {
	// Proposal change for updating Vega network parameters
	UpdateNetworkParameter *UpdateNetworkParameter `protobuf:"bytes,103,opt,name=update_network_parameter,json=updateNetworkParameter,proto3,oneof"`
}

type Proposal_State

type Proposal_State int32

Proposal state transition: Open ->

  • Passed -> Enacted.
  • Passed -> Failed.
  • Declined

Rejected Proposal can enter Failed state from any other state

const (
	// Default value, always invalid
	Proposal_STATE_UNSPECIFIED Proposal_State = 0
	// Proposal enactment has failed - even though proposal has passed, its execution could not be performed
	Proposal_STATE_FAILED Proposal_State = 1
	// Proposal is open for voting
	Proposal_STATE_OPEN Proposal_State = 2
	// Proposal has gained enough support to be executed
	Proposal_STATE_PASSED Proposal_State = 3
	// Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)
	Proposal_STATE_REJECTED Proposal_State = 4
	// Proposal didn't get enough votes (either failing to gain required participation or majority level)
	Proposal_STATE_DECLINED Proposal_State = 5
	// Proposal enacted
	Proposal_STATE_ENACTED Proposal_State = 6
	// Waiting for node validation of the proposal
	Proposal_STATE_WAITING_FOR_NODE_VOTE Proposal_State = 7
)

func (Proposal_State) Descriptor

func (Proposal_State) Enum

func (x Proposal_State) Enum() *Proposal_State

func (Proposal_State) EnumDescriptor deprecated

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

Deprecated: Use Proposal_State.Descriptor instead.

func (Proposal_State) Number

func (Proposal_State) String

func (x Proposal_State) String() string

func (Proposal_State) Type

type RemoveValidator

type RemoveValidator struct {

	// The identifier of the validator
	Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A message to notify when a validator is being removed from the Vega network

func (*RemoveValidator) Descriptor deprecated

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

Deprecated: Use RemoveValidator.ProtoReflect.Descriptor instead.

func (*RemoveValidator) GetId

func (x *RemoveValidator) GetId() *Identifier

func (*RemoveValidator) ProtoMessage

func (*RemoveValidator) ProtoMessage()

func (*RemoveValidator) ProtoReflect

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

func (*RemoveValidator) Reset

func (x *RemoveValidator) Reset()

func (*RemoveValidator) String

func (x *RemoveValidator) String() string

func (*RemoveValidator) Validate

func (this *RemoveValidator) Validate() error

type RiskFactor

type RiskFactor struct {

	// Market ID that relates to this risk factor
	Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// Short Risk factor value
	Short float64 `protobuf:"fixed64,2,opt,name=short,proto3" json:"short,omitempty"`
	// Long Risk factor value
	Long float64 `protobuf:"fixed64,3,opt,name=long,proto3" json:"long,omitempty"`
	// contains filtered or unexported fields
}

Risk factors are used to calculate the current risk associated with orders trading on a given market

func (*RiskFactor) Descriptor deprecated

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

Deprecated: Use RiskFactor.ProtoReflect.Descriptor instead.

func (*RiskFactor) GetLong

func (x *RiskFactor) GetLong() float64

func (*RiskFactor) GetMarket

func (x *RiskFactor) GetMarket() string

func (*RiskFactor) GetShort

func (x *RiskFactor) GetShort() float64

func (*RiskFactor) ProtoMessage

func (*RiskFactor) ProtoMessage()

func (*RiskFactor) ProtoReflect

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

func (*RiskFactor) Reset

func (x *RiskFactor) Reset()

func (*RiskFactor) String

func (x *RiskFactor) String() string

func (*RiskFactor) Validate

func (this *RiskFactor) Validate() error

type RiskResult

type RiskResult struct {

	// Timestamp for when risk factors were generated
	UpdatedTimestamp int64 `protobuf:"varint,1,opt,name=updated_timestamp,json=updatedTimestamp,proto3" json:"updated_timestamp,omitempty"`
	// Risk factors (long and short) for each margin-able asset/currency (usually == settlement assets) in the market
	RiskFactors map[string]*RiskFactor `` /* 182-byte string literal not displayed */
	// Timestamp for when risk factors are expected to change (or empty if risk factors are continually updated)
	NextUpdateTimestamp int64 `protobuf:"varint,3,opt,name=next_update_timestamp,json=nextUpdateTimestamp,proto3" json:"next_update_timestamp,omitempty"`
	// Predicted risk factors at next change (what they would be if the change occurred now)
	PredictedNextRiskFactors map[string]*RiskFactor `` /* 225-byte string literal not displayed */
	// contains filtered or unexported fields
}

Risk results are calculated internally by Vega to attempt to maintain safe trading

func (*RiskResult) Descriptor deprecated

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

Deprecated: Use RiskResult.ProtoReflect.Descriptor instead.

func (*RiskResult) GetNextUpdateTimestamp

func (x *RiskResult) GetNextUpdateTimestamp() int64

func (*RiskResult) GetPredictedNextRiskFactors

func (x *RiskResult) GetPredictedNextRiskFactors() map[string]*RiskFactor

func (*RiskResult) GetRiskFactors

func (x *RiskResult) GetRiskFactors() map[string]*RiskFactor

func (*RiskResult) GetUpdatedTimestamp

func (x *RiskResult) GetUpdatedTimestamp() int64

func (*RiskResult) ProtoMessage

func (*RiskResult) ProtoMessage()

func (*RiskResult) ProtoReflect

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

func (*RiskResult) Reset

func (x *RiskResult) Reset()

func (*RiskResult) String

func (x *RiskResult) String() string

func (*RiskResult) Validate

func (this *RiskResult) Validate() error

type ScalingFactors

type ScalingFactors struct {

	// Search level
	SearchLevel float64 `protobuf:"fixed64,1,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"`
	// Initial margin level
	InitialMargin float64 `protobuf:"fixed64,2,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"`
	// Collateral release level
	CollateralRelease float64 `protobuf:"fixed64,3,opt,name=collateral_release,json=collateralRelease,proto3" json:"collateral_release,omitempty"`
	// contains filtered or unexported fields
}

Scaling Factors (for use in margin calculation)

func (*ScalingFactors) Descriptor deprecated

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

Deprecated: Use ScalingFactors.ProtoReflect.Descriptor instead.

func (*ScalingFactors) GetCollateralRelease

func (x *ScalingFactors) GetCollateralRelease() float64

func (*ScalingFactors) GetInitialMargin

func (x *ScalingFactors) GetInitialMargin() float64

func (*ScalingFactors) GetSearchLevel

func (x *ScalingFactors) GetSearchLevel() float64

func (*ScalingFactors) ProtoMessage

func (*ScalingFactors) ProtoMessage()

func (*ScalingFactors) ProtoReflect

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

func (*ScalingFactors) Reset

func (x *ScalingFactors) Reset()

func (*ScalingFactors) String

func (x *ScalingFactors) String() string

func (*ScalingFactors) Validate

func (this *ScalingFactors) Validate() error

type SettleDistressed

type SettleDistressed struct {

	// Market identifier for the event
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier (public key) for the event
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Margin value as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Margin uint64 `protobuf:"varint,3,opt,name=margin,proto3" json:"margin,omitempty"`
	// Price as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

A settle distressed event contains information on distressed trading parties who are closed out

func (*SettleDistressed) Descriptor deprecated

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

Deprecated: Use SettleDistressed.ProtoReflect.Descriptor instead.

func (*SettleDistressed) GetMargin

func (x *SettleDistressed) GetMargin() uint64

func (*SettleDistressed) GetMarketId

func (x *SettleDistressed) GetMarketId() string

func (*SettleDistressed) GetPartyId

func (x *SettleDistressed) GetPartyId() string

func (*SettleDistressed) GetPrice

func (x *SettleDistressed) GetPrice() uint64

func (*SettleDistressed) ProtoMessage

func (*SettleDistressed) ProtoMessage()

func (*SettleDistressed) ProtoReflect

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

func (*SettleDistressed) Reset

func (x *SettleDistressed) Reset()

func (*SettleDistressed) String

func (x *SettleDistressed) String() string

func (*SettleDistressed) Validate

func (this *SettleDistressed) Validate() error

type SettlePosition

type SettlePosition struct {

	// Market identifier for the event
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party identifier (public key) for the event
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Price of settlement as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	// A collection of 1 or more trade settlements
	TradeSettlements []*TradeSettlement `protobuf:"bytes,4,rep,name=trade_settlements,json=tradeSettlements,proto3" json:"trade_settlements,omitempty"`
	// contains filtered or unexported fields
}

A settle position event contains position settlement information for a party

func (*SettlePosition) Descriptor deprecated

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

Deprecated: Use SettlePosition.ProtoReflect.Descriptor instead.

func (*SettlePosition) GetMarketId

func (x *SettlePosition) GetMarketId() string

func (*SettlePosition) GetPartyId

func (x *SettlePosition) GetPartyId() string

func (*SettlePosition) GetPrice

func (x *SettlePosition) GetPrice() uint64

func (*SettlePosition) GetTradeSettlements

func (x *SettlePosition) GetTradeSettlements() []*TradeSettlement

func (*SettlePosition) ProtoMessage

func (*SettlePosition) ProtoMessage()

func (*SettlePosition) ProtoReflect

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

func (*SettlePosition) Reset

func (x *SettlePosition) Reset()

func (*SettlePosition) String

func (x *SettlePosition) String() string

func (*SettlePosition) Validate

func (this *SettlePosition) Validate() error

type Side

type Side int32

A side relates to the direction of an order, to Buy, or Sell

const (
	// Default value, always invalid
	Side_SIDE_UNSPECIFIED Side = 0
	// Buy order
	Side_SIDE_BUY Side = 1
	// Sell order
	Side_SIDE_SELL Side = 2
)

func (Side) Descriptor

func (Side) Descriptor() protoreflect.EnumDescriptor

func (Side) Enum

func (x Side) Enum() *Side

func (Side) EnumDescriptor deprecated

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

Deprecated: Use Side.Descriptor instead.

func (Side) Number

func (x Side) Number() protoreflect.EnumNumber

func (Side) String

func (x Side) String() string

func (Side) Type

func (Side) Type() protoreflect.EnumType

type Signature

type Signature struct {

	// The bytes of the signature
	Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
	// The algorithm used to create the signature
	Algo string `protobuf:"bytes,2,opt,name=algo,proto3" json:"algo,omitempty"`
	// The version of the signature used to create the signature
	Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

A signature to be authenticate a transaction and to be verified by the vega network

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetAlgo

func (x *Signature) GetAlgo() string

func (*Signature) GetSig

func (x *Signature) GetSig() []byte

func (*Signature) GetVersion

func (x *Signature) GetVersion() uint64

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

func (*Signature) Validate

func (this *Signature) Validate() error

type SignedBundle

type SignedBundle struct {

	// Transaction payload (proto marshalled)
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// The signature authenticating the transaction
	Sig *Signature `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	// contains filtered or unexported fields
}

A bundle of a transaction and it's signature

func (*SignedBundle) Descriptor deprecated

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

Deprecated: Use SignedBundle.ProtoReflect.Descriptor instead.

func (*SignedBundle) GetSig

func (x *SignedBundle) GetSig() *Signature

func (*SignedBundle) GetTx

func (x *SignedBundle) GetTx() []byte

func (*SignedBundle) ProtoMessage

func (*SignedBundle) ProtoMessage()

func (*SignedBundle) ProtoReflect

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

func (*SignedBundle) Reset

func (x *SignedBundle) Reset()

func (*SignedBundle) String

func (x *SignedBundle) String() string

func (*SignedBundle) Validate

func (this *SignedBundle) Validate() error

type SimpleModelParams

type SimpleModelParams struct {

	// Pre-defined risk factor value for long
	FactorLong float64 `protobuf:"fixed64,1,opt,name=factor_long,json=factorLong,proto3" json:"factor_long,omitempty"`
	// Pre-defined risk factor value for short
	FactorShort float64 `protobuf:"fixed64,2,opt,name=factor_short,json=factorShort,proto3" json:"factor_short,omitempty"`
	// Pre-defined maximum price move up that the model considers as valid
	MaxMoveUp float64 `protobuf:"fixed64,3,opt,name=max_move_up,json=maxMoveUp,proto3" json:"max_move_up,omitempty"`
	// Pre-defined minimum price move down that the model considers as valid
	MinMoveDown float64 `protobuf:"fixed64,4,opt,name=min_move_down,json=minMoveDown,proto3" json:"min_move_down,omitempty"`
	// Pre-defined constant probability of trading
	ProbabilityOfTrading float64 `protobuf:"fixed64,5,opt,name=probability_of_trading,json=probabilityOfTrading,proto3" json:"probability_of_trading,omitempty"`
	// contains filtered or unexported fields
}

Risk model parameters for simple modelling

func (*SimpleModelParams) Descriptor deprecated

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

Deprecated: Use SimpleModelParams.ProtoReflect.Descriptor instead.

func (*SimpleModelParams) GetFactorLong

func (x *SimpleModelParams) GetFactorLong() float64

func (*SimpleModelParams) GetFactorShort

func (x *SimpleModelParams) GetFactorShort() float64

func (*SimpleModelParams) GetMaxMoveUp

func (x *SimpleModelParams) GetMaxMoveUp() float64

func (*SimpleModelParams) GetMinMoveDown

func (x *SimpleModelParams) GetMinMoveDown() float64

func (*SimpleModelParams) GetProbabilityOfTrading

func (x *SimpleModelParams) GetProbabilityOfTrading() float64

func (*SimpleModelParams) ProtoMessage

func (*SimpleModelParams) ProtoMessage()

func (*SimpleModelParams) ProtoReflect

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

func (*SimpleModelParams) Reset

func (x *SimpleModelParams) Reset()

func (*SimpleModelParams) String

func (x *SimpleModelParams) String() string

func (*SimpleModelParams) Validate

func (this *SimpleModelParams) Validate() error

type SimpleRiskModel

type SimpleRiskModel struct {

	// Risk model params for simple modelling
	Params *SimpleModelParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

Risk model for simple modelling

func (*SimpleRiskModel) Descriptor deprecated

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

Deprecated: Use SimpleRiskModel.ProtoReflect.Descriptor instead.

func (*SimpleRiskModel) GetParams

func (x *SimpleRiskModel) GetParams() *SimpleModelParams

func (*SimpleRiskModel) ProtoMessage

func (*SimpleRiskModel) ProtoMessage()

func (*SimpleRiskModel) ProtoReflect

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

func (*SimpleRiskModel) Reset

func (x *SimpleRiskModel) Reset()

func (*SimpleRiskModel) String

func (x *SimpleRiskModel) String() string

func (*SimpleRiskModel) Validate

func (this *SimpleRiskModel) Validate() error

type Statistics

type Statistics struct {

	// Current block height as reported by the Vega blockchain
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Current backlog length (number of transactions) that are waiting to be included in a block
	BacklogLength uint64 `protobuf:"varint,2,opt,name=backlog_length,json=backlogLength,proto3" json:"backlog_length,omitempty"`
	// Total number of connected peers to this node
	TotalPeers uint64 `protobuf:"varint,3,opt,name=total_peers,json=totalPeers,proto3" json:"total_peers,omitempty"`
	// Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
	GenesisTime string `protobuf:"bytes,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
	CurrentTime string `protobuf:"bytes,5,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"`
	// Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
	VegaTime string `protobuf:"bytes,6,opt,name=vega_time,json=vegaTime,proto3" json:"vega_time,omitempty"`
	// Status of the connection to the Vega blockchain
	// - See [`ChainStatus`](#vega.ChainStatus)
	Status ChainStatus `protobuf:"varint,7,opt,name=status,proto3,enum=vega.ChainStatus" json:"status,omitempty"`
	// Transactions per block
	TxPerBlock uint64 `protobuf:"varint,8,opt,name=tx_per_block,json=txPerBlock,proto3" json:"tx_per_block,omitempty"`
	// Average transaction size in bytes
	AverageTxBytes uint64 `protobuf:"varint,9,opt,name=average_tx_bytes,json=averageTxBytes,proto3" json:"average_tx_bytes,omitempty"`
	// Average orders per block
	AverageOrdersPerBlock uint64 `` /* 130-byte string literal not displayed */
	// Trades emitted per second
	TradesPerSecond uint64 `protobuf:"varint,11,opt,name=trades_per_second,json=tradesPerSecond,proto3" json:"trades_per_second,omitempty"`
	// Orders processed per second
	OrdersPerSecond uint64 `protobuf:"varint,12,opt,name=orders_per_second,json=ordersPerSecond,proto3" json:"orders_per_second,omitempty"`
	// Total markets on this Vega network
	TotalMarkets uint64 `protobuf:"varint,13,opt,name=total_markets,json=totalMarkets,proto3" json:"total_markets,omitempty"`
	// Total number of order amendments since genesis (on all markets)
	TotalAmendOrder uint64 `protobuf:"varint,16,opt,name=total_amend_order,json=totalAmendOrder,proto3" json:"total_amend_order,omitempty"`
	// Total number of order cancellations since genesis (on all markets)
	TotalCancelOrder uint64 `protobuf:"varint,17,opt,name=total_cancel_order,json=totalCancelOrder,proto3" json:"total_cancel_order,omitempty"`
	// Total number of order submissions since genesis (on all markets)
	TotalCreateOrder uint64 `protobuf:"varint,18,opt,name=total_create_order,json=totalCreateOrder,proto3" json:"total_create_order,omitempty"`
	// Total number of orders processed since genesis (on all markets)
	TotalOrders uint64 `protobuf:"varint,19,opt,name=total_orders,json=totalOrders,proto3" json:"total_orders,omitempty"`
	// Total number of trades emitted since genesis (on all markets)
	TotalTrades uint64 `protobuf:"varint,20,opt,name=total_trades,json=totalTrades,proto3" json:"total_trades,omitempty"`
	// Current number of stream subscribers to order data
	OrderSubscriptions uint32 `protobuf:"varint,21,opt,name=order_subscriptions,json=orderSubscriptions,proto3" json:"order_subscriptions,omitempty"`
	// Current number of stream subscribers to trade data
	TradeSubscriptions uint32 `protobuf:"varint,22,opt,name=trade_subscriptions,json=tradeSubscriptions,proto3" json:"trade_subscriptions,omitempty"`
	// Current number of stream subscribers to candle-stick data
	CandleSubscriptions uint32 `protobuf:"varint,23,opt,name=candle_subscriptions,json=candleSubscriptions,proto3" json:"candle_subscriptions,omitempty"`
	// Current number of stream subscribers to market depth data
	MarketDepthSubscriptions uint32 `` /* 137-byte string literal not displayed */
	// Current number of stream subscribers to positions data
	PositionsSubscriptions uint32 `` /* 129-byte string literal not displayed */
	// Current number of stream subscribers to account data
	AccountSubscriptions uint32 `protobuf:"varint,26,opt,name=account_subscriptions,json=accountSubscriptions,proto3" json:"account_subscriptions,omitempty"`
	// Current number of stream subscribers to market data
	MarketDataSubscriptions uint32 `` /* 134-byte string literal not displayed */
	// The version hash of the Vega node software
	AppVersionHash string `protobuf:"bytes,28,opt,name=app_version_hash,json=appVersionHash,proto3" json:"app_version_hash,omitempty"`
	// The version of the Vega node software
	AppVersion string `protobuf:"bytes,29,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	// The version of the underlying Vega blockchain
	ChainVersion string `protobuf:"bytes,30,opt,name=chain_version,json=chainVersion,proto3" json:"chain_version,omitempty"`
	// Current block duration, in nanoseconds
	BlockDuration uint64 `protobuf:"varint,31,opt,name=block_duration,json=blockDuration,proto3" json:"block_duration,omitempty"`
	// Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
	Uptime string `protobuf:"bytes,32,opt,name=uptime,proto3" json:"uptime,omitempty"`
	// Unique identifier for the underlying Vega blockchain
	ChainId string `protobuf:"bytes,33,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Current number of stream subscribers to market depth update data
	MarketDepthUpdatesSubscriptions uint32 `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

Vega domain specific statistics as reported by the node the caller is connected to

func (*Statistics) Descriptor deprecated

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

Deprecated: Use Statistics.ProtoReflect.Descriptor instead.

func (*Statistics) GetAccountSubscriptions

func (x *Statistics) GetAccountSubscriptions() uint32

func (*Statistics) GetAppVersion

func (x *Statistics) GetAppVersion() string

func (*Statistics) GetAppVersionHash

func (x *Statistics) GetAppVersionHash() string

func (*Statistics) GetAverageOrdersPerBlock

func (x *Statistics) GetAverageOrdersPerBlock() uint64

func (*Statistics) GetAverageTxBytes

func (x *Statistics) GetAverageTxBytes() uint64

func (*Statistics) GetBacklogLength

func (x *Statistics) GetBacklogLength() uint64

func (*Statistics) GetBlockDuration

func (x *Statistics) GetBlockDuration() uint64

func (*Statistics) GetBlockHeight

func (x *Statistics) GetBlockHeight() uint64

func (*Statistics) GetCandleSubscriptions

func (x *Statistics) GetCandleSubscriptions() uint32

func (*Statistics) GetChainId

func (x *Statistics) GetChainId() string

func (*Statistics) GetChainVersion

func (x *Statistics) GetChainVersion() string

func (*Statistics) GetCurrentTime

func (x *Statistics) GetCurrentTime() string

func (*Statistics) GetGenesisTime

func (x *Statistics) GetGenesisTime() string

func (*Statistics) GetMarketDataSubscriptions

func (x *Statistics) GetMarketDataSubscriptions() uint32

func (*Statistics) GetMarketDepthSubscriptions

func (x *Statistics) GetMarketDepthSubscriptions() uint32

func (*Statistics) GetMarketDepthUpdatesSubscriptions

func (x *Statistics) GetMarketDepthUpdatesSubscriptions() uint32

func (*Statistics) GetOrderSubscriptions

func (x *Statistics) GetOrderSubscriptions() uint32

func (*Statistics) GetOrdersPerSecond

func (x *Statistics) GetOrdersPerSecond() uint64

func (*Statistics) GetPositionsSubscriptions

func (x *Statistics) GetPositionsSubscriptions() uint32

func (*Statistics) GetStatus

func (x *Statistics) GetStatus() ChainStatus

func (*Statistics) GetTotalAmendOrder

func (x *Statistics) GetTotalAmendOrder() uint64

func (*Statistics) GetTotalCancelOrder

func (x *Statistics) GetTotalCancelOrder() uint64

func (*Statistics) GetTotalCreateOrder

func (x *Statistics) GetTotalCreateOrder() uint64

func (*Statistics) GetTotalMarkets

func (x *Statistics) GetTotalMarkets() uint64

func (*Statistics) GetTotalOrders

func (x *Statistics) GetTotalOrders() uint64

func (*Statistics) GetTotalPeers

func (x *Statistics) GetTotalPeers() uint64

func (*Statistics) GetTotalTrades

func (x *Statistics) GetTotalTrades() uint64

func (*Statistics) GetTradeSubscriptions

func (x *Statistics) GetTradeSubscriptions() uint32

func (*Statistics) GetTradesPerSecond

func (x *Statistics) GetTradesPerSecond() uint64

func (*Statistics) GetTxPerBlock

func (x *Statistics) GetTxPerBlock() uint64

func (*Statistics) GetUptime

func (x *Statistics) GetUptime() string

func (*Statistics) GetVegaTime

func (x *Statistics) GetVegaTime() string

func (*Statistics) ProtoMessage

func (*Statistics) ProtoMessage()

func (*Statistics) ProtoReflect

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

func (*Statistics) Reset

func (x *Statistics) Reset()

func (*Statistics) String

func (x *Statistics) String() string

func (*Statistics) Validate

func (this *Statistics) Validate() error

type TargetStakeParameters

type TargetStakeParameters struct {

	// Specifies length of time window expressed in seconds for target stake calculation
	TimeWindow int64 `protobuf:"varint,1,opt,name=time_window,json=timeWindow,proto3" json:"time_window,omitempty"`
	// Specifies scaling factors used in target stake calculation
	ScalingFactor float64 `protobuf:"fixed64,2,opt,name=scaling_factor,json=scalingFactor,proto3" json:"scaling_factor,omitempty"`
	// contains filtered or unexported fields
}

TargetStakeParameters contains parameters used in target stake calculation

func (*TargetStakeParameters) Descriptor deprecated

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

Deprecated: Use TargetStakeParameters.ProtoReflect.Descriptor instead.

func (*TargetStakeParameters) GetScalingFactor

func (x *TargetStakeParameters) GetScalingFactor() float64

func (*TargetStakeParameters) GetTimeWindow

func (x *TargetStakeParameters) GetTimeWindow() int64

func (*TargetStakeParameters) ProtoMessage

func (*TargetStakeParameters) ProtoMessage()

func (*TargetStakeParameters) ProtoReflect

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

func (*TargetStakeParameters) Reset

func (x *TargetStakeParameters) Reset()

func (*TargetStakeParameters) String

func (x *TargetStakeParameters) String() string

func (*TargetStakeParameters) Validate

func (this *TargetStakeParameters) Validate() error

type TimeUpdate

type TimeUpdate struct {

	// Timestamp containing latest update from Vega blockchain aka Vega-time
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

A time update event contains the latest time update from Vega blockchain

func (*TimeUpdate) Descriptor deprecated

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

Deprecated: Use TimeUpdate.ProtoReflect.Descriptor instead.

func (*TimeUpdate) GetTimestamp

func (x *TimeUpdate) GetTimestamp() int64

func (*TimeUpdate) ProtoMessage

func (*TimeUpdate) ProtoMessage()

func (*TimeUpdate) ProtoReflect

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

func (*TimeUpdate) Reset

func (x *TimeUpdate) Reset()

func (*TimeUpdate) String

func (x *TimeUpdate) String() string

func (*TimeUpdate) Validate

func (this *TimeUpdate) Validate() error

type Timestamp

type Timestamp struct {

	// Timestamp value
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A timestamp in nanoseconds since epoch See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`

func (*Timestamp) Descriptor deprecated

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetValue

func (x *Timestamp) GetValue() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

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

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

func (*Timestamp) Validate

func (this *Timestamp) Validate() error

type TradableInstrument

type TradableInstrument struct {

	// Instrument details
	Instrument *Instrument `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// Margin calculator for the instrument
	MarginCalculator *MarginCalculator `protobuf:"bytes,2,opt,name=margin_calculator,json=marginCalculator,proto3" json:"margin_calculator,omitempty"`
	// Risk model for use by the instrument
	//
	// Types that are assignable to RiskModel:
	//	*TradableInstrument_LogNormalRiskModel
	//	*TradableInstrument_SimpleRiskModel
	RiskModel isTradableInstrument_RiskModel `protobuf_oneof:"risk_model"`
	// contains filtered or unexported fields
}

Tradable Instrument definition

func (*TradableInstrument) Descriptor deprecated

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

Deprecated: Use TradableInstrument.ProtoReflect.Descriptor instead.

func (*TradableInstrument) GetInstrument

func (x *TradableInstrument) GetInstrument() *Instrument

func (*TradableInstrument) GetLogNormalRiskModel

func (x *TradableInstrument) GetLogNormalRiskModel() *LogNormalRiskModel

func (*TradableInstrument) GetMarginCalculator

func (x *TradableInstrument) GetMarginCalculator() *MarginCalculator

func (*TradableInstrument) GetRiskModel

func (m *TradableInstrument) GetRiskModel() isTradableInstrument_RiskModel

func (*TradableInstrument) GetSimpleRiskModel

func (x *TradableInstrument) GetSimpleRiskModel() *SimpleRiskModel

func (*TradableInstrument) ProtoMessage

func (*TradableInstrument) ProtoMessage()

func (*TradableInstrument) ProtoReflect

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

func (*TradableInstrument) Reset

func (x *TradableInstrument) Reset()

func (*TradableInstrument) String

func (x *TradableInstrument) String() string

func (*TradableInstrument) Validate

func (this *TradableInstrument) Validate() error

type TradableInstrument_LogNormalRiskModel

type TradableInstrument_LogNormalRiskModel struct {
	// Log normal
	LogNormalRiskModel *LogNormalRiskModel `protobuf:"bytes,100,opt,name=log_normal_risk_model,json=logNormalRiskModel,proto3,oneof"`
}

type TradableInstrument_SimpleRiskModel

type TradableInstrument_SimpleRiskModel struct {
	// Simple
	SimpleRiskModel *SimpleRiskModel `protobuf:"bytes,101,opt,name=simple_risk_model,json=simpleRiskModel,proto3,oneof"`
}

type Trade

type Trade struct {

	// Unique identifier for the trade (generated by Vega)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Market identifier (the market that the trade occurred on)
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Price for the trade, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	// Size filled for the trade
	Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	// Unique party identifier for the buyer
	Buyer string `protobuf:"bytes,5,opt,name=buyer,proto3" json:"buyer,omitempty"`
	// Unique party identifier for the seller
	Seller string `protobuf:"bytes,6,opt,name=seller,proto3" json:"seller,omitempty"`
	// Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL - See [`Side`](#vega.Side)
	Aggressor Side `protobuf:"varint,7,opt,name=aggressor,proto3,enum=vega.Side" json:"aggressor,omitempty"`
	// Identifier of the order from the buy side
	BuyOrder string `protobuf:"bytes,8,opt,name=buy_order,json=buyOrder,proto3" json:"buy_order,omitempty"`
	// Identifier of the order from the sell side
	SellOrder string `protobuf:"bytes,9,opt,name=sell_order,json=sellOrder,proto3" json:"sell_order,omitempty"`
	// Timestamp for when the trade occurred, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	Timestamp int64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Type for the trade - See [`Trade.Type`](#vega.Trade.Type)
	Type Trade_Type `protobuf:"varint,11,opt,name=type,proto3,enum=vega.Trade_Type" json:"type,omitempty"`
	// Fee amount charged to the buyer party for the trade
	BuyerFee *Fee `protobuf:"bytes,12,opt,name=buyer_fee,json=buyerFee,proto3" json:"buyer_fee,omitempty"`
	// Fee amount charged to the seller party for the trade
	SellerFee *Fee `protobuf:"bytes,13,opt,name=seller_fee,json=sellerFee,proto3" json:"seller_fee,omitempty"`
	// Auction batch number that the buy side order was placed in
	BuyerAuctionBatch uint64 `protobuf:"varint,14,opt,name=buyer_auction_batch,json=buyerAuctionBatch,proto3" json:"buyer_auction_batch,omitempty"`
	// Auction batch number that the sell side order was placed in
	SellerAuctionBatch uint64 `protobuf:"varint,15,opt,name=seller_auction_batch,json=sellerAuctionBatch,proto3" json:"seller_auction_batch,omitempty"`
	// contains filtered or unexported fields
}

A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega

func (*Trade) Descriptor deprecated

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

Deprecated: Use Trade.ProtoReflect.Descriptor instead.

func (*Trade) GetAggressor

func (x *Trade) GetAggressor() Side

func (*Trade) GetBuyOrder

func (x *Trade) GetBuyOrder() string

func (*Trade) GetBuyer

func (x *Trade) GetBuyer() string

func (*Trade) GetBuyerAuctionBatch

func (x *Trade) GetBuyerAuctionBatch() uint64

func (*Trade) GetBuyerFee

func (x *Trade) GetBuyerFee() *Fee

func (*Trade) GetId

func (x *Trade) GetId() string

func (*Trade) GetMarketId

func (x *Trade) GetMarketId() string

func (*Trade) GetPrice

func (x *Trade) GetPrice() uint64

func (*Trade) GetSellOrder

func (x *Trade) GetSellOrder() string

func (*Trade) GetSeller

func (x *Trade) GetSeller() string

func (*Trade) GetSellerAuctionBatch

func (x *Trade) GetSellerAuctionBatch() uint64

func (*Trade) GetSellerFee

func (x *Trade) GetSellerFee() *Fee

func (*Trade) GetSize

func (x *Trade) GetSize() uint64

func (*Trade) GetTimestamp

func (x *Trade) GetTimestamp() int64

func (*Trade) GetType

func (x *Trade) GetType() Trade_Type

func (*Trade) ProtoMessage

func (*Trade) ProtoMessage()

func (*Trade) ProtoReflect

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

func (*Trade) Reset

func (x *Trade) Reset()

func (*Trade) String

func (x *Trade) String() string

func (*Trade) Validate

func (this *Trade) Validate() error

type TradeSet

type TradeSet struct {

	// A set of one or more trades
	Trades []*Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeSet) Descriptor deprecated

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

Deprecated: Use TradeSet.ProtoReflect.Descriptor instead.

func (*TradeSet) GetTrades

func (x *TradeSet) GetTrades() []*Trade

func (*TradeSet) ProtoMessage

func (*TradeSet) ProtoMessage()

func (*TradeSet) ProtoReflect

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

func (*TradeSet) Reset

func (x *TradeSet) Reset()

func (*TradeSet) String

func (x *TradeSet) String() string

func (*TradeSet) Validate

func (this *TradeSet) Validate() error

type TradeSettlement

type TradeSettlement struct {

	// Size of trade settlement
	Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// Price of settlement as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	Price uint64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

A trade settlement is part of the settle position event

func (*TradeSettlement) Descriptor deprecated

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

Deprecated: Use TradeSettlement.ProtoReflect.Descriptor instead.

func (*TradeSettlement) GetPrice

func (x *TradeSettlement) GetPrice() uint64

func (*TradeSettlement) GetSize

func (x *TradeSettlement) GetSize() int64

func (*TradeSettlement) ProtoMessage

func (*TradeSettlement) ProtoMessage()

func (*TradeSettlement) ProtoReflect

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

func (*TradeSettlement) Reset

func (x *TradeSettlement) Reset()

func (*TradeSettlement) String

func (x *TradeSettlement) String() string

func (*TradeSettlement) Validate

func (this *TradeSettlement) Validate() error

type Trade_Type

type Trade_Type int32

Type values for a trade

const (
	// Default value, always invalid
	Trade_TYPE_UNSPECIFIED Trade_Type = 0
	// Normal trading between two parties
	Trade_TYPE_DEFAULT Trade_Type = 1
	// Trading initiated by the network with another party on the book,
	// which helps to zero-out the positions of one or more distressed parties
	Trade_TYPE_NETWORK_CLOSE_OUT_GOOD Trade_Type = 2
	// Trading initiated by the network with another party off the book,
	// with a distressed party in order to zero-out the position of the party
	Trade_TYPE_NETWORK_CLOSE_OUT_BAD Trade_Type = 3
)

func (Trade_Type) Descriptor

func (Trade_Type) Descriptor() protoreflect.EnumDescriptor

func (Trade_Type) Enum

func (x Trade_Type) Enum() *Trade_Type

func (Trade_Type) EnumDescriptor deprecated

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

Deprecated: Use Trade_Type.Descriptor instead.

func (Trade_Type) Number

func (x Trade_Type) Number() protoreflect.EnumNumber

func (Trade_Type) String

func (x Trade_Type) String() string

func (Trade_Type) Type

type Transaction

type Transaction struct {

	// One of the set of Vega commands (proto marshalled)
	InputData []byte `protobuf:"bytes,1,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"`
	// A random number used to provide uniqueness and prevent against replay attack
	Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The block height associated to the transaction, this should always be current block height
	// of the node at the time of sending the Tx and block height is used as a mechanism
	// for replay protection
	BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// The sender of the transaction,
	// any of the following would be valid:
	//
	// Types that are assignable to From:
	//	*Transaction_Address
	//	*Transaction_PubKey
	From isTransaction_From `protobuf_oneof:"from"`
	// contains filtered or unexported fields
}

Represents a transaction to be sent to Vega

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAddress

func (x *Transaction) GetAddress() []byte

func (*Transaction) GetBlockHeight

func (x *Transaction) GetBlockHeight() uint64

func (*Transaction) GetFrom

func (m *Transaction) GetFrom() isTransaction_From

func (*Transaction) GetInputData

func (x *Transaction) GetInputData() []byte

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() uint64

func (*Transaction) GetPubKey

func (x *Transaction) GetPubKey() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

func (*Transaction) Validate

func (this *Transaction) Validate() error

type Transaction_Address

type Transaction_Address struct {
	// The address of the sender
	Address []byte `protobuf:"bytes,1001,opt,name=address,proto3,oneof"`
}

type Transaction_PubKey

type Transaction_PubKey struct {
	// The public key of the sender
	PubKey []byte `protobuf:"bytes,1002,opt,name=pub_key,json=pubKey,proto3,oneof"`
}

type Transfer

type Transfer struct {

	// Party identifier for the owner of the transfer
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// A financial amount (of an asset) to transfer
	Amount *FinancialAmount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// The type of transfer, gives the reason for the transfer
	Type TransferType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"`
	// A minimum amount
	MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"`
	// contains filtered or unexported fields
}

Represents a financial transfer within Vega

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() *FinancialAmount

func (*Transfer) GetMinAmount

func (x *Transfer) GetMinAmount() uint64

func (*Transfer) GetOwner

func (x *Transfer) GetOwner() string

func (*Transfer) GetType

func (x *Transfer) GetType() TransferType

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

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

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

func (*Transfer) Validate

func (this *Transfer) Validate() error

type TransferBalance

type TransferBalance struct {

	// The account relating to the transfer
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// The balance relating to the transfer
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

Represents the balance for an account during a transfer

func (*TransferBalance) Descriptor deprecated

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

Deprecated: Use TransferBalance.ProtoReflect.Descriptor instead.

func (*TransferBalance) GetAccount

func (x *TransferBalance) GetAccount() *Account

func (*TransferBalance) GetBalance

func (x *TransferBalance) GetBalance() uint64

func (*TransferBalance) ProtoMessage

func (*TransferBalance) ProtoMessage()

func (*TransferBalance) ProtoReflect

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

func (*TransferBalance) Reset

func (x *TransferBalance) Reset()

func (*TransferBalance) String

func (x *TransferBalance) String() string

func (*TransferBalance) Validate

func (this *TransferBalance) Validate() error

type TransferRequest

type TransferRequest struct {

	// One or more accounts to transfer from
	FromAccount []*Account `protobuf:"bytes,1,rep,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"`
	// One or more accounts to transfer to
	ToAccount []*Account `protobuf:"bytes,2,rep,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"`
	// An amount to transfer for the asset
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// A minimum amount
	MinAmount uint64 `protobuf:"varint,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"`
	// Asset identifier
	Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"`
	// A reference for auditing purposes
	Reference string `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

Represents a request to transfer from one set of accounts to another

func (*TransferRequest) Descriptor deprecated

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

Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.

func (*TransferRequest) GetAmount

func (x *TransferRequest) GetAmount() uint64

func (*TransferRequest) GetAsset

func (x *TransferRequest) GetAsset() string

func (*TransferRequest) GetFromAccount

func (x *TransferRequest) GetFromAccount() []*Account

func (*TransferRequest) GetMinAmount

func (x *TransferRequest) GetMinAmount() uint64

func (*TransferRequest) GetReference

func (x *TransferRequest) GetReference() string

func (*TransferRequest) GetToAccount

func (x *TransferRequest) GetToAccount() []*Account

func (*TransferRequest) ProtoMessage

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) ProtoReflect

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

func (*TransferRequest) Reset

func (x *TransferRequest) Reset()

func (*TransferRequest) String

func (x *TransferRequest) String() string

func (*TransferRequest) Validate

func (this *TransferRequest) Validate() error

type TransferResponse

type TransferResponse struct {

	// One or more ledger entries representing the transfers
	Transfers []*LedgerEntry `protobuf:"bytes,1,rep,name=transfers,proto3" json:"transfers,omitempty"`
	// One or more account balances
	Balances []*TransferBalance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"`
	// contains filtered or unexported fields
}

Represents the response from a transfer

func (*TransferResponse) Descriptor deprecated

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

Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead.

func (*TransferResponse) GetBalances

func (x *TransferResponse) GetBalances() []*TransferBalance

func (*TransferResponse) GetTransfers

func (x *TransferResponse) GetTransfers() []*LedgerEntry

func (*TransferResponse) ProtoMessage

func (*TransferResponse) ProtoMessage()

func (*TransferResponse) ProtoReflect

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

func (*TransferResponse) Reset

func (x *TransferResponse) Reset()

func (*TransferResponse) String

func (x *TransferResponse) String() string

func (*TransferResponse) Validate

func (this *TransferResponse) Validate() error

type TransferResponses

type TransferResponses struct {

	// One or more entries containing internal transfer information
	Responses []*TransferResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

A transfer responses event contains a collection of transfer information

func (*TransferResponses) Descriptor deprecated

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

Deprecated: Use TransferResponses.ProtoReflect.Descriptor instead.

func (*TransferResponses) GetResponses

func (x *TransferResponses) GetResponses() []*TransferResponse

func (*TransferResponses) ProtoMessage

func (*TransferResponses) ProtoMessage()

func (*TransferResponses) ProtoReflect

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

func (*TransferResponses) Reset

func (x *TransferResponses) Reset()

func (*TransferResponses) String

func (x *TransferResponses) String() string

func (*TransferResponses) Validate

func (this *TransferResponses) Validate() error

type TransferType

type TransferType int32

Transfers can occur between parties on Vega, these are the types that indicate why a transfer took place

const (
	// Default value, always invalid
	TransferType_TRANSFER_TYPE_UNSPECIFIED TransferType = 0
	// Loss
	TransferType_TRANSFER_TYPE_LOSS TransferType = 1
	// Win
	TransferType_TRANSFER_TYPE_WIN TransferType = 2
	// Close
	TransferType_TRANSFER_TYPE_CLOSE TransferType = 3
	// Mark to market loss
	TransferType_TRANSFER_TYPE_MTM_LOSS TransferType = 4
	// Mark to market win
	TransferType_TRANSFER_TYPE_MTM_WIN TransferType = 5
	// Margin too low
	TransferType_TRANSFER_TYPE_MARGIN_LOW TransferType = 6
	// Margin too high
	TransferType_TRANSFER_TYPE_MARGIN_HIGH TransferType = 7
	// Margin was confiscated
	TransferType_TRANSFER_TYPE_MARGIN_CONFISCATED TransferType = 8
	// Pay maker fee
	TransferType_TRANSFER_TYPE_MAKER_FEE_PAY TransferType = 9
	// Receive maker fee
	TransferType_TRANSFER_TYPE_MAKER_FEE_RECEIVE TransferType = 10
	// Pay infrastructure fee
	TransferType_TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY TransferType = 11
	// Receive infrastructure fee
	TransferType_TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE TransferType = 12
	// Pay liquidity fee
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_PAY TransferType = 13
	// Receive liquidity fee
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE TransferType = 14
	// Bond too low
	TransferType_TRANSFER_TYPE_BOND_LOW TransferType = 15
	// Bond too high
	TransferType_TRANSFER_TYPE_BOND_HIGH TransferType = 16
	// Lock amount for withdraw
	TransferType_TRANSFER_TYPE_WITHDRAW_LOCK TransferType = 17
	// Actual withdraw from system
	TransferType_TRANSFER_TYPE_WITHDRAW TransferType = 18
	// Deposit funds
	TransferType_TRANSFER_TYPE_DEPOSIT TransferType = 19
	// Bond slashing
	TransferType_TRANSFER_TYPE_BOND_SLASHING TransferType = 20
)

func (TransferType) Descriptor

func (TransferType) Enum

func (x TransferType) Enum() *TransferType

func (TransferType) EnumDescriptor deprecated

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

Deprecated: Use TransferType.Descriptor instead.

func (TransferType) Number

func (TransferType) String

func (x TransferType) String() string

func (TransferType) Type

type TxErrorEvent

type TxErrorEvent struct {

	// Unique party identifier for the related party
	PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// An error message describing what went wrong
	ErrMsg string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
	// The transaction that failed
	//
	// Types that are assignable to Transaction:
	//	*TxErrorEvent_OrderSubmission
	//	*TxErrorEvent_OrderAmendment
	//	*TxErrorEvent_OrderCancellation
	//	*TxErrorEvent_Proposal
	//	*TxErrorEvent_Vote
	//	*TxErrorEvent_LiquidityProvisionSubmission
	Transaction isTxErrorEvent_Transaction `protobuf_oneof:"transaction"`
	// contains filtered or unexported fields
}

func (*TxErrorEvent) Descriptor deprecated

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

Deprecated: Use TxErrorEvent.ProtoReflect.Descriptor instead.

func (*TxErrorEvent) GetErrMsg

func (x *TxErrorEvent) GetErrMsg() string

func (*TxErrorEvent) GetLiquidityProvisionSubmission

func (x *TxErrorEvent) GetLiquidityProvisionSubmission() *LiquidityProvisionSubmission

func (*TxErrorEvent) GetOrderAmendment

func (x *TxErrorEvent) GetOrderAmendment() *OrderAmendment

func (*TxErrorEvent) GetOrderCancellation

func (x *TxErrorEvent) GetOrderCancellation() *OrderCancellation

func (*TxErrorEvent) GetOrderSubmission

func (x *TxErrorEvent) GetOrderSubmission() *OrderSubmission

func (*TxErrorEvent) GetPartyId

func (x *TxErrorEvent) GetPartyId() string

func (*TxErrorEvent) GetProposal

func (x *TxErrorEvent) GetProposal() *Proposal

func (*TxErrorEvent) GetTransaction

func (m *TxErrorEvent) GetTransaction() isTxErrorEvent_Transaction

func (*TxErrorEvent) GetVote

func (x *TxErrorEvent) GetVote() *Vote

func (*TxErrorEvent) ProtoMessage

func (*TxErrorEvent) ProtoMessage()

func (*TxErrorEvent) ProtoReflect

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

func (*TxErrorEvent) Reset

func (x *TxErrorEvent) Reset()

func (*TxErrorEvent) String

func (x *TxErrorEvent) String() string

func (*TxErrorEvent) Validate

func (this *TxErrorEvent) Validate() error

type TxErrorEvent_LiquidityProvisionSubmission

type TxErrorEvent_LiquidityProvisionSubmission struct {
	LiquidityProvisionSubmission *LiquidityProvisionSubmission `protobuf:"bytes,106,opt,name=liquidity_provision_submission,json=liquidityProvisionSubmission,proto3,oneof"`
}

type TxErrorEvent_OrderAmendment

type TxErrorEvent_OrderAmendment struct {
	OrderAmendment *OrderAmendment `protobuf:"bytes,102,opt,name=order_amendment,json=orderAmendment,proto3,oneof"`
}

type TxErrorEvent_OrderCancellation

type TxErrorEvent_OrderCancellation struct {
	OrderCancellation *OrderCancellation `protobuf:"bytes,103,opt,name=order_cancellation,json=orderCancellation,proto3,oneof"`
}

type TxErrorEvent_OrderSubmission

type TxErrorEvent_OrderSubmission struct {
	OrderSubmission *OrderSubmission `protobuf:"bytes,101,opt,name=order_submission,json=orderSubmission,proto3,oneof"`
}

type TxErrorEvent_Proposal

type TxErrorEvent_Proposal struct {
	Proposal *Proposal `protobuf:"bytes,104,opt,name=proposal,proto3,oneof"`
}

type TxErrorEvent_Vote

type TxErrorEvent_Vote struct {
	Vote *Vote `protobuf:"bytes,105,opt,name=vote,proto3,oneof"`
}

type UpdateMarket

type UpdateMarket struct {
	// contains filtered or unexported fields
}

Update an existing market on Vega

func (*UpdateMarket) Descriptor deprecated

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

Deprecated: Use UpdateMarket.ProtoReflect.Descriptor instead.

func (*UpdateMarket) ProtoMessage

func (*UpdateMarket) ProtoMessage()

func (*UpdateMarket) ProtoReflect

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

func (*UpdateMarket) Reset

func (x *UpdateMarket) Reset()

func (*UpdateMarket) String

func (x *UpdateMarket) String() string

func (*UpdateMarket) Validate

func (this *UpdateMarket) Validate() error

type UpdateNetworkParameter

type UpdateNetworkParameter struct {

	// The network parameter to update
	Changes *NetworkParameter `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Update network configuration on Vega

func (*UpdateNetworkParameter) Descriptor deprecated

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

Deprecated: Use UpdateNetworkParameter.ProtoReflect.Descriptor instead.

func (*UpdateNetworkParameter) GetChanges

func (x *UpdateNetworkParameter) GetChanges() *NetworkParameter

func (*UpdateNetworkParameter) ProtoMessage

func (*UpdateNetworkParameter) ProtoMessage()

func (*UpdateNetworkParameter) ProtoReflect

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

func (*UpdateNetworkParameter) Reset

func (x *UpdateNetworkParameter) Reset()

func (*UpdateNetworkParameter) String

func (x *UpdateNetworkParameter) String() string

func (*UpdateNetworkParameter) Validate

func (this *UpdateNetworkParameter) Validate() error

type ValidatorEvent

type ValidatorEvent struct {

	// The source identifier of the event
	SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	// The action
	//
	// Types that are assignable to Action:
	//	*ValidatorEvent_Add
	//	*ValidatorEvent_Rm
	Action isValidatorEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

An event related to validator management with foreign networks

func (*ValidatorEvent) Descriptor deprecated

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

Deprecated: Use ValidatorEvent.ProtoReflect.Descriptor instead.

func (*ValidatorEvent) GetAction

func (m *ValidatorEvent) GetAction() isValidatorEvent_Action

func (*ValidatorEvent) GetAdd

func (x *ValidatorEvent) GetAdd() *AddValidator

func (*ValidatorEvent) GetRm

func (x *ValidatorEvent) GetRm() *RemoveValidator

func (*ValidatorEvent) GetSourceId

func (x *ValidatorEvent) GetSourceId() string

func (*ValidatorEvent) ProtoMessage

func (*ValidatorEvent) ProtoMessage()

func (*ValidatorEvent) ProtoReflect

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

func (*ValidatorEvent) Reset

func (x *ValidatorEvent) Reset()

func (*ValidatorEvent) String

func (x *ValidatorEvent) String() string

func (*ValidatorEvent) Validate

func (this *ValidatorEvent) Validate() error

type ValidatorEvent_Add

type ValidatorEvent_Add struct {
	// Add a new validator
	Add *AddValidator `protobuf:"bytes,1001,opt,name=add,proto3,oneof"`
}

type ValidatorEvent_Rm

type ValidatorEvent_Rm struct {
	// Remove an existing validator
	Rm *RemoveValidator `protobuf:"bytes,1002,opt,name=rm,proto3,oneof"`
}

type Vote

type Vote struct {

	// Voter's party identifier
	PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Actual vote
	Value Vote_Value `protobuf:"varint,2,opt,name=value,proto3,enum=vega.Vote_Value" json:"value,omitempty"`
	// Identifier of the proposal being voted on
	ProposalId string `protobuf:"bytes,3,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// Vote timestamp for date and time (in nanoseconds) when vote was submitted to the network
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Governance vote

func (*Vote) Descriptor deprecated

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

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetPartyId

func (x *Vote) GetPartyId() string

func (*Vote) GetProposalId

func (x *Vote) GetProposalId() string

func (*Vote) GetTimestamp

func (x *Vote) GetTimestamp() int64

func (*Vote) GetValue

func (x *Vote) GetValue() Vote_Value

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

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

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

func (*Vote) Validate

func (this *Vote) Validate() error

type Vote_Value

type Vote_Value int32

Vote value

const (
	// Default value, always invalid
	Vote_VALUE_UNSPECIFIED Vote_Value = 0
	// A vote against the proposal
	Vote_VALUE_NO Vote_Value = 1
	// A vote in favour of the proposal
	Vote_VALUE_YES Vote_Value = 2
)

func (Vote_Value) Descriptor

func (Vote_Value) Descriptor() protoreflect.EnumDescriptor

func (Vote_Value) Enum

func (x Vote_Value) Enum() *Vote_Value

func (Vote_Value) EnumDescriptor deprecated

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

Deprecated: Use Vote_Value.Descriptor instead.

func (Vote_Value) Number

func (x Vote_Value) Number() protoreflect.EnumNumber

func (Vote_Value) String

func (x Vote_Value) String() string

func (Vote_Value) Type

type WithdrawExt

type WithdrawExt struct {

	// Foreign chain specifics
	//
	// Types that are assignable to Ext:
	//	*WithdrawExt_Erc20
	Ext isWithdrawExt_Ext `protobuf_oneof:"ext"`
	// contains filtered or unexported fields
}

Withdrawal external details

func (*WithdrawExt) Descriptor deprecated

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

Deprecated: Use WithdrawExt.ProtoReflect.Descriptor instead.

func (*WithdrawExt) GetErc20

func (x *WithdrawExt) GetErc20() *Erc20WithdrawExt

func (*WithdrawExt) GetExt

func (m *WithdrawExt) GetExt() isWithdrawExt_Ext

func (*WithdrawExt) ProtoMessage

func (*WithdrawExt) ProtoMessage()

func (*WithdrawExt) ProtoReflect

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

func (*WithdrawExt) Reset

func (x *WithdrawExt) Reset()

func (*WithdrawExt) String

func (x *WithdrawExt) String() string

func (*WithdrawExt) Validate

func (this *WithdrawExt) Validate() error

type WithdrawExt_Erc20

type WithdrawExt_Erc20 struct {
	// ERC20 withdrawal details
	Erc20 *Erc20WithdrawExt `protobuf:"bytes,1,opt,name=erc20,proto3,oneof"`
}

type WithdrawSubmission

type WithdrawSubmission struct {

	// Unique party identifier for the user wanting to withdraw funds
	PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be withdrawn
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// The asset we want to withdraw
	Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
	// Foreign chain specifics
	Ext *WithdrawExt `protobuf:"bytes,4,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Represents the submission request to withdraw funds for a party on Vega

func (*WithdrawSubmission) Descriptor deprecated

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

Deprecated: Use WithdrawSubmission.ProtoReflect.Descriptor instead.

func (*WithdrawSubmission) GetAmount

func (x *WithdrawSubmission) GetAmount() uint64

func (*WithdrawSubmission) GetAsset

func (x *WithdrawSubmission) GetAsset() string

func (*WithdrawSubmission) GetExt

func (x *WithdrawSubmission) GetExt() *WithdrawExt

func (*WithdrawSubmission) GetPartyId

func (x *WithdrawSubmission) GetPartyId() string

func (*WithdrawSubmission) ProtoMessage

func (*WithdrawSubmission) ProtoMessage()

func (*WithdrawSubmission) ProtoReflect

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

func (*WithdrawSubmission) Reset

func (x *WithdrawSubmission) Reset()

func (*WithdrawSubmission) String

func (x *WithdrawSubmission) String() string

func (*WithdrawSubmission) Validate

func (this *WithdrawSubmission) Validate() error

type Withdrawal

type Withdrawal struct {

	// Unique identifier for the withdrawal
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique party identifier of the user initiating the withdrawal
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be withdrawn
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// The asset we want to withdraw funds from
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// The status of the withdrawal
	Status Withdrawal_Status `protobuf:"varint,5,opt,name=status,proto3,enum=vega.Withdrawal_Status" json:"status,omitempty"`
	// The reference which is used by the foreign chain
	// to refer to this withdrawal
	Ref string `protobuf:"bytes,6,opt,name=ref,proto3" json:"ref,omitempty"`
	// The time until when the withdrawal is valid
	Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// The hash of the foreign chain for this transaction
	TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// Timestamp for when the network started to process this withdrawal
	CreatedTimestamp int64 `protobuf:"varint,9,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"`
	// Timestamp for when the withdrawal was finalised by the network
	WithdrawnTimestamp int64 `protobuf:"varint,10,opt,name=withdrawn_timestamp,json=withdrawnTimestamp,proto3" json:"withdrawn_timestamp,omitempty"`
	// Foreign chain specifics
	Ext *WithdrawExt `protobuf:"bytes,11,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

A withdrawal from the Vega network

func (*Withdrawal) Descriptor deprecated

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

Deprecated: Use Withdrawal.ProtoReflect.Descriptor instead.

func (*Withdrawal) GetAmount

func (x *Withdrawal) GetAmount() uint64

func (*Withdrawal) GetAsset

func (x *Withdrawal) GetAsset() string

func (*Withdrawal) GetCreatedTimestamp

func (x *Withdrawal) GetCreatedTimestamp() int64

func (*Withdrawal) GetExpiry

func (x *Withdrawal) GetExpiry() int64

func (*Withdrawal) GetExt

func (x *Withdrawal) GetExt() *WithdrawExt

func (*Withdrawal) GetId

func (x *Withdrawal) GetId() string

func (*Withdrawal) GetPartyId

func (x *Withdrawal) GetPartyId() string

func (*Withdrawal) GetRef

func (x *Withdrawal) GetRef() string

func (*Withdrawal) GetStatus

func (x *Withdrawal) GetStatus() Withdrawal_Status

func (*Withdrawal) GetTxHash

func (x *Withdrawal) GetTxHash() string

func (*Withdrawal) GetWithdrawnTimestamp

func (x *Withdrawal) GetWithdrawnTimestamp() int64

func (*Withdrawal) ProtoMessage

func (*Withdrawal) ProtoMessage()

func (*Withdrawal) ProtoReflect

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

func (*Withdrawal) Reset

func (x *Withdrawal) Reset()

func (*Withdrawal) String

func (x *Withdrawal) String() string

func (*Withdrawal) Validate

func (this *Withdrawal) Validate() error

type Withdrawal_Status

type Withdrawal_Status int32

The status of the withdrawal

const (
	// Default value, always invalid
	Withdrawal_STATUS_UNSPECIFIED Withdrawal_Status = 0
	// The withdrawal is open and being processed by the network
	Withdrawal_STATUS_OPEN Withdrawal_Status = 1
	// The withdrawal have been cancelled
	Withdrawal_STATUS_CANCELLED Withdrawal_Status = 2
	// The withdrawal went through and is fully finalised, the funds are removed from the
	// Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network
	Withdrawal_STATUS_FINALIZED Withdrawal_Status = 3
)

func (Withdrawal_Status) Descriptor

func (Withdrawal_Status) Enum

func (Withdrawal_Status) EnumDescriptor deprecated

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

Deprecated: Use Withdrawal_Status.Descriptor instead.

func (Withdrawal_Status) Number

func (Withdrawal_Status) String

func (x Withdrawal_Status) String() string

func (Withdrawal_Status) Type

Directories

Path Synopsis
oracles
v1

Jump to

Keyboard shortcuts

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