proto

package
v0.0.0-...-50d9c68 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FTaxes_SubmitTrade_FullMethodName      = "/FTaxesGrpc.FTaxes/SubmitTrade"
	FTaxes_SubmitTransfer_FullMethodName   = "/FTaxesGrpc.FTaxes/SubmitTransfer"
	FTaxes_SubmitGenericFee_FullMethodName = "/FTaxesGrpc.FTaxes/SubmitGenericFee"
	FTaxes_ShowJobProgress_FullMethodName  = "/FTaxesGrpc.FTaxes/ShowJobProgress"
	FTaxes_GetSettings_FullMethodName      = "/FTaxesGrpc.FTaxes/GetSettings"
	FTaxes_AppLog_FullMethodName           = "/FTaxesGrpc.FTaxes/AppLog"
	FTaxes_StreamRecords_FullMethodName    = "/FTaxesGrpc.FTaxes/StreamRecords"
	FTaxes_PluginHeartbeat_FullMethodName  = "/FTaxesGrpc.FTaxes/PluginHeartbeat"
)
View Source
const (
	PluginCtl_ConvertPricesInTrade_FullMethodName    = "/FTaxesGrpc.PluginCtl/ConvertPricesInTrade"
	PluginCtl_ConvertPricesInTransfer_FullMethodName = "/FTaxesGrpc.PluginCtl/ConvertPricesInTransfer"
)

Variables

View Source
var (
	TxAction_name = map[int32]string{
		0: "BUY",
		1: "SELL",
	}
	TxAction_value = map[string]int32{
		"BUY":  0,
		"SELL": 1,
	}
)

Enum value maps for TxAction.

View Source
var (
	TransferAction_name = map[int32]string{
		0: "DEPOSIT",
		1: "WITHDRAWAL",
	}
	TransferAction_value = map[string]int32{
		"DEPOSIT":    0,
		"WITHDRAWAL": 1,
	}
)

Enum value maps for TransferAction.

View Source
var (
	OrderType_name = map[int32]string{
		0: "TAKER",
		1: "MAKER",
	}
	OrderType_value = map[string]int32{
		"TAKER": 0,
		"MAKER": 1,
	}
)

Enum value maps for OrderType.

View Source
var (
	CostType_name = map[int32]string{
		0: "EXECUTION_FEE",
		1: "FUNDING_FEE",
		2: "BORROW_FEE",
		9: "OTHER",
	}
	CostType_value = map[string]int32{
		"EXECUTION_FEE": 0,
		"FUNDING_FEE":   1,
		"BORROW_FEE":    2,
		"OTHER":         9,
	}
)

Enum value maps for CostType.

View Source
var (
	LogLevel_name = map[int32]string{
		0: "INFO",
		1: "WARN",
		2: "ERR",
	}
	LogLevel_value = map[string]int32{
		"INFO": 0,
		"WARN": 1,
		"ERR":  2,
	}
)

Enum value maps for LogLevel.

View Source
var FTaxes_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "FTaxesGrpc.FTaxes",
	HandlerType: (*FTaxesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitTrade",
			Handler:    _FTaxes_SubmitTrade_Handler,
		},
		{
			MethodName: "SubmitTransfer",
			Handler:    _FTaxes_SubmitTransfer_Handler,
		},
		{
			MethodName: "SubmitGenericFee",
			Handler:    _FTaxes_SubmitGenericFee_Handler,
		},
		{
			MethodName: "ShowJobProgress",
			Handler:    _FTaxes_ShowJobProgress_Handler,
		},
		{
			MethodName: "GetSettings",
			Handler:    _FTaxes_GetSettings_Handler,
		},
		{
			MethodName: "AppLog",
			Handler:    _FTaxes_AppLog_Handler,
		},
		{
			MethodName: "PluginHeartbeat",
			Handler:    _FTaxes_PluginHeartbeat_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamRecords",
			Handler:       _FTaxes_StreamRecords_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "f-taxes.proto",
}

FTaxes_ServiceDesc is the grpc.ServiceDesc for FTaxes service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_f_taxes_proto protoreflect.FileDescriptor
View Source
var PluginCtl_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "FTaxesGrpc.PluginCtl",
	HandlerType: (*PluginCtlServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ConvertPricesInTrade",
			Handler:    _PluginCtl_ConvertPricesInTrade_Handler,
		},
		{
			MethodName: "ConvertPricesInTransfer",
			Handler:    _PluginCtl_ConvertPricesInTransfer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "f-taxes.proto",
}

PluginCtl_ServiceDesc is the grpc.ServiceDesc for PluginCtl service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFTaxesServer

func RegisterFTaxesServer(s grpc.ServiceRegistrar, srv FTaxesServer)

func RegisterPluginCtlServer

func RegisterPluginCtlServer(s grpc.ServiceRegistrar, srv PluginCtlServer)

Types

type AppLogMsg

type AppLogMsg struct {
	Level   LogLevel `protobuf:"varint,1,opt,name=Level,proto3,enum=FTaxesGrpc.LogLevel" json:"Level,omitempty"`
	Message string   `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	Tags    []string `protobuf:"bytes,3,rep,name=Tags,proto3" json:"Tags,omitempty"`
	// contains filtered or unexported fields
}

func (*AppLogMsg) Descriptor deprecated

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

Deprecated: Use AppLogMsg.ProtoReflect.Descriptor instead.

func (*AppLogMsg) GetLevel

func (x *AppLogMsg) GetLevel() LogLevel

func (*AppLogMsg) GetMessage

func (x *AppLogMsg) GetMessage() string

func (*AppLogMsg) GetTags

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

func (*AppLogMsg) ProtoMessage

func (*AppLogMsg) ProtoMessage()

func (*AppLogMsg) ProtoReflect

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

func (*AppLogMsg) Reset

func (x *AppLogMsg) Reset()

func (*AppLogMsg) String

func (x *AppLogMsg) String() string

type Cost

type Cost struct {
	Name        string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Currency    string `protobuf:"bytes,2,opt,name=Currency,proto3" json:"Currency,omitempty"`
	Amount      string `protobuf:"bytes,3,opt,name=Amount,proto3" json:"Amount,omitempty"`
	AmountC     string `protobuf:"bytes,4,opt,name=AmountC,proto3" json:"AmountC,omitempty"`
	Price       string `protobuf:"bytes,5,opt,name=Price,proto3" json:"Price,omitempty"`
	PriceC      string `protobuf:"bytes,6,opt,name=PriceC,proto3" json:"PriceC,omitempty"`
	Decimals    int32  `protobuf:"varint,7,opt,name=Decimals,proto3" json:"Decimals,omitempty"`
	ConvertedBy string `protobuf:"bytes,8,opt,name=ConvertedBy,proto3" json:"ConvertedBy,omitempty"`
	// contains filtered or unexported fields
}

func (*Cost) Descriptor deprecated

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

Deprecated: Use Cost.ProtoReflect.Descriptor instead.

func (*Cost) GetAmount

func (x *Cost) GetAmount() string

func (*Cost) GetAmountC

func (x *Cost) GetAmountC() string

func (*Cost) GetConvertedBy

func (x *Cost) GetConvertedBy() string

func (*Cost) GetCurrency

func (x *Cost) GetCurrency() string

func (*Cost) GetDecimals

func (x *Cost) GetDecimals() int32

func (*Cost) GetName

func (x *Cost) GetName() string

func (*Cost) GetPrice

func (x *Cost) GetPrice() string

func (*Cost) GetPriceC

func (x *Cost) GetPriceC() string

func (*Cost) ProtoMessage

func (*Cost) ProtoMessage()

func (*Cost) ProtoReflect

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

func (*Cost) Reset

func (x *Cost) Reset()

func (*Cost) String

func (x *Cost) String() string

type CostType

type CostType int32
const (
	CostType_EXECUTION_FEE CostType = 0
	CostType_FUNDING_FEE   CostType = 1
	CostType_BORROW_FEE    CostType = 2
	CostType_OTHER         CostType = 9
)

func (CostType) Descriptor

func (CostType) Descriptor() protoreflect.EnumDescriptor

func (CostType) Enum

func (x CostType) Enum() *CostType

func (CostType) EnumDescriptor deprecated

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

Deprecated: Use CostType.Descriptor instead.

func (CostType) Number

func (x CostType) Number() protoreflect.EnumNumber

func (CostType) String

func (x CostType) String() string

func (CostType) Type

type FTaxesClient

type FTaxesClient interface {
	SubmitTrade(ctx context.Context, in *Trade, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SubmitTransfer(ctx context.Context, in *Transfer, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SubmitGenericFee(ctx context.Context, in *SrcGenericFee, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ShowJobProgress(ctx context.Context, in *JobProgress, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetSettings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Settings, error)
	AppLog(ctx context.Context, in *AppLogMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	StreamRecords(ctx context.Context, in *StreamRecordsJob, opts ...grpc.CallOption) (FTaxes_StreamRecordsClient, error)
	PluginHeartbeat(ctx context.Context, in *PluginInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

FTaxesClient is the client API for FTaxes service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFTaxesClient

func NewFTaxesClient(cc grpc.ClientConnInterface) FTaxesClient

type FTaxesServer

type FTaxesServer interface {
	SubmitTrade(context.Context, *Trade) (*emptypb.Empty, error)
	SubmitTransfer(context.Context, *Transfer) (*emptypb.Empty, error)
	SubmitGenericFee(context.Context, *SrcGenericFee) (*emptypb.Empty, error)
	ShowJobProgress(context.Context, *JobProgress) (*emptypb.Empty, error)
	GetSettings(context.Context, *emptypb.Empty) (*Settings, error)
	AppLog(context.Context, *AppLogMsg) (*emptypb.Empty, error)
	StreamRecords(*StreamRecordsJob, FTaxes_StreamRecordsServer) error
	PluginHeartbeat(context.Context, *PluginInfo) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

FTaxesServer is the server API for FTaxes service. All implementations must embed UnimplementedFTaxesServer for forward compatibility

type FTaxes_StreamRecordsClient

type FTaxes_StreamRecordsClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type FTaxes_StreamRecordsServer

type FTaxes_StreamRecordsServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type JobProgress

type JobProgress struct {
	ID       string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Label    string `protobuf:"bytes,2,opt,name=Label,proto3" json:"Label,omitempty"`
	Progress string `protobuf:"bytes,3,opt,name=Progress,proto3" json:"Progress,omitempty"`
	Plugin   string `protobuf:"bytes,4,opt,name=Plugin,proto3" json:"Plugin,omitempty"`
	// contains filtered or unexported fields
}

func (*JobProgress) Descriptor deprecated

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

Deprecated: Use JobProgress.ProtoReflect.Descriptor instead.

func (*JobProgress) GetID

func (x *JobProgress) GetID() string

func (*JobProgress) GetLabel

func (x *JobProgress) GetLabel() string

func (*JobProgress) GetPlugin

func (x *JobProgress) GetPlugin() string

func (*JobProgress) GetProgress

func (x *JobProgress) GetProgress() string

func (*JobProgress) ProtoMessage

func (*JobProgress) ProtoMessage()

func (*JobProgress) ProtoReflect

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

func (*JobProgress) Reset

func (x *JobProgress) Reset()

func (*JobProgress) String

func (x *JobProgress) String() string

type LogLevel

type LogLevel int32
const (
	LogLevel_INFO LogLevel = 0
	LogLevel_WARN LogLevel = 1
	LogLevel_ERR  LogLevel = 2
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

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

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

type OrderType

type OrderType int32
const (
	OrderType_TAKER OrderType = 0
	OrderType_MAKER OrderType = 1
)

func (OrderType) Descriptor

func (OrderType) Descriptor() protoreflect.EnumDescriptor

func (OrderType) Enum

func (x OrderType) Enum() *OrderType

func (OrderType) EnumDescriptor deprecated

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

Deprecated: Use OrderType.Descriptor instead.

func (OrderType) Number

func (x OrderType) Number() protoreflect.EnumNumber

func (OrderType) String

func (x OrderType) String() string

func (OrderType) Type

type PluginCtlClient

type PluginCtlClient interface {
	ConvertPricesInTrade(ctx context.Context, in *TradeConversionJob, opts ...grpc.CallOption) (*Trade, error)
	ConvertPricesInTransfer(ctx context.Context, in *TransferConversionJob, opts ...grpc.CallOption) (*Transfer, error)
}

PluginCtlClient is the client API for PluginCtl service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPluginCtlClient

func NewPluginCtlClient(cc grpc.ClientConnInterface) PluginCtlClient

type PluginCtlServer

type PluginCtlServer interface {
	ConvertPricesInTrade(context.Context, *TradeConversionJob) (*Trade, error)
	ConvertPricesInTransfer(context.Context, *TransferConversionJob) (*Transfer, error)
	// contains filtered or unexported methods
}

PluginCtlServer is the server API for PluginCtl service. All implementations must embed UnimplementedPluginCtlServer for forward compatibility

type PluginInfo

type PluginInfo struct {
	ID           string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Version      string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"`
	HasCtlServer bool   `protobuf:"varint,3,opt,name=HasCtlServer,proto3" json:"HasCtlServer,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginInfo) Descriptor deprecated

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

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

func (*PluginInfo) GetHasCtlServer

func (x *PluginInfo) GetHasCtlServer() bool

func (*PluginInfo) GetID

func (x *PluginInfo) GetID() string

func (*PluginInfo) GetVersion

func (x *PluginInfo) GetVersion() string

func (*PluginInfo) ProtoMessage

func (*PluginInfo) ProtoMessage()

func (*PluginInfo) ProtoReflect

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

func (*PluginInfo) Reset

func (x *PluginInfo) Reset()

func (*PluginInfo) String

func (x *PluginInfo) String() string

type Props

type Props struct {
	IsMarginTrade bool `protobuf:"varint,1,opt,name=IsMarginTrade,proto3" json:"IsMarginTrade,omitempty"`
	IsDerivative  bool `protobuf:"varint,2,opt,name=IsDerivative,proto3" json:"IsDerivative,omitempty"`
	IsPhysical    bool `protobuf:"varint,3,opt,name=IsPhysical,proto3" json:"IsPhysical,omitempty"`
	// contains filtered or unexported fields
}

func (*Props) Descriptor deprecated

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

Deprecated: Use Props.ProtoReflect.Descriptor instead.

func (*Props) GetIsDerivative

func (x *Props) GetIsDerivative() bool

func (*Props) GetIsMarginTrade

func (x *Props) GetIsMarginTrade() bool

func (*Props) GetIsPhysical

func (x *Props) GetIsPhysical() bool

func (*Props) ProtoMessage

func (*Props) ProtoMessage()

func (*Props) ProtoReflect

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

func (*Props) Reset

func (x *Props) Reset()

func (*Props) String

func (x *Props) String() string

type Record

type Record struct {
	Trade    *Trade    `protobuf:"bytes,1,opt,name=Trade,proto3" json:"Trade,omitempty"`
	Transfer *Transfer `protobuf:"bytes,2,opt,name=Transfer,proto3" json:"Transfer,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetTrade

func (x *Record) GetTrade() *Trade

func (*Record) GetTransfer

func (x *Record) GetTransfer() *Transfer

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type Settings

type Settings struct {
	DateTimeFormat string `protobuf:"bytes,1,opt,name=DateTimeFormat,proto3" json:"DateTimeFormat,omitempty"`
	TimeZone       string `protobuf:"bytes,2,opt,name=TimeZone,proto3" json:"TimeZone,omitempty"`
	// contains filtered or unexported fields
}

func (*Settings) Descriptor deprecated

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

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetDateTimeFormat

func (x *Settings) GetDateTimeFormat() string

func (*Settings) GetTimeZone

func (x *Settings) GetTimeZone() string

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

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

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) String

func (x *Settings) String() string

type SrcGenericFee

type SrcGenericFee struct {
	TxID          string                 `protobuf:"bytes,1,opt,name=TxID,proto3" json:"TxID,omitempty"`
	Ts            *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Ts,proto3" json:"Ts,omitempty"`
	Account       string                 `protobuf:"bytes,3,opt,name=Account,proto3" json:"Account,omitempty"`
	Comment       string                 `protobuf:"bytes,4,opt,name=Comment,proto3" json:"Comment,omitempty"`
	Fee           string                 `protobuf:"bytes,3000,opt,name=Fee,proto3" json:"Fee,omitempty"`
	FeeCurrency   string                 `protobuf:"bytes,3001,opt,name=FeeCurrency,proto3" json:"FeeCurrency,omitempty"`
	Plugin        string                 `protobuf:"bytes,9000,opt,name=Plugin,proto3" json:"Plugin,omitempty"`
	PluginVersion string                 `protobuf:"bytes,9001,opt,name=PluginVersion,proto3" json:"PluginVersion,omitempty"`
	Created       *timestamppb.Timestamp `protobuf:"bytes,9002,opt,name=Created,proto3" json:"Created,omitempty"`
	Updated       *timestamppb.Timestamp `protobuf:"bytes,9003,opt,name=Updated,proto3" json:"Updated,omitempty"`
	// contains filtered or unexported fields
}

func (*SrcGenericFee) Descriptor deprecated

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

Deprecated: Use SrcGenericFee.ProtoReflect.Descriptor instead.

func (*SrcGenericFee) GetAccount

func (x *SrcGenericFee) GetAccount() string

func (*SrcGenericFee) GetComment

func (x *SrcGenericFee) GetComment() string

func (*SrcGenericFee) GetCreated

func (x *SrcGenericFee) GetCreated() *timestamppb.Timestamp

func (*SrcGenericFee) GetFee

func (x *SrcGenericFee) GetFee() string

func (*SrcGenericFee) GetFeeCurrency

func (x *SrcGenericFee) GetFeeCurrency() string

func (*SrcGenericFee) GetPlugin

func (x *SrcGenericFee) GetPlugin() string

func (*SrcGenericFee) GetPluginVersion

func (x *SrcGenericFee) GetPluginVersion() string

func (*SrcGenericFee) GetTs

func (x *SrcGenericFee) GetTs() *timestamppb.Timestamp

func (*SrcGenericFee) GetTxID

func (x *SrcGenericFee) GetTxID() string

func (*SrcGenericFee) GetUpdated

func (x *SrcGenericFee) GetUpdated() *timestamppb.Timestamp

func (*SrcGenericFee) ProtoMessage

func (*SrcGenericFee) ProtoMessage()

func (*SrcGenericFee) ProtoReflect

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

func (*SrcGenericFee) Reset

func (x *SrcGenericFee) Reset()

func (*SrcGenericFee) String

func (x *SrcGenericFee) String() string

type StreamRecordsJob

type StreamRecordsJob struct {
	From          *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=From,proto3" json:"From,omitempty"`
	To            *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"`
	Plugin        string                 `protobuf:"bytes,90,opt,name=Plugin,proto3" json:"Plugin,omitempty"`
	PluginVersion string                 `protobuf:"bytes,91,opt,name=PluginVersion,proto3" json:"PluginVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamRecordsJob) Descriptor deprecated

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

Deprecated: Use StreamRecordsJob.ProtoReflect.Descriptor instead.

func (*StreamRecordsJob) GetFrom

func (x *StreamRecordsJob) GetFrom() *timestamppb.Timestamp

func (*StreamRecordsJob) GetPlugin

func (x *StreamRecordsJob) GetPlugin() string

func (*StreamRecordsJob) GetPluginVersion

func (x *StreamRecordsJob) GetPluginVersion() string

func (*StreamRecordsJob) GetTo

func (*StreamRecordsJob) ProtoMessage

func (*StreamRecordsJob) ProtoMessage()

func (*StreamRecordsJob) ProtoReflect

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

func (*StreamRecordsJob) Reset

func (x *StreamRecordsJob) Reset()

func (*StreamRecordsJob) String

func (x *StreamRecordsJob) String() string

type Trade

type Trade struct {
	TxID                  string                 `protobuf:"bytes,1,opt,name=TxID,proto3" json:"TxID,omitempty"`
	Ts                    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Ts,proto3" json:"Ts,omitempty"`
	Account               string                 `protobuf:"bytes,3,opt,name=Account,proto3" json:"Account,omitempty"`
	Comment               string                 `protobuf:"bytes,4,opt,name=Comment,proto3" json:"Comment,omitempty"`
	Ticker                string                 `protobuf:"bytes,1000,opt,name=Ticker,proto3" json:"Ticker,omitempty"`
	Quote                 string                 `protobuf:"bytes,1001,opt,name=Quote,proto3" json:"Quote,omitempty"`
	Asset                 string                 `protobuf:"bytes,1002,opt,name=Asset,proto3" json:"Asset,omitempty"`
	SettlementCurrency    string                 `protobuf:"bytes,1003,opt,name=SettlementCurrency,proto3" json:"SettlementCurrency,omitempty"`
	Price                 string                 `protobuf:"bytes,2000,opt,name=Price,proto3" json:"Price,omitempty"`
	PriceC                string                 `protobuf:"bytes,2001,opt,name=PriceC,proto3" json:"PriceC,omitempty"`
	QuotePriceC           string                 `protobuf:"bytes,2002,opt,name=QuotePriceC,proto3" json:"QuotePriceC,omitempty"`
	PriceConvertedBy      string                 `protobuf:"bytes,2003,opt,name=PriceConvertedBy,proto3" json:"PriceConvertedBy,omitempty"`
	QuotePriceConvertedBy string                 `protobuf:"bytes,2004,opt,name=QuotePriceConvertedBy,proto3" json:"QuotePriceConvertedBy,omitempty"`
	Amount                string                 `protobuf:"bytes,2005,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Value                 string                 `protobuf:"bytes,2006,opt,name=Value,proto3" json:"Value,omitempty"`
	ValueC                string                 `protobuf:"bytes,2007,opt,name=ValueC,proto3" json:"ValueC,omitempty"`
	Action                TxAction               `protobuf:"varint,2008,opt,name=Action,proto3,enum=FTaxesGrpc.TxAction" json:"Action,omitempty"`
	OrderType             OrderType              `protobuf:"varint,2009,opt,name=OrderType,proto3,enum=FTaxesGrpc.OrderType" json:"OrderType,omitempty"`
	OrderID               string                 `protobuf:"bytes,2010,opt,name=OrderID,proto3" json:"OrderID,omitempty"`
	Fee                   *Cost                  `protobuf:"bytes,3000,opt,name=Fee,proto3" json:"Fee,omitempty"`
	QuoteFee              *Cost                  `protobuf:"bytes,3100,opt,name=QuoteFee,proto3" json:"QuoteFee,omitempty"`
	AssetDecimals         int32                  `protobuf:"varint,3200,opt,name=AssetDecimals,proto3" json:"AssetDecimals,omitempty"`
	QuoteDecimals         int32                  `protobuf:"varint,3201,opt,name=QuoteDecimals,proto3" json:"QuoteDecimals,omitempty"`
	Props                 *Props                 `protobuf:"bytes,4000,opt,name=Props,proto3" json:"Props,omitempty"`
	OtherCosts            []*Cost                `protobuf:"bytes,5000,rep,name=OtherCosts,proto3" json:"OtherCosts,omitempty"`
	Plugin                string                 `protobuf:"bytes,9000,opt,name=Plugin,proto3" json:"Plugin,omitempty"`
	PluginVersion         string                 `protobuf:"bytes,9001,opt,name=PluginVersion,proto3" json:"PluginVersion,omitempty"`
	Created               *timestamppb.Timestamp `protobuf:"bytes,9002,opt,name=Created,proto3" json:"Created,omitempty"`
	Updated               *timestamppb.Timestamp `protobuf:"bytes,9003,opt,name=Updated,proto3" json:"Updated,omitempty"`
	// contains filtered or unexported fields
}

func (*Trade) Descriptor deprecated

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

Deprecated: Use Trade.ProtoReflect.Descriptor instead.

func (*Trade) GetAccount

func (x *Trade) GetAccount() string

func (*Trade) GetAction

func (x *Trade) GetAction() TxAction

func (*Trade) GetAmount

func (x *Trade) GetAmount() string

func (*Trade) GetAsset

func (x *Trade) GetAsset() string

func (*Trade) GetAssetDecimals

func (x *Trade) GetAssetDecimals() int32

func (*Trade) GetComment

func (x *Trade) GetComment() string

func (*Trade) GetCreated

func (x *Trade) GetCreated() *timestamppb.Timestamp

func (*Trade) GetFee

func (x *Trade) GetFee() *Cost

func (*Trade) GetOrderID

func (x *Trade) GetOrderID() string

func (*Trade) GetOrderType

func (x *Trade) GetOrderType() OrderType

func (*Trade) GetOtherCosts

func (x *Trade) GetOtherCosts() []*Cost

func (*Trade) GetPlugin

func (x *Trade) GetPlugin() string

func (*Trade) GetPluginVersion

func (x *Trade) GetPluginVersion() string

func (*Trade) GetPrice

func (x *Trade) GetPrice() string

func (*Trade) GetPriceC

func (x *Trade) GetPriceC() string

func (*Trade) GetPriceConvertedBy

func (x *Trade) GetPriceConvertedBy() string

func (*Trade) GetProps

func (x *Trade) GetProps() *Props

func (*Trade) GetQuote

func (x *Trade) GetQuote() string

func (*Trade) GetQuoteDecimals

func (x *Trade) GetQuoteDecimals() int32

func (*Trade) GetQuoteFee

func (x *Trade) GetQuoteFee() *Cost

func (*Trade) GetQuotePriceC

func (x *Trade) GetQuotePriceC() string

func (*Trade) GetQuotePriceConvertedBy

func (x *Trade) GetQuotePriceConvertedBy() string

func (*Trade) GetSettlementCurrency

func (x *Trade) GetSettlementCurrency() string

func (*Trade) GetTicker

func (x *Trade) GetTicker() string

func (*Trade) GetTs

func (x *Trade) GetTs() *timestamppb.Timestamp

func (*Trade) GetTxID

func (x *Trade) GetTxID() string

func (*Trade) GetUpdated

func (x *Trade) GetUpdated() *timestamppb.Timestamp

func (*Trade) GetValue

func (x *Trade) GetValue() string

func (*Trade) GetValueC

func (x *Trade) GetValueC() string

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

type TradeConversionJob

type TradeConversionJob struct {
	Trade          *Trade `protobuf:"bytes,1,opt,name=Trade,proto3" json:"Trade,omitempty"`
	TargetCurrency string `protobuf:"bytes,2,opt,name=TargetCurrency,proto3" json:"TargetCurrency,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeConversionJob) Descriptor deprecated

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

Deprecated: Use TradeConversionJob.ProtoReflect.Descriptor instead.

func (*TradeConversionJob) GetTargetCurrency

func (x *TradeConversionJob) GetTargetCurrency() string

func (*TradeConversionJob) GetTrade

func (x *TradeConversionJob) GetTrade() *Trade

func (*TradeConversionJob) ProtoMessage

func (*TradeConversionJob) ProtoMessage()

func (*TradeConversionJob) ProtoReflect

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

func (*TradeConversionJob) Reset

func (x *TradeConversionJob) Reset()

func (*TradeConversionJob) String

func (x *TradeConversionJob) String() string

type Transfer

type Transfer struct {
	TxID           string                 `protobuf:"bytes,1,opt,name=TxID,proto3" json:"TxID,omitempty"`
	Ts             *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Ts,proto3" json:"Ts,omitempty"`
	Account        string                 `protobuf:"bytes,3,opt,name=Account,proto3" json:"Account,omitempty"`
	Source         string                 `protobuf:"bytes,4,opt,name=Source,proto3" json:"Source,omitempty"`
	Destination    string                 `protobuf:"bytes,5,opt,name=Destination,proto3" json:"Destination,omitempty"`
	Comment        string                 `protobuf:"bytes,6,opt,name=Comment,proto3" json:"Comment,omitempty"`
	Asset          string                 `protobuf:"bytes,1000,opt,name=Asset,proto3" json:"Asset,omitempty"`
	Amount         string                 `protobuf:"bytes,2001,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Action         TransferAction         `protobuf:"varint,2000,opt,name=Action,proto3,enum=FTaxesGrpc.TransferAction" json:"Action,omitempty"`
	Fee            string                 `protobuf:"bytes,3000,opt,name=Fee,proto3" json:"Fee,omitempty"`
	FeeC           string                 `protobuf:"bytes,3001,opt,name=FeeC,proto3" json:"FeeC,omitempty"`
	FeeConvertedBy string                 `protobuf:"bytes,3002,opt,name=FeeConvertedBy,proto3" json:"FeeConvertedBy,omitempty"`
	FeeCurrency    string                 `protobuf:"bytes,3003,opt,name=FeeCurrency,proto3" json:"FeeCurrency,omitempty"`
	FeePriceC      string                 `protobuf:"bytes,3004,opt,name=FeePriceC,proto3" json:"FeePriceC,omitempty"`
	AssetDecimals  int32                  `protobuf:"varint,4001,opt,name=AssetDecimals,proto3" json:"AssetDecimals,omitempty"`
	FeeDecimals    int32                  `protobuf:"varint,4002,opt,name=FeeDecimals,proto3" json:"FeeDecimals,omitempty"`
	Plugin         string                 `protobuf:"bytes,9000,opt,name=Plugin,proto3" json:"Plugin,omitempty"`
	PluginVersion  string                 `protobuf:"bytes,9001,opt,name=PluginVersion,proto3" json:"PluginVersion,omitempty"`
	Created        *timestamppb.Timestamp `protobuf:"bytes,9002,opt,name=Created,proto3" json:"Created,omitempty"`
	Updated        *timestamppb.Timestamp `protobuf:"bytes,9003,opt,name=Updated,proto3" json:"Updated,omitempty"`
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAccount

func (x *Transfer) GetAccount() string

func (*Transfer) GetAction

func (x *Transfer) GetAction() TransferAction

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() string

func (*Transfer) GetAsset

func (x *Transfer) GetAsset() string

func (*Transfer) GetAssetDecimals

func (x *Transfer) GetAssetDecimals() int32

func (*Transfer) GetComment

func (x *Transfer) GetComment() string

func (*Transfer) GetCreated

func (x *Transfer) GetCreated() *timestamppb.Timestamp

func (*Transfer) GetDestination

func (x *Transfer) GetDestination() string

func (*Transfer) GetFee

func (x *Transfer) GetFee() string

func (*Transfer) GetFeeC

func (x *Transfer) GetFeeC() string

func (*Transfer) GetFeeConvertedBy

func (x *Transfer) GetFeeConvertedBy() string

func (*Transfer) GetFeeCurrency

func (x *Transfer) GetFeeCurrency() string

func (*Transfer) GetFeeDecimals

func (x *Transfer) GetFeeDecimals() int32

func (*Transfer) GetFeePriceC

func (x *Transfer) GetFeePriceC() string

func (*Transfer) GetPlugin

func (x *Transfer) GetPlugin() string

func (*Transfer) GetPluginVersion

func (x *Transfer) GetPluginVersion() string

func (*Transfer) GetSource

func (x *Transfer) GetSource() string

func (*Transfer) GetTs

func (x *Transfer) GetTs() *timestamppb.Timestamp

func (*Transfer) GetTxID

func (x *Transfer) GetTxID() string

func (*Transfer) GetUpdated

func (x *Transfer) GetUpdated() *timestamppb.Timestamp

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

type TransferAction

type TransferAction int32
const (
	TransferAction_DEPOSIT    TransferAction = 0
	TransferAction_WITHDRAWAL TransferAction = 1
)

func (TransferAction) Descriptor

func (TransferAction) Enum

func (x TransferAction) Enum() *TransferAction

func (TransferAction) EnumDescriptor deprecated

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

Deprecated: Use TransferAction.Descriptor instead.

func (TransferAction) Number

func (TransferAction) String

func (x TransferAction) String() string

func (TransferAction) Type

type TransferConversionJob

type TransferConversionJob struct {
	Transfer       *Transfer `protobuf:"bytes,1,opt,name=Transfer,proto3" json:"Transfer,omitempty"`
	TargetCurrency string    `protobuf:"bytes,2,opt,name=TargetCurrency,proto3" json:"TargetCurrency,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferConversionJob) Descriptor deprecated

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

Deprecated: Use TransferConversionJob.ProtoReflect.Descriptor instead.

func (*TransferConversionJob) GetTargetCurrency

func (x *TransferConversionJob) GetTargetCurrency() string

func (*TransferConversionJob) GetTransfer

func (x *TransferConversionJob) GetTransfer() *Transfer

func (*TransferConversionJob) ProtoMessage

func (*TransferConversionJob) ProtoMessage()

func (*TransferConversionJob) ProtoReflect

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

func (*TransferConversionJob) Reset

func (x *TransferConversionJob) Reset()

func (*TransferConversionJob) String

func (x *TransferConversionJob) String() string

type TxAction

type TxAction int32
const (
	TxAction_BUY  TxAction = 0
	TxAction_SELL TxAction = 1
)

func (TxAction) Descriptor

func (TxAction) Descriptor() protoreflect.EnumDescriptor

func (TxAction) Enum

func (x TxAction) Enum() *TxAction

func (TxAction) EnumDescriptor deprecated

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

Deprecated: Use TxAction.Descriptor instead.

func (TxAction) Number

func (x TxAction) Number() protoreflect.EnumNumber

func (TxAction) String

func (x TxAction) String() string

func (TxAction) Type

type TxUpdate

type TxUpdate struct {
	Since *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Since,proto3" json:"Since,omitempty"`
	// contains filtered or unexported fields
}

func (*TxUpdate) Descriptor deprecated

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

Deprecated: Use TxUpdate.ProtoReflect.Descriptor instead.

func (*TxUpdate) GetSince

func (x *TxUpdate) GetSince() *timestamppb.Timestamp

func (*TxUpdate) ProtoMessage

func (*TxUpdate) ProtoMessage()

func (*TxUpdate) ProtoReflect

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

func (*TxUpdate) Reset

func (x *TxUpdate) Reset()

func (*TxUpdate) String

func (x *TxUpdate) String() string

type UnimplementedFTaxesServer

type UnimplementedFTaxesServer struct {
}

UnimplementedFTaxesServer must be embedded to have forward compatible implementations.

func (UnimplementedFTaxesServer) AppLog

func (UnimplementedFTaxesServer) GetSettings

func (UnimplementedFTaxesServer) PluginHeartbeat

func (UnimplementedFTaxesServer) ShowJobProgress

func (UnimplementedFTaxesServer) StreamRecords

func (UnimplementedFTaxesServer) SubmitGenericFee

func (UnimplementedFTaxesServer) SubmitTrade

func (UnimplementedFTaxesServer) SubmitTransfer

type UnimplementedPluginCtlServer

type UnimplementedPluginCtlServer struct {
}

UnimplementedPluginCtlServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginCtlServer) ConvertPricesInTrade

func (UnimplementedPluginCtlServer) ConvertPricesInTransfer

type UnsafeFTaxesServer

type UnsafeFTaxesServer interface {
	// contains filtered or unexported methods
}

UnsafeFTaxesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FTaxesServer will result in compilation errors.

type UnsafePluginCtlServer

type UnsafePluginCtlServer interface {
	// contains filtered or unexported methods
}

UnsafePluginCtlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginCtlServer will result in compilation errors.

Jump to

Keyboard shortcuts

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