// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v5.29.3
// source: alt/v1/live_trading.proto

package altv1

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// GetLiveBrokerCapabilitiesRequest is a query sent to the worker to discover
// what markets, venues, and order types the live broker adapter supports.
type GetLiveBrokerCapabilitiesRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	AccountId     string                 `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetLiveBrokerCapabilitiesRequest) Reset() {
	*x = GetLiveBrokerCapabilitiesRequest{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetLiveBrokerCapabilitiesRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetLiveBrokerCapabilitiesRequest) ProtoMessage() {}

func (x *GetLiveBrokerCapabilitiesRequest) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetLiveBrokerCapabilitiesRequest.ProtoReflect.Descriptor instead.
func (*GetLiveBrokerCapabilitiesRequest) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{0}
}

func (x *GetLiveBrokerCapabilitiesRequest) GetAccountId() string {
	if x != nil {
		return x.AccountId
	}
	return ""
}

// GetLiveBrokerCapabilitiesResponse wraps the broker capability report or an
// error explaining why the probe failed.
type GetLiveBrokerCapabilitiesResponse struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	BrokerCapabilities *LiveBrokerCapability  `protobuf:"bytes,1,opt,name=broker_capabilities,json=brokerCapabilities,proto3" json:"broker_capabilities,omitempty"`
	Error              *ErrorInfo             `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *GetLiveBrokerCapabilitiesResponse) Reset() {
	*x = GetLiveBrokerCapabilitiesResponse{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetLiveBrokerCapabilitiesResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetLiveBrokerCapabilitiesResponse) ProtoMessage() {}

func (x *GetLiveBrokerCapabilitiesResponse) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetLiveBrokerCapabilitiesResponse.ProtoReflect.Descriptor instead.
func (*GetLiveBrokerCapabilitiesResponse) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{1}
}

func (x *GetLiveBrokerCapabilitiesResponse) GetBrokerCapabilities() *LiveBrokerCapability {
	if x != nil {
		return x.BrokerCapabilities
	}
	return nil
}

func (x *GetLiveBrokerCapabilitiesResponse) GetError() *ErrorInfo {
	if x != nil {
		return x.Error
	}
	return nil
}

// LiveBrokerCapability describes what a live broker supports. It mirrors the
// domain types in packages/domain/trading but is wire-format only so that
// generated code stays minimal for this milestone.
type LiveBrokerCapability struct {
	state             protoimpl.MessageState `protogen:"open.v1"`
	Broker            string                 `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty"`
	Markets           []Market               `protobuf:"varint,2,rep,packed,name=markets,proto3,enum=alt.v1.Market" json:"markets,omitempty"`
	Venues            []Venue                `protobuf:"varint,3,rep,packed,name=venues,proto3,enum=alt.v1.Venue" json:"venues,omitempty"`
	OrderTypes        []string               `protobuf:"bytes,4,rep,name=order_types,json=orderTypes,proto3" json:"order_types,omitempty"`
	SupportsAmend     bool                   `protobuf:"varint,5,opt,name=supports_amend,json=supportsAmend,proto3" json:"supports_amend,omitempty"`
	SupportsCancel    bool                   `protobuf:"varint,6,opt,name=supports_cancel,json=supportsCancel,proto3" json:"supports_cancel,omitempty"`
	SupportsAccount   bool                   `protobuf:"varint,7,opt,name=supports_account,json=supportsAccount,proto3" json:"supports_account,omitempty"`
	SupportsAuditTags bool                   `protobuf:"varint,8,opt,name=supports_audit_tags,json=supportsAuditTags,proto3" json:"supports_audit_tags,omitempty"`
	CheckedAtUnixMs   int64                  `protobuf:"varint,9,opt,name=checked_at_unix_ms,json=checkedAtUnixMs,proto3" json:"checked_at_unix_ms,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

func (x *LiveBrokerCapability) Reset() {
	*x = LiveBrokerCapability{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LiveBrokerCapability) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LiveBrokerCapability) ProtoMessage() {}

func (x *LiveBrokerCapability) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LiveBrokerCapability.ProtoReflect.Descriptor instead.
func (*LiveBrokerCapability) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{2}
}

func (x *LiveBrokerCapability) GetBroker() string {
	if x != nil {
		return x.Broker
	}
	return ""
}

func (x *LiveBrokerCapability) GetMarkets() []Market {
	if x != nil {
		return x.Markets
	}
	return nil
}

func (x *LiveBrokerCapability) GetVenues() []Venue {
	if x != nil {
		return x.Venues
	}
	return nil
}

func (x *LiveBrokerCapability) GetOrderTypes() []string {
	if x != nil {
		return x.OrderTypes
	}
	return nil
}

func (x *LiveBrokerCapability) GetSupportsAmend() bool {
	if x != nil {
		return x.SupportsAmend
	}
	return false
}

func (x *LiveBrokerCapability) GetSupportsCancel() bool {
	if x != nil {
		return x.SupportsCancel
	}
	return false
}

func (x *LiveBrokerCapability) GetSupportsAccount() bool {
	if x != nil {
		return x.SupportsAccount
	}
	return false
}

func (x *LiveBrokerCapability) GetSupportsAuditTags() bool {
	if x != nil {
		return x.SupportsAuditTags
	}
	return false
}

func (x *LiveBrokerCapability) GetCheckedAtUnixMs() int64 {
	if x != nil {
		return x.CheckedAtUnixMs
	}
	return 0
}

// LiveOrderIntent mirrors the backtest/trading domain intent but belongs to
// the live protobuf surface so live consumers can decode it without importing
// backtest messages. Side/type/status stay string-typed to match the domain
// vocabulary and to keep the lifecycle additive without new enums.
type LiveOrderIntent struct {
	state        protoimpl.MessageState `protogen:"open.v1"`
	InstrumentId string                 `protobuf:"bytes,1,opt,name=instrument_id,json=instrumentId,proto3" json:"instrument_id,omitempty"`
	// side is "buy" or "sell".
	Side     string    `protobuf:"bytes,2,opt,name=side,proto3" json:"side,omitempty"`
	Quantity *Quantity `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// type is "market", "limit", or broker-specific (e.g. "kis_best_limit").
	Type           string            `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	TimeInForce    string            `protobuf:"bytes,5,opt,name=time_in_force,json=timeInForce,proto3" json:"time_in_force,omitempty"`
	LimitPrice     *Price            `protobuf:"bytes,6,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	BrokerClientId string            `protobuf:"bytes,7,opt,name=broker_client_id,json=brokerClientId,proto3" json:"broker_client_id,omitempty"`
	CustomTags     map[string]string `protobuf:"bytes,8,rep,name=custom_tags,json=customTags,proto3" json:"custom_tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *LiveOrderIntent) Reset() {
	*x = LiveOrderIntent{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LiveOrderIntent) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LiveOrderIntent) ProtoMessage() {}

func (x *LiveOrderIntent) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LiveOrderIntent.ProtoReflect.Descriptor instead.
func (*LiveOrderIntent) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{3}
}

func (x *LiveOrderIntent) GetInstrumentId() string {
	if x != nil {
		return x.InstrumentId
	}
	return ""
}

func (x *LiveOrderIntent) GetSide() string {
	if x != nil {
		return x.Side
	}
	return ""
}

func (x *LiveOrderIntent) GetQuantity() *Quantity {
	if x != nil {
		return x.Quantity
	}
	return nil
}

func (x *LiveOrderIntent) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *LiveOrderIntent) GetTimeInForce() string {
	if x != nil {
		return x.TimeInForce
	}
	return ""
}

func (x *LiveOrderIntent) GetLimitPrice() *Price {
	if x != nil {
		return x.LimitPrice
	}
	return nil
}

func (x *LiveOrderIntent) GetBrokerClientId() string {
	if x != nil {
		return x.BrokerClientId
	}
	return ""
}

func (x *LiveOrderIntent) GetCustomTags() map[string]string {
	if x != nil {
		return x.CustomTags
	}
	return nil
}

// LiveOrder is a broker-submitted order with execution status updates. It uses
// string-typed side/type/status so unknown broker values are preserved.
type LiveOrder struct {
	state        protoimpl.MessageState `protogen:"open.v1"`
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BrokerId     string                 `protobuf:"bytes,2,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	ClientId     string                 `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	AccountId    string                 `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	InstrumentId string                 `protobuf:"bytes,5,opt,name=instrument_id,json=instrumentId,proto3" json:"instrument_id,omitempty"`
	Side         string                 `protobuf:"bytes,6,opt,name=side,proto3" json:"side,omitempty"`
	Quantity     *Quantity              `protobuf:"bytes,7,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Type         string                 `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
	TimeInForce  string                 `protobuf:"bytes,9,opt,name=time_in_force,json=timeInForce,proto3" json:"time_in_force,omitempty"`
	LimitPrice   *Price                 `protobuf:"bytes,10,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	Status       string                 `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
	// broker_status mirrors the raw status reported by the broker.
	BrokerStatus    string         `protobuf:"bytes,12,opt,name=broker_status,json=brokerStatus,proto3" json:"broker_status,omitempty"`
	Fill            *BacktestTrade `protobuf:"bytes,13,opt,name=fill,proto3" json:"fill,omitempty"`
	RejectionReason string         `protobuf:"bytes,14,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
	CreatedAtUnixMs int64          `protobuf:"varint,15,opt,name=created_at_unix_ms,json=createdAtUnixMs,proto3" json:"created_at_unix_ms,omitempty"`
	UpdatedAtUnixMs int64          `protobuf:"varint,16,opt,name=updated_at_unix_ms,json=updatedAtUnixMs,proto3" json:"updated_at_unix_ms,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *LiveOrder) Reset() {
	*x = LiveOrder{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LiveOrder) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LiveOrder) ProtoMessage() {}

func (x *LiveOrder) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LiveOrder.ProtoReflect.Descriptor instead.
func (*LiveOrder) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{4}
}

func (x *LiveOrder) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *LiveOrder) GetBrokerId() string {
	if x != nil {
		return x.BrokerId
	}
	return ""
}

func (x *LiveOrder) GetClientId() string {
	if x != nil {
		return x.ClientId
	}
	return ""
}

func (x *LiveOrder) GetAccountId() string {
	if x != nil {
		return x.AccountId
	}
	return ""
}

func (x *LiveOrder) GetInstrumentId() string {
	if x != nil {
		return x.InstrumentId
	}
	return ""
}

func (x *LiveOrder) GetSide() string {
	if x != nil {
		return x.Side
	}
	return ""
}

func (x *LiveOrder) GetQuantity() *Quantity {
	if x != nil {
		return x.Quantity
	}
	return nil
}

func (x *LiveOrder) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *LiveOrder) GetTimeInForce() string {
	if x != nil {
		return x.TimeInForce
	}
	return ""
}

func (x *LiveOrder) GetLimitPrice() *Price {
	if x != nil {
		return x.LimitPrice
	}
	return nil
}

func (x *LiveOrder) GetStatus() string {
	if x != nil {
		return x.Status
	}
	return ""
}

func (x *LiveOrder) GetBrokerStatus() string {
	if x != nil {
		return x.BrokerStatus
	}
	return ""
}

func (x *LiveOrder) GetFill() *BacktestTrade {
	if x != nil {
		return x.Fill
	}
	return nil
}

func (x *LiveOrder) GetRejectionReason() string {
	if x != nil {
		return x.RejectionReason
	}
	return ""
}

func (x *LiveOrder) GetCreatedAtUnixMs() int64 {
	if x != nil {
		return x.CreatedAtUnixMs
	}
	return 0
}

func (x *LiveOrder) GetUpdatedAtUnixMs() int64 {
	if x != nil {
		return x.UpdatedAtUnixMs
	}
	return 0
}

// LiveAccountSnapshot carries live account state from a broker.
type LiveAccountSnapshot struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	Broker             string                 `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty"`
	AccountId          string                 `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Cash               *Decimal               `protobuf:"bytes,3,opt,name=cash,proto3" json:"cash,omitempty"`
	TotalEquity        *Decimal               `protobuf:"bytes,4,opt,name=total_equity,json=totalEquity,proto3" json:"total_equity,omitempty"`
	AvailableMargin    *Decimal               `protobuf:"bytes,5,opt,name=available_margin,json=availableMargin,proto3" json:"available_margin,omitempty"`
	SnapshotTimeUnixMs int64                  `protobuf:"varint,6,opt,name=snapshot_time_unix_ms,json=snapshotTimeUnixMs,proto3" json:"snapshot_time_unix_ms,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *LiveAccountSnapshot) Reset() {
	*x = LiveAccountSnapshot{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LiveAccountSnapshot) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LiveAccountSnapshot) ProtoMessage() {}

func (x *LiveAccountSnapshot) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LiveAccountSnapshot.ProtoReflect.Descriptor instead.
func (*LiveAccountSnapshot) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{5}
}

func (x *LiveAccountSnapshot) GetBroker() string {
	if x != nil {
		return x.Broker
	}
	return ""
}

func (x *LiveAccountSnapshot) GetAccountId() string {
	if x != nil {
		return x.AccountId
	}
	return ""
}

func (x *LiveAccountSnapshot) GetCash() *Decimal {
	if x != nil {
		return x.Cash
	}
	return nil
}

func (x *LiveAccountSnapshot) GetTotalEquity() *Decimal {
	if x != nil {
		return x.TotalEquity
	}
	return nil
}

func (x *LiveAccountSnapshot) GetAvailableMargin() *Decimal {
	if x != nil {
		return x.AvailableMargin
	}
	return nil
}

func (x *LiveAccountSnapshot) GetSnapshotTimeUnixMs() int64 {
	if x != nil {
		return x.SnapshotTimeUnixMs
	}
	return 0
}

// LivePositionSnapshot is a single position inside a live account.
type LivePositionSnapshot struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	InstrumentId  string                 `protobuf:"bytes,1,opt,name=instrument_id,json=instrumentId,proto3" json:"instrument_id,omitempty"`
	Side          string                 `protobuf:"bytes,2,opt,name=side,proto3" json:"side,omitempty"`
	Quantity      *Quantity              `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	AvgPrice      *Price                 `protobuf:"bytes,4,opt,name=avg_price,json=avgPrice,proto3" json:"avg_price,omitempty"`
	CurrentPrice  *Price                 `protobuf:"bytes,5,opt,name=current_price,json=currentPrice,proto3" json:"current_price,omitempty"`
	MarketValue   *Decimal               `protobuf:"bytes,6,opt,name=market_value,json=marketValue,proto3" json:"market_value,omitempty"`
	Pnl           *Decimal               `protobuf:"bytes,7,opt,name=pnl,proto3" json:"pnl,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LivePositionSnapshot) Reset() {
	*x = LivePositionSnapshot{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LivePositionSnapshot) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LivePositionSnapshot) ProtoMessage() {}

func (x *LivePositionSnapshot) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LivePositionSnapshot.ProtoReflect.Descriptor instead.
func (*LivePositionSnapshot) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{6}
}

func (x *LivePositionSnapshot) GetInstrumentId() string {
	if x != nil {
		return x.InstrumentId
	}
	return ""
}

func (x *LivePositionSnapshot) GetSide() string {
	if x != nil {
		return x.Side
	}
	return ""
}

func (x *LivePositionSnapshot) GetQuantity() *Quantity {
	if x != nil {
		return x.Quantity
	}
	return nil
}

func (x *LivePositionSnapshot) GetAvgPrice() *Price {
	if x != nil {
		return x.AvgPrice
	}
	return nil
}

func (x *LivePositionSnapshot) GetCurrentPrice() *Price {
	if x != nil {
		return x.CurrentPrice
	}
	return nil
}

func (x *LivePositionSnapshot) GetMarketValue() *Decimal {
	if x != nil {
		return x.MarketValue
	}
	return nil
}

func (x *LivePositionSnapshot) GetPnl() *Decimal {
	if x != nil {
		return x.Pnl
	}
	return nil
}

// LiveAuditEvent is a broker-neutral event record for audit trails.
type LiveAuditEvent struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	Type            string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	TimestampUnixMs int64                  `protobuf:"varint,2,opt,name=timestamp_unix_ms,json=timestampUnixMs,proto3" json:"timestamp_unix_ms,omitempty"`
	Broker          string                 `protobuf:"bytes,3,opt,name=broker,proto3" json:"broker,omitempty"`
	AccountId       string                 `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Detail          map[string]string      `protobuf:"bytes,5,rep,name=detail,proto3" json:"detail,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *LiveAuditEvent) Reset() {
	*x = LiveAuditEvent{}
	mi := &file_alt_v1_live_trading_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LiveAuditEvent) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LiveAuditEvent) ProtoMessage() {}

func (x *LiveAuditEvent) ProtoReflect() protoreflect.Message {
	mi := &file_alt_v1_live_trading_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LiveAuditEvent.ProtoReflect.Descriptor instead.
func (*LiveAuditEvent) Descriptor() ([]byte, []int) {
	return file_alt_v1_live_trading_proto_rawDescGZIP(), []int{7}
}

func (x *LiveAuditEvent) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *LiveAuditEvent) GetTimestampUnixMs() int64 {
	if x != nil {
		return x.TimestampUnixMs
	}
	return 0
}

func (x *LiveAuditEvent) GetBroker() string {
	if x != nil {
		return x.Broker
	}
	return ""
}

func (x *LiveAuditEvent) GetAccountId() string {
	if x != nil {
		return x.AccountId
	}
	return ""
}

func (x *LiveAuditEvent) GetDetail() map[string]string {
	if x != nil {
		return x.Detail
	}
	return nil
}

var File_alt_v1_live_trading_proto protoreflect.FileDescriptor

const file_alt_v1_live_trading_proto_rawDesc = "" +
	"\n" +
	"\x19alt/v1/live_trading.proto\x12\x06alt.v1\x1a\x13alt/v1/common.proto\x1a\x13alt/v1/market.proto\x1a\x15alt/v1/backtest.proto\"A\n" +
	" GetLiveBrokerCapabilitiesRequest\x12\x1d\n" +
	"\n" +
	"account_id\x18\x01 \x01(\tR\taccountId\"\x9b\x01\n" +
	"!GetLiveBrokerCapabilitiesResponse\x12M\n" +
	"\x13broker_capabilities\x18\x01 \x01(\v2\x1c.alt.v1.LiveBrokerCapabilityR\x12brokerCapabilities\x12'\n" +
	"\x05error\x18\x02 \x01(\v2\x11.alt.v1.ErrorInfoR\x05error\"\xf8\x02\n" +
	"\x14LiveBrokerCapability\x12\x16\n" +
	"\x06broker\x18\x01 \x01(\tR\x06broker\x12(\n" +
	"\amarkets\x18\x02 \x03(\x0e2\x0e.alt.v1.MarketR\amarkets\x12%\n" +
	"\x06venues\x18\x03 \x03(\x0e2\r.alt.v1.VenueR\x06venues\x12\x1f\n" +
	"\vorder_types\x18\x04 \x03(\tR\n" +
	"orderTypes\x12%\n" +
	"\x0esupports_amend\x18\x05 \x01(\bR\rsupportsAmend\x12'\n" +
	"\x0fsupports_cancel\x18\x06 \x01(\bR\x0esupportsCancel\x12)\n" +
	"\x10supports_account\x18\a \x01(\bR\x0fsupportsAccount\x12.\n" +
	"\x13supports_audit_tags\x18\b \x01(\bR\x11supportsAuditTags\x12+\n" +
	"\x12checked_at_unix_ms\x18\t \x01(\x03R\x0fcheckedAtUnixMs\"\x93\x03\n" +
	"\x0fLiveOrderIntent\x12#\n" +
	"\rinstrument_id\x18\x01 \x01(\tR\finstrumentId\x12\x12\n" +
	"\x04side\x18\x02 \x01(\tR\x04side\x12,\n" +
	"\bquantity\x18\x03 \x01(\v2\x10.alt.v1.QuantityR\bquantity\x12\x12\n" +
	"\x04type\x18\x04 \x01(\tR\x04type\x12\"\n" +
	"\rtime_in_force\x18\x05 \x01(\tR\vtimeInForce\x12.\n" +
	"\vlimit_price\x18\x06 \x01(\v2\r.alt.v1.PriceR\n" +
	"limitPrice\x12(\n" +
	"\x10broker_client_id\x18\a \x01(\tR\x0ebrokerClientId\x12H\n" +
	"\vcustom_tags\x18\b \x03(\v2'.alt.v1.LiveOrderIntent.CustomTagsEntryR\n" +
	"customTags\x1a=\n" +
	"\x0fCustomTagsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb0\x04\n" +
	"\tLiveOrder\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tbroker_id\x18\x02 \x01(\tR\bbrokerId\x12\x1b\n" +
	"\tclient_id\x18\x03 \x01(\tR\bclientId\x12\x1d\n" +
	"\n" +
	"account_id\x18\x04 \x01(\tR\taccountId\x12#\n" +
	"\rinstrument_id\x18\x05 \x01(\tR\finstrumentId\x12\x12\n" +
	"\x04side\x18\x06 \x01(\tR\x04side\x12,\n" +
	"\bquantity\x18\a \x01(\v2\x10.alt.v1.QuantityR\bquantity\x12\x12\n" +
	"\x04type\x18\b \x01(\tR\x04type\x12\"\n" +
	"\rtime_in_force\x18\t \x01(\tR\vtimeInForce\x12.\n" +
	"\vlimit_price\x18\n" +
	" \x01(\v2\r.alt.v1.PriceR\n" +
	"limitPrice\x12\x16\n" +
	"\x06status\x18\v \x01(\tR\x06status\x12#\n" +
	"\rbroker_status\x18\f \x01(\tR\fbrokerStatus\x12)\n" +
	"\x04fill\x18\r \x01(\v2\x15.alt.v1.BacktestTradeR\x04fill\x12)\n" +
	"\x10rejection_reason\x18\x0e \x01(\tR\x0frejectionReason\x12+\n" +
	"\x12created_at_unix_ms\x18\x0f \x01(\x03R\x0fcreatedAtUnixMs\x12+\n" +
	"\x12updated_at_unix_ms\x18\x10 \x01(\x03R\x0fupdatedAtUnixMs\"\x94\x02\n" +
	"\x13LiveAccountSnapshot\x12\x16\n" +
	"\x06broker\x18\x01 \x01(\tR\x06broker\x12\x1d\n" +
	"\n" +
	"account_id\x18\x02 \x01(\tR\taccountId\x12#\n" +
	"\x04cash\x18\x03 \x01(\v2\x0f.alt.v1.DecimalR\x04cash\x122\n" +
	"\ftotal_equity\x18\x04 \x01(\v2\x0f.alt.v1.DecimalR\vtotalEquity\x12:\n" +
	"\x10available_margin\x18\x05 \x01(\v2\x0f.alt.v1.DecimalR\x0favailableMargin\x121\n" +
	"\x15snapshot_time_unix_ms\x18\x06 \x01(\x03R\x12snapshotTimeUnixMs\"\xb4\x02\n" +
	"\x14LivePositionSnapshot\x12#\n" +
	"\rinstrument_id\x18\x01 \x01(\tR\finstrumentId\x12\x12\n" +
	"\x04side\x18\x02 \x01(\tR\x04side\x12,\n" +
	"\bquantity\x18\x03 \x01(\v2\x10.alt.v1.QuantityR\bquantity\x12*\n" +
	"\tavg_price\x18\x04 \x01(\v2\r.alt.v1.PriceR\bavgPrice\x122\n" +
	"\rcurrent_price\x18\x05 \x01(\v2\r.alt.v1.PriceR\fcurrentPrice\x122\n" +
	"\fmarket_value\x18\x06 \x01(\v2\x0f.alt.v1.DecimalR\vmarketValue\x12!\n" +
	"\x03pnl\x18\a \x01(\v2\x0f.alt.v1.DecimalR\x03pnl\"\xfe\x01\n" +
	"\x0eLiveAuditEvent\x12\x12\n" +
	"\x04type\x18\x01 \x01(\tR\x04type\x12*\n" +
	"\x11timestamp_unix_ms\x18\x02 \x01(\x03R\x0ftimestampUnixMs\x12\x16\n" +
	"\x06broker\x18\x03 \x01(\tR\x06broker\x12\x1d\n" +
	"\n" +
	"account_id\x18\x04 \x01(\tR\taccountId\x12:\n" +
	"\x06detail\x18\x05 \x03(\v2\".alt.v1.LiveAuditEvent.DetailEntryR\x06detail\x1a9\n" +
	"\vDetailEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01BCZAgit.toki-labs.com/toki/alt/packages/contracts/gen/go/alt/v1;altv1b\x06proto3"

var (
	file_alt_v1_live_trading_proto_rawDescOnce sync.Once
	file_alt_v1_live_trading_proto_rawDescData []byte
)

func file_alt_v1_live_trading_proto_rawDescGZIP() []byte {
	file_alt_v1_live_trading_proto_rawDescOnce.Do(func() {
		file_alt_v1_live_trading_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_alt_v1_live_trading_proto_rawDesc), len(file_alt_v1_live_trading_proto_rawDesc)))
	})
	return file_alt_v1_live_trading_proto_rawDescData
}

var file_alt_v1_live_trading_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_alt_v1_live_trading_proto_goTypes = []any{
	(*GetLiveBrokerCapabilitiesRequest)(nil),  // 0: alt.v1.GetLiveBrokerCapabilitiesRequest
	(*GetLiveBrokerCapabilitiesResponse)(nil), // 1: alt.v1.GetLiveBrokerCapabilitiesResponse
	(*LiveBrokerCapability)(nil),              // 2: alt.v1.LiveBrokerCapability
	(*LiveOrderIntent)(nil),                   // 3: alt.v1.LiveOrderIntent
	(*LiveOrder)(nil),                         // 4: alt.v1.LiveOrder
	(*LiveAccountSnapshot)(nil),               // 5: alt.v1.LiveAccountSnapshot
	(*LivePositionSnapshot)(nil),              // 6: alt.v1.LivePositionSnapshot
	(*LiveAuditEvent)(nil),                    // 7: alt.v1.LiveAuditEvent
	nil,                                       // 8: alt.v1.LiveOrderIntent.CustomTagsEntry
	nil,                                       // 9: alt.v1.LiveAuditEvent.DetailEntry
	(*ErrorInfo)(nil),                         // 10: alt.v1.ErrorInfo
	(Market)(0),                               // 11: alt.v1.Market
	(Venue)(0),                                // 12: alt.v1.Venue
	(*Quantity)(nil),                          // 13: alt.v1.Quantity
	(*Price)(nil),                             // 14: alt.v1.Price
	(*BacktestTrade)(nil),                     // 15: alt.v1.BacktestTrade
	(*Decimal)(nil),                           // 16: alt.v1.Decimal
}
var file_alt_v1_live_trading_proto_depIdxs = []int32{
	2,  // 0: alt.v1.GetLiveBrokerCapabilitiesResponse.broker_capabilities:type_name -> alt.v1.LiveBrokerCapability
	10, // 1: alt.v1.GetLiveBrokerCapabilitiesResponse.error:type_name -> alt.v1.ErrorInfo
	11, // 2: alt.v1.LiveBrokerCapability.markets:type_name -> alt.v1.Market
	12, // 3: alt.v1.LiveBrokerCapability.venues:type_name -> alt.v1.Venue
	13, // 4: alt.v1.LiveOrderIntent.quantity:type_name -> alt.v1.Quantity
	14, // 5: alt.v1.LiveOrderIntent.limit_price:type_name -> alt.v1.Price
	8,  // 6: alt.v1.LiveOrderIntent.custom_tags:type_name -> alt.v1.LiveOrderIntent.CustomTagsEntry
	13, // 7: alt.v1.LiveOrder.quantity:type_name -> alt.v1.Quantity
	14, // 8: alt.v1.LiveOrder.limit_price:type_name -> alt.v1.Price
	15, // 9: alt.v1.LiveOrder.fill:type_name -> alt.v1.BacktestTrade
	16, // 10: alt.v1.LiveAccountSnapshot.cash:type_name -> alt.v1.Decimal
	16, // 11: alt.v1.LiveAccountSnapshot.total_equity:type_name -> alt.v1.Decimal
	16, // 12: alt.v1.LiveAccountSnapshot.available_margin:type_name -> alt.v1.Decimal
	13, // 13: alt.v1.LivePositionSnapshot.quantity:type_name -> alt.v1.Quantity
	14, // 14: alt.v1.LivePositionSnapshot.avg_price:type_name -> alt.v1.Price
	14, // 15: alt.v1.LivePositionSnapshot.current_price:type_name -> alt.v1.Price
	16, // 16: alt.v1.LivePositionSnapshot.market_value:type_name -> alt.v1.Decimal
	16, // 17: alt.v1.LivePositionSnapshot.pnl:type_name -> alt.v1.Decimal
	9,  // 18: alt.v1.LiveAuditEvent.detail:type_name -> alt.v1.LiveAuditEvent.DetailEntry
	19, // [19:19] is the sub-list for method output_type
	19, // [19:19] is the sub-list for method input_type
	19, // [19:19] is the sub-list for extension type_name
	19, // [19:19] is the sub-list for extension extendee
	0,  // [0:19] is the sub-list for field type_name
}

func init() { file_alt_v1_live_trading_proto_init() }
func file_alt_v1_live_trading_proto_init() {
	if File_alt_v1_live_trading_proto != nil {
		return
	}
	file_alt_v1_common_proto_init()
	file_alt_v1_market_proto_init()
	file_alt_v1_backtest_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_alt_v1_live_trading_proto_rawDesc), len(file_alt_v1_live_trading_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   10,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_alt_v1_live_trading_proto_goTypes,
		DependencyIndexes: file_alt_v1_live_trading_proto_depIdxs,
		MessageInfos:      file_alt_v1_live_trading_proto_msgTypes,
	}.Build()
	File_alt_v1_live_trading_proto = out.File
	file_alt_v1_live_trading_proto_goTypes = nil
	file_alt_v1_live_trading_proto_depIdxs = nil
}
