btrpc

package
v0.0.0-...-f1ff951 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 17 Imported by: 0

README

GoCryptoTrader Backtester: Btrpc package

Build Status Software License GoDoc Coverage Status Go Report Card

This btrpc package is part of the GoCryptoTrader codebase.

This is still in active development

You can track ideas, planned features and what's in progress on this Trello board: https://trello.com/b/ZAhMhpOy/gocryptotrader.

Join our slack to discuss all things related to GoCryptoTrader! GoCryptoTrader Slack

Btrpc overview

The GoCryptoTrader Backtester utilises gRPC for client/server interaction. Authentication is done by a self signed TLS cert, which only supports connections from localhost and also through basic authorisation specified by the users config file.

The GoCryptoTrader Backtester also supports a gRPC JSON proxy service for applications which can be toggled on or off depending on the users preference. This can be found in your config file under grpcProxyEnabled grpcProxyListenAddress. See btrpc.swagger.json for endpoint definitions

Installation

The GoCryptoTrader Backtester requires a local installation of the Google protocol buffers compiler protoc v3.0.0 or above. Please install this via your local package manager or by downloading one of the releases from the official repository:

protoc releases

Then use go install to download the following packages:

go install \
    github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
    github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
    google.golang.org/protobuf/cmd/protoc-gen-go \
    google.golang.org/grpc/cmd/protoc-gen-go-grpc

This will place the following binaries in your $GOBIN;

  • protoc-gen-grpc-gateway
  • protoc-gen-openapiv2
  • protoc-gen-go
  • protoc-gen-go-grpc

Make sure that your $GOBIN is in your $PATH.

Linux / macOS / Windows

The GoCryptoTrader Backtester requires a local installation of the buf cli tool that tries to make Protobuf handling more easier and reliable, after installation you'll need to run:

buf mod update

After previous command, make necessary changes to the rpc.proto spec file and run the generation command:

buf generate

If any changes were made, ensure that the rpc.proto file is formatted correctly by using buf format -w

Please click GoDocs chevron above to view current GoDoc information for this package

Contribution

Please feel free to submit any pull requests or suggest any desired features to be added.

When submitting a PR, please abide by our coding guidelines:

  • Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
  • Code must be documented adhering to the official Go commentary guidelines.
  • Code must adhere to our coding style.
  • Pull requests need to be based on and opened against the master branch.

Donations

If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:

bc1qk0jareu4jytc0cfrhr5wgshsq8282awpavfahc

Documentation

Overview

Package btrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	BacktesterService_ExecuteStrategyFromFile_FullMethodName   = "/btrpc.BacktesterService/ExecuteStrategyFromFile"
	BacktesterService_ExecuteStrategyFromConfig_FullMethodName = "/btrpc.BacktesterService/ExecuteStrategyFromConfig"
	BacktesterService_ListAllTasks_FullMethodName              = "/btrpc.BacktesterService/ListAllTasks"
	BacktesterService_StartTask_FullMethodName                 = "/btrpc.BacktesterService/StartTask"
	BacktesterService_StartAllTasks_FullMethodName             = "/btrpc.BacktesterService/StartAllTasks"
	BacktesterService_StopTask_FullMethodName                  = "/btrpc.BacktesterService/StopTask"
	BacktesterService_StopAllTasks_FullMethodName              = "/btrpc.BacktesterService/StopAllTasks"
	BacktesterService_ClearTask_FullMethodName                 = "/btrpc.BacktesterService/ClearTask"
	BacktesterService_ClearAllTasks_FullMethodName             = "/btrpc.BacktesterService/ClearAllTasks"
)

Variables

View Source
var BacktesterService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "btrpc.BacktesterService",
	HandlerType: (*BacktesterServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExecuteStrategyFromFile",
			Handler:    _BacktesterService_ExecuteStrategyFromFile_Handler,
		},
		{
			MethodName: "ExecuteStrategyFromConfig",
			Handler:    _BacktesterService_ExecuteStrategyFromConfig_Handler,
		},
		{
			MethodName: "ListAllTasks",
			Handler:    _BacktesterService_ListAllTasks_Handler,
		},
		{
			MethodName: "StartTask",
			Handler:    _BacktesterService_StartTask_Handler,
		},
		{
			MethodName: "StartAllTasks",
			Handler:    _BacktesterService_StartAllTasks_Handler,
		},
		{
			MethodName: "StopTask",
			Handler:    _BacktesterService_StopTask_Handler,
		},
		{
			MethodName: "StopAllTasks",
			Handler:    _BacktesterService_StopAllTasks_Handler,
		},
		{
			MethodName: "ClearTask",
			Handler:    _BacktesterService_ClearTask_Handler,
		},
		{
			MethodName: "ClearAllTasks",
			Handler:    _BacktesterService_ClearAllTasks_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "btrpc.proto",
}

BacktesterService_ServiceDesc is the grpc.ServiceDesc for BacktesterService 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_btrpc_proto protoreflect.FileDescriptor

Functions

func RegisterBacktesterServiceHandler

func RegisterBacktesterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBacktesterServiceHandler registers the http handlers for service BacktesterService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBacktesterServiceHandlerClient

func RegisterBacktesterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BacktesterServiceClient) error

RegisterBacktesterServiceHandlerClient registers the http handlers for service BacktesterService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BacktesterServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BacktesterServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BacktesterServiceClient" to call the correct interceptors.

func RegisterBacktesterServiceHandlerFromEndpoint

func RegisterBacktesterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterBacktesterServiceHandlerFromEndpoint is same as RegisterBacktesterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterBacktesterServiceHandlerServer

func RegisterBacktesterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BacktesterServiceServer) error

RegisterBacktesterServiceHandlerServer registers the http handlers for service BacktesterService to "mux". UnaryRPC :call BacktesterServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBacktesterServiceHandlerFromEndpoint instead.

func RegisterBacktesterServiceServer

func RegisterBacktesterServiceServer(s grpc.ServiceRegistrar, srv BacktesterServiceServer)

Types

type ApiData

type ApiData struct {
	StartDate        *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	InclusiveEndDate bool                   `protobuf:"varint,3,opt,name=inclusive_end_date,json=inclusiveEndDate,proto3" json:"inclusive_end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiData) Descriptor deprecated

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

Deprecated: Use ApiData.ProtoReflect.Descriptor instead.

func (*ApiData) GetEndDate

func (x *ApiData) GetEndDate() *timestamppb.Timestamp

func (*ApiData) GetInclusiveEndDate

func (x *ApiData) GetInclusiveEndDate() bool

func (*ApiData) GetStartDate

func (x *ApiData) GetStartDate() *timestamppb.Timestamp

func (*ApiData) ProtoMessage

func (*ApiData) ProtoMessage()

func (*ApiData) ProtoReflect

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

func (*ApiData) Reset

func (x *ApiData) Reset()

func (*ApiData) String

func (x *ApiData) String() string

type BacktesterServiceClient

type BacktesterServiceClient interface {
	ExecuteStrategyFromFile(ctx context.Context, in *ExecuteStrategyFromFileRequest, opts ...grpc.CallOption) (*ExecuteStrategyResponse, error)
	ExecuteStrategyFromConfig(ctx context.Context, in *ExecuteStrategyFromConfigRequest, opts ...grpc.CallOption) (*ExecuteStrategyResponse, error)
	ListAllTasks(ctx context.Context, in *ListAllTasksRequest, opts ...grpc.CallOption) (*ListAllTasksResponse, error)
	StartTask(ctx context.Context, in *StartTaskRequest, opts ...grpc.CallOption) (*StartTaskResponse, error)
	StartAllTasks(ctx context.Context, in *StartAllTasksRequest, opts ...grpc.CallOption) (*StartAllTasksResponse, error)
	StopTask(ctx context.Context, in *StopTaskRequest, opts ...grpc.CallOption) (*StopTaskResponse, error)
	StopAllTasks(ctx context.Context, in *StopAllTasksRequest, opts ...grpc.CallOption) (*StopAllTasksResponse, error)
	ClearTask(ctx context.Context, in *ClearTaskRequest, opts ...grpc.CallOption) (*ClearTaskResponse, error)
	ClearAllTasks(ctx context.Context, in *ClearAllTasksRequest, opts ...grpc.CallOption) (*ClearAllTasksResponse, error)
}

BacktesterServiceClient is the client API for BacktesterService 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.

type BacktesterServiceServer

BacktesterServiceServer is the server API for BacktesterService service. All implementations must embed UnimplementedBacktesterServiceServer for forward compatibility

type CSVData

type CSVData struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*CSVData) Descriptor deprecated

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

Deprecated: Use CSVData.ProtoReflect.Descriptor instead.

func (*CSVData) GetPath

func (x *CSVData) GetPath() string

func (*CSVData) ProtoMessage

func (*CSVData) ProtoMessage()

func (*CSVData) ProtoReflect

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

func (*CSVData) Reset

func (x *CSVData) Reset()

func (*CSVData) String

func (x *CSVData) String() string

type ClearAllTasksRequest

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

func (*ClearAllTasksRequest) Descriptor deprecated

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

Deprecated: Use ClearAllTasksRequest.ProtoReflect.Descriptor instead.

func (*ClearAllTasksRequest) ProtoMessage

func (*ClearAllTasksRequest) ProtoMessage()

func (*ClearAllTasksRequest) ProtoReflect

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

func (*ClearAllTasksRequest) Reset

func (x *ClearAllTasksRequest) Reset()

func (*ClearAllTasksRequest) String

func (x *ClearAllTasksRequest) String() string

type ClearAllTasksResponse

type ClearAllTasksResponse struct {
	ClearedTasks   []*TaskSummary `protobuf:"bytes,1,rep,name=cleared_tasks,json=clearedTasks,proto3" json:"cleared_tasks,omitempty"`
	RemainingTasks []*TaskSummary `protobuf:"bytes,2,rep,name=remaining_tasks,json=remainingTasks,proto3" json:"remaining_tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearAllTasksResponse) Descriptor deprecated

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

Deprecated: Use ClearAllTasksResponse.ProtoReflect.Descriptor instead.

func (*ClearAllTasksResponse) GetClearedTasks

func (x *ClearAllTasksResponse) GetClearedTasks() []*TaskSummary

func (*ClearAllTasksResponse) GetRemainingTasks

func (x *ClearAllTasksResponse) GetRemainingTasks() []*TaskSummary

func (*ClearAllTasksResponse) ProtoMessage

func (*ClearAllTasksResponse) ProtoMessage()

func (*ClearAllTasksResponse) ProtoReflect

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

func (*ClearAllTasksResponse) Reset

func (x *ClearAllTasksResponse) Reset()

func (*ClearAllTasksResponse) String

func (x *ClearAllTasksResponse) String() string

type ClearTaskRequest

type ClearTaskRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearTaskRequest) Descriptor deprecated

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

Deprecated: Use ClearTaskRequest.ProtoReflect.Descriptor instead.

func (*ClearTaskRequest) GetId

func (x *ClearTaskRequest) GetId() string

func (*ClearTaskRequest) ProtoMessage

func (*ClearTaskRequest) ProtoMessage()

func (*ClearTaskRequest) ProtoReflect

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

func (*ClearTaskRequest) Reset

func (x *ClearTaskRequest) Reset()

func (*ClearTaskRequest) String

func (x *ClearTaskRequest) String() string

type ClearTaskResponse

type ClearTaskResponse struct {
	ClearedTask *TaskSummary `protobuf:"bytes,1,opt,name=cleared_task,json=clearedTask,proto3" json:"cleared_task,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearTaskResponse) Descriptor deprecated

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

Deprecated: Use ClearTaskResponse.ProtoReflect.Descriptor instead.

func (*ClearTaskResponse) GetClearedTask

func (x *ClearTaskResponse) GetClearedTask() *TaskSummary

func (*ClearTaskResponse) ProtoMessage

func (*ClearTaskResponse) ProtoMessage()

func (*ClearTaskResponse) ProtoReflect

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

func (*ClearTaskResponse) Reset

func (x *ClearTaskResponse) Reset()

func (*ClearTaskResponse) String

func (x *ClearTaskResponse) String() string

type Config

type Config struct {
	Nickname          string              `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Goal              string              `protobuf:"bytes,2,opt,name=goal,proto3" json:"goal,omitempty"`
	StrategySettings  *StrategySettings   `protobuf:"bytes,3,opt,name=strategy_settings,json=strategySettings,proto3" json:"strategy_settings,omitempty"`
	FundingSettings   *FundingSettings    `protobuf:"bytes,4,opt,name=funding_settings,json=fundingSettings,proto3" json:"funding_settings,omitempty"`
	CurrencySettings  []*CurrencySettings `protobuf:"bytes,5,rep,name=currency_settings,json=currencySettings,proto3" json:"currency_settings,omitempty"`
	DataSettings      *DataSettings       `protobuf:"bytes,6,opt,name=data_settings,json=dataSettings,proto3" json:"data_settings,omitempty"`
	PortfolioSettings *PortfolioSettings  `protobuf:"bytes,7,opt,name=portfolio_settings,json=portfolioSettings,proto3" json:"portfolio_settings,omitempty"`
	StatisticSettings *StatisticSettings  `protobuf:"bytes,8,opt,name=statistic_settings,json=statisticSettings,proto3" json:"statistic_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCurrencySettings

func (x *Config) GetCurrencySettings() []*CurrencySettings

func (*Config) GetDataSettings

func (x *Config) GetDataSettings() *DataSettings

func (*Config) GetFundingSettings

func (x *Config) GetFundingSettings() *FundingSettings

func (*Config) GetGoal

func (x *Config) GetGoal() string

func (*Config) GetNickname

func (x *Config) GetNickname() string

func (*Config) GetPortfolioSettings

func (x *Config) GetPortfolioSettings() *PortfolioSettings

func (*Config) GetStatisticSettings

func (x *Config) GetStatisticSettings() *StatisticSettings

func (*Config) GetStrategySettings

func (x *Config) GetStrategySettings() *StrategySettings

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Credentials

type Credentials struct {
	Exchange string               `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Keys     *ExchangeCredentials `protobuf:"bytes,2,opt,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*Credentials) Descriptor deprecated

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

Deprecated: Use Credentials.ProtoReflect.Descriptor instead.

func (*Credentials) GetExchange

func (x *Credentials) GetExchange() string

func (*Credentials) GetKeys

func (x *Credentials) GetKeys() *ExchangeCredentials

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) ProtoReflect

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

func (*Credentials) Reset

func (x *Credentials) Reset()

func (*Credentials) String

func (x *Credentials) String() string

type CsvData

type CsvData struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*CsvData) Descriptor deprecated

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

Deprecated: Use CsvData.ProtoReflect.Descriptor instead.

func (*CsvData) GetPath

func (x *CsvData) GetPath() string

func (*CsvData) ProtoMessage

func (*CsvData) ProtoMessage()

func (*CsvData) ProtoReflect

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

func (*CsvData) Reset

func (x *CsvData) Reset()

func (*CsvData) String

func (x *CsvData) String() string

type CurrencySettings

type CurrencySettings struct {
	ExchangeName              string          `protobuf:"bytes,1,opt,name=exchange_name,json=exchangeName,proto3" json:"exchange_name,omitempty"`
	Asset                     string          `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	Base                      string          `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"`
	Quote                     string          `protobuf:"bytes,4,opt,name=quote,proto3" json:"quote,omitempty"`
	BuySide                   *PurchaseSide   `protobuf:"bytes,5,opt,name=buy_side,json=buySide,proto3" json:"buy_side,omitempty"`
	SellSide                  *PurchaseSide   `protobuf:"bytes,6,opt,name=sell_side,json=sellSide,proto3" json:"sell_side,omitempty"`
	MinSlippagePercent        string          `protobuf:"bytes,7,opt,name=min_slippage_percent,json=minSlippagePercent,proto3" json:"min_slippage_percent,omitempty"`
	MaxSlippagePercent        string          `protobuf:"bytes,8,opt,name=max_slippage_percent,json=maxSlippagePercent,proto3" json:"max_slippage_percent,omitempty"`
	MakerFeeOverride          string          `protobuf:"bytes,9,opt,name=maker_fee_override,json=makerFeeOverride,proto3" json:"maker_fee_override,omitempty"`
	TakerFeeOverride          string          `protobuf:"bytes,10,opt,name=taker_fee_override,json=takerFeeOverride,proto3" json:"taker_fee_override,omitempty"`
	MaximumHoldingsRatio      string          `protobuf:"bytes,11,opt,name=maximum_holdings_ratio,json=maximumHoldingsRatio,proto3" json:"maximum_holdings_ratio,omitempty"`
	SkipCandleVolumeFitting   bool            `` /* 136-byte string literal not displayed */
	UseExchangeOrderLimits    bool            `` /* 133-byte string literal not displayed */
	UseExchangePnlCalculation bool            `` /* 142-byte string literal not displayed */
	SpotDetails               *SpotDetails    `protobuf:"bytes,15,opt,name=spot_details,json=spotDetails,proto3" json:"spot_details,omitempty"`
	FuturesDetails            *FuturesDetails `protobuf:"bytes,16,opt,name=futures_details,json=futuresDetails,proto3" json:"futures_details,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrencySettings) Descriptor deprecated

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

Deprecated: Use CurrencySettings.ProtoReflect.Descriptor instead.

func (*CurrencySettings) GetAsset

func (x *CurrencySettings) GetAsset() string

func (*CurrencySettings) GetBase

func (x *CurrencySettings) GetBase() string

func (*CurrencySettings) GetBuySide

func (x *CurrencySettings) GetBuySide() *PurchaseSide

func (*CurrencySettings) GetExchangeName

func (x *CurrencySettings) GetExchangeName() string

func (*CurrencySettings) GetFuturesDetails

func (x *CurrencySettings) GetFuturesDetails() *FuturesDetails

func (*CurrencySettings) GetMakerFeeOverride

func (x *CurrencySettings) GetMakerFeeOverride() string

func (*CurrencySettings) GetMaxSlippagePercent

func (x *CurrencySettings) GetMaxSlippagePercent() string

func (*CurrencySettings) GetMaximumHoldingsRatio

func (x *CurrencySettings) GetMaximumHoldingsRatio() string

func (*CurrencySettings) GetMinSlippagePercent

func (x *CurrencySettings) GetMinSlippagePercent() string

func (*CurrencySettings) GetQuote

func (x *CurrencySettings) GetQuote() string

func (*CurrencySettings) GetSellSide

func (x *CurrencySettings) GetSellSide() *PurchaseSide

func (*CurrencySettings) GetSkipCandleVolumeFitting

func (x *CurrencySettings) GetSkipCandleVolumeFitting() bool

func (*CurrencySettings) GetSpotDetails

func (x *CurrencySettings) GetSpotDetails() *SpotDetails

func (*CurrencySettings) GetTakerFeeOverride

func (x *CurrencySettings) GetTakerFeeOverride() string

func (*CurrencySettings) GetUseExchangeOrderLimits

func (x *CurrencySettings) GetUseExchangeOrderLimits() bool

func (*CurrencySettings) GetUseExchangePnlCalculation

func (x *CurrencySettings) GetUseExchangePnlCalculation() bool

func (*CurrencySettings) ProtoMessage

func (*CurrencySettings) ProtoMessage()

func (*CurrencySettings) ProtoReflect

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

func (*CurrencySettings) Reset

func (x *CurrencySettings) Reset()

func (*CurrencySettings) String

func (x *CurrencySettings) String() string

type CustomSettings

type CustomSettings struct {
	KeyField string `protobuf:"bytes,1,opt,name=key_field,json=keyField,proto3" json:"key_field,omitempty"`
	KeyValue string `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomSettings) Descriptor deprecated

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

Deprecated: Use CustomSettings.ProtoReflect.Descriptor instead.

func (*CustomSettings) GetKeyField

func (x *CustomSettings) GetKeyField() string

func (*CustomSettings) GetKeyValue

func (x *CustomSettings) GetKeyValue() string

func (*CustomSettings) ProtoMessage

func (*CustomSettings) ProtoMessage()

func (*CustomSettings) ProtoReflect

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

func (*CustomSettings) Reset

func (x *CustomSettings) Reset()

func (*CustomSettings) String

func (x *CustomSettings) String() string

type DataSettings

type DataSettings struct {
	Interval     uint64        `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
	Datatype     string        `protobuf:"bytes,2,opt,name=datatype,proto3" json:"datatype,omitempty"`
	ApiData      *ApiData      `protobuf:"bytes,3,opt,name=api_data,json=apiData,proto3" json:"api_data,omitempty"`
	DatabaseData *DatabaseData `protobuf:"bytes,4,opt,name=database_data,json=databaseData,proto3" json:"database_data,omitempty"`
	CsvData      *CSVData      `protobuf:"bytes,5,opt,name=csv_data,json=csvData,proto3" json:"csv_data,omitempty"`
	LiveData     *LiveData     `protobuf:"bytes,6,opt,name=live_data,json=liveData,proto3" json:"live_data,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSettings) Descriptor deprecated

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

Deprecated: Use DataSettings.ProtoReflect.Descriptor instead.

func (*DataSettings) GetApiData

func (x *DataSettings) GetApiData() *ApiData

func (*DataSettings) GetCsvData

func (x *DataSettings) GetCsvData() *CSVData

func (*DataSettings) GetDatabaseData

func (x *DataSettings) GetDatabaseData() *DatabaseData

func (*DataSettings) GetDatatype

func (x *DataSettings) GetDatatype() string

func (*DataSettings) GetInterval

func (x *DataSettings) GetInterval() uint64

func (*DataSettings) GetLiveData

func (x *DataSettings) GetLiveData() *LiveData

func (*DataSettings) ProtoMessage

func (*DataSettings) ProtoMessage()

func (*DataSettings) ProtoReflect

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

func (*DataSettings) Reset

func (x *DataSettings) Reset()

func (*DataSettings) String

func (x *DataSettings) String() string

type DatabaseConfig

type DatabaseConfig struct {
	Enabled bool                       `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Verbose bool                       `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
	Driver  string                     `protobuf:"bytes,3,opt,name=driver,proto3" json:"driver,omitempty"`
	Config  *DatabaseConnectionDetails `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabaseConfig) Descriptor deprecated

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

Deprecated: Use DatabaseConfig.ProtoReflect.Descriptor instead.

func (*DatabaseConfig) GetConfig

func (x *DatabaseConfig) GetConfig() *DatabaseConnectionDetails

func (*DatabaseConfig) GetDriver

func (x *DatabaseConfig) GetDriver() string

func (*DatabaseConfig) GetEnabled

func (x *DatabaseConfig) GetEnabled() bool

func (*DatabaseConfig) GetVerbose

func (x *DatabaseConfig) GetVerbose() bool

func (*DatabaseConfig) ProtoMessage

func (*DatabaseConfig) ProtoMessage()

func (*DatabaseConfig) ProtoReflect

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

func (*DatabaseConfig) Reset

func (x *DatabaseConfig) Reset()

func (*DatabaseConfig) String

func (x *DatabaseConfig) String() string

type DatabaseConnectionDetails

type DatabaseConnectionDetails struct {
	Host     string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port     uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Database string `protobuf:"bytes,5,opt,name=database,proto3" json:"database,omitempty"`
	SslMode  string `protobuf:"bytes,6,opt,name=ssl_mode,json=sslMode,proto3" json:"ssl_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabaseConnectionDetails) Descriptor deprecated

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

Deprecated: Use DatabaseConnectionDetails.ProtoReflect.Descriptor instead.

func (*DatabaseConnectionDetails) GetDatabase

func (x *DatabaseConnectionDetails) GetDatabase() string

func (*DatabaseConnectionDetails) GetHost

func (x *DatabaseConnectionDetails) GetHost() string

func (*DatabaseConnectionDetails) GetPassword

func (x *DatabaseConnectionDetails) GetPassword() string

func (*DatabaseConnectionDetails) GetPort

func (x *DatabaseConnectionDetails) GetPort() uint32

func (*DatabaseConnectionDetails) GetSslMode

func (x *DatabaseConnectionDetails) GetSslMode() string

func (*DatabaseConnectionDetails) GetUserName

func (x *DatabaseConnectionDetails) GetUserName() string

func (*DatabaseConnectionDetails) ProtoMessage

func (*DatabaseConnectionDetails) ProtoMessage()

func (*DatabaseConnectionDetails) ProtoReflect

func (*DatabaseConnectionDetails) Reset

func (x *DatabaseConnectionDetails) Reset()

func (*DatabaseConnectionDetails) String

func (x *DatabaseConnectionDetails) String() string

type DatabaseData

type DatabaseData struct {
	StartDate        *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	Config           *DatabaseConfig        `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Path             string                 `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	InclusiveEndDate bool                   `protobuf:"varint,5,opt,name=inclusive_end_date,json=inclusiveEndDate,proto3" json:"inclusive_end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabaseData) Descriptor deprecated

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

Deprecated: Use DatabaseData.ProtoReflect.Descriptor instead.

func (*DatabaseData) GetConfig

func (x *DatabaseData) GetConfig() *DatabaseConfig

func (*DatabaseData) GetEndDate

func (x *DatabaseData) GetEndDate() *timestamppb.Timestamp

func (*DatabaseData) GetInclusiveEndDate

func (x *DatabaseData) GetInclusiveEndDate() bool

func (*DatabaseData) GetPath

func (x *DatabaseData) GetPath() string

func (*DatabaseData) GetStartDate

func (x *DatabaseData) GetStartDate() *timestamppb.Timestamp

func (*DatabaseData) ProtoMessage

func (*DatabaseData) ProtoMessage()

func (*DatabaseData) ProtoReflect

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

func (*DatabaseData) Reset

func (x *DatabaseData) Reset()

func (*DatabaseData) String

func (x *DatabaseData) String() string

type DbConfig

type DbConfig struct {
	Enabled  bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Verbose  bool   `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
	Driver   string `protobuf:"bytes,3,opt,name=driver,proto3" json:"driver,omitempty"`
	Host     string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	Port     uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"`
	Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"`
	Database string `protobuf:"bytes,8,opt,name=database,proto3" json:"database,omitempty"`
	SslMode  string `protobuf:"bytes,9,opt,name=ssl_mode,json=sslMode,proto3" json:"ssl_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*DbConfig) Descriptor deprecated

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

Deprecated: Use DbConfig.ProtoReflect.Descriptor instead.

func (*DbConfig) GetDatabase

func (x *DbConfig) GetDatabase() string

func (*DbConfig) GetDriver

func (x *DbConfig) GetDriver() string

func (*DbConfig) GetEnabled

func (x *DbConfig) GetEnabled() bool

func (*DbConfig) GetHost

func (x *DbConfig) GetHost() string

func (*DbConfig) GetPassword

func (x *DbConfig) GetPassword() string

func (*DbConfig) GetPort

func (x *DbConfig) GetPort() uint32

func (*DbConfig) GetSslMode

func (x *DbConfig) GetSslMode() string

func (*DbConfig) GetUsername

func (x *DbConfig) GetUsername() string

func (*DbConfig) GetVerbose

func (x *DbConfig) GetVerbose() bool

func (*DbConfig) ProtoMessage

func (*DbConfig) ProtoMessage()

func (*DbConfig) ProtoReflect

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

func (*DbConfig) Reset

func (x *DbConfig) Reset()

func (*DbConfig) String

func (x *DbConfig) String() string

type DbData

type DbData struct {
	StartDate        *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	Config           *DbConfig              `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Path             string                 `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	InclusiveEndDate bool                   `protobuf:"varint,5,opt,name=inclusive_end_date,json=inclusiveEndDate,proto3" json:"inclusive_end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*DbData) Descriptor deprecated

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

Deprecated: Use DbData.ProtoReflect.Descriptor instead.

func (*DbData) GetConfig

func (x *DbData) GetConfig() *DbConfig

func (*DbData) GetEndDate

func (x *DbData) GetEndDate() *timestamppb.Timestamp

func (*DbData) GetInclusiveEndDate

func (x *DbData) GetInclusiveEndDate() bool

func (*DbData) GetPath

func (x *DbData) GetPath() string

func (*DbData) GetStartDate

func (x *DbData) GetStartDate() *timestamppb.Timestamp

func (*DbData) ProtoMessage

func (*DbData) ProtoMessage()

func (*DbData) ProtoReflect

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

func (*DbData) Reset

func (x *DbData) Reset()

func (*DbData) String

func (x *DbData) String() string

type ExchangeCredentials

type ExchangeCredentials struct {
	Key             string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Secret          string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	ClientId        string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	PemKey          string `protobuf:"bytes,4,opt,name=pem_key,json=pemKey,proto3" json:"pem_key,omitempty"`
	SubAccount      string `protobuf:"bytes,5,opt,name=sub_account,json=subAccount,proto3" json:"sub_account,omitempty"`
	OneTimePassword string `protobuf:"bytes,6,opt,name=one_time_password,json=oneTimePassword,proto3" json:"one_time_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeCredentials) Descriptor deprecated

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

Deprecated: Use ExchangeCredentials.ProtoReflect.Descriptor instead.

func (*ExchangeCredentials) GetClientId

func (x *ExchangeCredentials) GetClientId() string

func (*ExchangeCredentials) GetKey

func (x *ExchangeCredentials) GetKey() string

func (*ExchangeCredentials) GetOneTimePassword

func (x *ExchangeCredentials) GetOneTimePassword() string

func (*ExchangeCredentials) GetPemKey

func (x *ExchangeCredentials) GetPemKey() string

func (*ExchangeCredentials) GetSecret

func (x *ExchangeCredentials) GetSecret() string

func (*ExchangeCredentials) GetSubAccount

func (x *ExchangeCredentials) GetSubAccount() string

func (*ExchangeCredentials) ProtoMessage

func (*ExchangeCredentials) ProtoMessage()

func (*ExchangeCredentials) ProtoReflect

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

func (*ExchangeCredentials) Reset

func (x *ExchangeCredentials) Reset()

func (*ExchangeCredentials) String

func (x *ExchangeCredentials) String() string

type ExchangeLevelFunding

type ExchangeLevelFunding struct {
	ExchangeName string `protobuf:"bytes,1,opt,name=exchange_name,json=exchangeName,proto3" json:"exchange_name,omitempty"`
	Asset        string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	Currency     string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
	InitialFunds string `protobuf:"bytes,4,opt,name=initial_funds,json=initialFunds,proto3" json:"initial_funds,omitempty"`
	TransferFee  string `protobuf:"bytes,5,opt,name=transfer_fee,json=transferFee,proto3" json:"transfer_fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeLevelFunding) Descriptor deprecated

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

Deprecated: Use ExchangeLevelFunding.ProtoReflect.Descriptor instead.

func (*ExchangeLevelFunding) GetAsset

func (x *ExchangeLevelFunding) GetAsset() string

func (*ExchangeLevelFunding) GetCurrency

func (x *ExchangeLevelFunding) GetCurrency() string

func (*ExchangeLevelFunding) GetExchangeName

func (x *ExchangeLevelFunding) GetExchangeName() string

func (*ExchangeLevelFunding) GetInitialFunds

func (x *ExchangeLevelFunding) GetInitialFunds() string

func (*ExchangeLevelFunding) GetTransferFee

func (x *ExchangeLevelFunding) GetTransferFee() string

func (*ExchangeLevelFunding) ProtoMessage

func (*ExchangeLevelFunding) ProtoMessage()

func (*ExchangeLevelFunding) ProtoReflect

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

func (*ExchangeLevelFunding) Reset

func (x *ExchangeLevelFunding) Reset()

func (*ExchangeLevelFunding) String

func (x *ExchangeLevelFunding) String() string

type ExecuteStrategyFromConfigRequest

type ExecuteStrategyFromConfigRequest struct {
	DoNotRunImmediately bool    `protobuf:"varint,1,opt,name=do_not_run_immediately,json=doNotRunImmediately,proto3" json:"do_not_run_immediately,omitempty"`
	DoNotStore          bool    `protobuf:"varint,2,opt,name=do_not_store,json=doNotStore,proto3" json:"do_not_store,omitempty"`
	Config              *Config `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteStrategyFromConfigRequest) Descriptor deprecated

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

Deprecated: Use ExecuteStrategyFromConfigRequest.ProtoReflect.Descriptor instead.

func (*ExecuteStrategyFromConfigRequest) GetConfig

func (x *ExecuteStrategyFromConfigRequest) GetConfig() *Config

func (*ExecuteStrategyFromConfigRequest) GetDoNotRunImmediately

func (x *ExecuteStrategyFromConfigRequest) GetDoNotRunImmediately() bool

func (*ExecuteStrategyFromConfigRequest) GetDoNotStore

func (x *ExecuteStrategyFromConfigRequest) GetDoNotStore() bool

func (*ExecuteStrategyFromConfigRequest) ProtoMessage

func (*ExecuteStrategyFromConfigRequest) ProtoMessage()

func (*ExecuteStrategyFromConfigRequest) ProtoReflect

func (*ExecuteStrategyFromConfigRequest) Reset

func (*ExecuteStrategyFromConfigRequest) String

type ExecuteStrategyFromFileRequest

type ExecuteStrategyFromFileRequest struct {
	StrategyFilePath    string                 `protobuf:"bytes,1,opt,name=strategy_file_path,json=strategyFilePath,proto3" json:"strategy_file_path,omitempty"`
	DoNotRunImmediately bool                   `protobuf:"varint,2,opt,name=do_not_run_immediately,json=doNotRunImmediately,proto3" json:"do_not_run_immediately,omitempty"`
	DoNotStore          bool                   `protobuf:"varint,3,opt,name=do_not_store,json=doNotStore,proto3" json:"do_not_store,omitempty"`
	StartTimeOverride   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time_override,json=startTimeOverride,proto3" json:"start_time_override,omitempty"`
	EndTimeOverride     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time_override,json=endTimeOverride,proto3" json:"end_time_override,omitempty"`
	IntervalOverride    uint64                 `protobuf:"varint,6,opt,name=interval_override,json=intervalOverride,proto3" json:"interval_override,omitempty"`
	// contains filtered or unexported fields
}

Requests and responses

func (*ExecuteStrategyFromFileRequest) Descriptor deprecated

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

Deprecated: Use ExecuteStrategyFromFileRequest.ProtoReflect.Descriptor instead.

func (*ExecuteStrategyFromFileRequest) GetDoNotRunImmediately

func (x *ExecuteStrategyFromFileRequest) GetDoNotRunImmediately() bool

func (*ExecuteStrategyFromFileRequest) GetDoNotStore

func (x *ExecuteStrategyFromFileRequest) GetDoNotStore() bool

func (*ExecuteStrategyFromFileRequest) GetEndTimeOverride

func (x *ExecuteStrategyFromFileRequest) GetEndTimeOverride() *timestamppb.Timestamp

func (*ExecuteStrategyFromFileRequest) GetIntervalOverride

func (x *ExecuteStrategyFromFileRequest) GetIntervalOverride() uint64

func (*ExecuteStrategyFromFileRequest) GetStartTimeOverride

func (x *ExecuteStrategyFromFileRequest) GetStartTimeOverride() *timestamppb.Timestamp

func (*ExecuteStrategyFromFileRequest) GetStrategyFilePath

func (x *ExecuteStrategyFromFileRequest) GetStrategyFilePath() string

func (*ExecuteStrategyFromFileRequest) ProtoMessage

func (*ExecuteStrategyFromFileRequest) ProtoMessage()

func (*ExecuteStrategyFromFileRequest) ProtoReflect

func (*ExecuteStrategyFromFileRequest) Reset

func (x *ExecuteStrategyFromFileRequest) Reset()

func (*ExecuteStrategyFromFileRequest) String

type ExecuteStrategyResponse

type ExecuteStrategyResponse struct {
	Task *TaskSummary `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteStrategyResponse) Descriptor deprecated

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

Deprecated: Use ExecuteStrategyResponse.ProtoReflect.Descriptor instead.

func (*ExecuteStrategyResponse) GetTask

func (x *ExecuteStrategyResponse) GetTask() *TaskSummary

func (*ExecuteStrategyResponse) ProtoMessage

func (*ExecuteStrategyResponse) ProtoMessage()

func (*ExecuteStrategyResponse) ProtoReflect

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

func (*ExecuteStrategyResponse) Reset

func (x *ExecuteStrategyResponse) Reset()

func (*ExecuteStrategyResponse) String

func (x *ExecuteStrategyResponse) String() string

type FundingSettings

type FundingSettings struct {
	UseExchangeLevelFunding bool                    `` /* 135-byte string literal not displayed */
	ExchangeLevelFunding    []*ExchangeLevelFunding `protobuf:"bytes,2,rep,name=exchange_level_funding,json=exchangeLevelFunding,proto3" json:"exchange_level_funding,omitempty"`
	// contains filtered or unexported fields
}

func (*FundingSettings) Descriptor deprecated

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

Deprecated: Use FundingSettings.ProtoReflect.Descriptor instead.

func (*FundingSettings) GetExchangeLevelFunding

func (x *FundingSettings) GetExchangeLevelFunding() []*ExchangeLevelFunding

func (*FundingSettings) GetUseExchangeLevelFunding

func (x *FundingSettings) GetUseExchangeLevelFunding() bool

func (*FundingSettings) ProtoMessage

func (*FundingSettings) ProtoMessage()

func (*FundingSettings) ProtoReflect

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

func (*FundingSettings) Reset

func (x *FundingSettings) Reset()

func (*FundingSettings) String

func (x *FundingSettings) String() string

type FuturesDetails

type FuturesDetails struct {
	Leverage *Leverage `protobuf:"bytes,1,opt,name=leverage,proto3" json:"leverage,omitempty"`
	// contains filtered or unexported fields
}

func (*FuturesDetails) Descriptor deprecated

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

Deprecated: Use FuturesDetails.ProtoReflect.Descriptor instead.

func (*FuturesDetails) GetLeverage

func (x *FuturesDetails) GetLeverage() *Leverage

func (*FuturesDetails) ProtoMessage

func (*FuturesDetails) ProtoMessage()

func (*FuturesDetails) ProtoReflect

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

func (*FuturesDetails) Reset

func (x *FuturesDetails) Reset()

func (*FuturesDetails) String

func (x *FuturesDetails) String() string

type Leverage

type Leverage struct {
	CanUseLeverage                 bool   `protobuf:"varint,1,opt,name=can_use_leverage,json=canUseLeverage,proto3" json:"can_use_leverage,omitempty"`
	MaximumOrdersWithLeverageRatio string `` /* 157-byte string literal not displayed */
	MaximumLeverageRate            string `protobuf:"bytes,3,opt,name=maximum_leverage_rate,json=maximumLeverageRate,proto3" json:"maximum_leverage_rate,omitempty"`
	MaximumCollateralLeverageRate  string `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Leverage) Descriptor deprecated

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

Deprecated: Use Leverage.ProtoReflect.Descriptor instead.

func (*Leverage) GetCanUseLeverage

func (x *Leverage) GetCanUseLeverage() bool

func (*Leverage) GetMaximumCollateralLeverageRate

func (x *Leverage) GetMaximumCollateralLeverageRate() string

func (*Leverage) GetMaximumLeverageRate

func (x *Leverage) GetMaximumLeverageRate() string

func (*Leverage) GetMaximumOrdersWithLeverageRatio

func (x *Leverage) GetMaximumOrdersWithLeverageRatio() string

func (*Leverage) ProtoMessage

func (*Leverage) ProtoMessage()

func (*Leverage) ProtoReflect

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

func (*Leverage) Reset

func (x *Leverage) Reset()

func (*Leverage) String

func (x *Leverage) String() string

type ListAllTasksRequest

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

func (*ListAllTasksRequest) Descriptor deprecated

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

Deprecated: Use ListAllTasksRequest.ProtoReflect.Descriptor instead.

func (*ListAllTasksRequest) ProtoMessage

func (*ListAllTasksRequest) ProtoMessage()

func (*ListAllTasksRequest) ProtoReflect

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

func (*ListAllTasksRequest) Reset

func (x *ListAllTasksRequest) Reset()

func (*ListAllTasksRequest) String

func (x *ListAllTasksRequest) String() string

type ListAllTasksResponse

type ListAllTasksResponse struct {
	Tasks []*TaskSummary `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAllTasksResponse) Descriptor deprecated

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

Deprecated: Use ListAllTasksResponse.ProtoReflect.Descriptor instead.

func (*ListAllTasksResponse) GetTasks

func (x *ListAllTasksResponse) GetTasks() []*TaskSummary

func (*ListAllTasksResponse) ProtoMessage

func (*ListAllTasksResponse) ProtoMessage()

func (*ListAllTasksResponse) ProtoReflect

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

func (*ListAllTasksResponse) Reset

func (x *ListAllTasksResponse) Reset()

func (*ListAllTasksResponse) String

func (x *ListAllTasksResponse) String() string

type LiveData

type LiveData struct {
	NewEventTimeout           int64          `protobuf:"varint,1,opt,name=new_event_timeout,json=newEventTimeout,proto3" json:"new_event_timeout,omitempty"`
	DataCheckTimer            int64          `protobuf:"varint,2,opt,name=data_check_timer,json=dataCheckTimer,proto3" json:"data_check_timer,omitempty"`
	RealOrders                bool           `protobuf:"varint,3,opt,name=real_orders,json=realOrders,proto3" json:"real_orders,omitempty"`
	ClosePositionsOnStop      bool           `` /* 126-byte string literal not displayed */
	DataRequestRetryTolerance int64          `` /* 141-byte string literal not displayed */
	DataRequestRetryWaitTime  int64          `` /* 140-byte string literal not displayed */
	UseRealOrders             bool           `protobuf:"varint,7,opt,name=use_real_orders,json=useRealOrders,proto3" json:"use_real_orders,omitempty"`
	Credentials               []*Credentials `protobuf:"bytes,8,rep,name=credentials,proto3" json:"credentials,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveData) Descriptor deprecated

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

Deprecated: Use LiveData.ProtoReflect.Descriptor instead.

func (*LiveData) GetClosePositionsOnStop

func (x *LiveData) GetClosePositionsOnStop() bool

func (*LiveData) GetCredentials

func (x *LiveData) GetCredentials() []*Credentials

func (*LiveData) GetDataCheckTimer

func (x *LiveData) GetDataCheckTimer() int64

func (*LiveData) GetDataRequestRetryTolerance

func (x *LiveData) GetDataRequestRetryTolerance() int64

func (*LiveData) GetDataRequestRetryWaitTime

func (x *LiveData) GetDataRequestRetryWaitTime() int64

func (*LiveData) GetNewEventTimeout

func (x *LiveData) GetNewEventTimeout() int64

func (*LiveData) GetRealOrders

func (x *LiveData) GetRealOrders() bool

func (*LiveData) GetUseRealOrders

func (x *LiveData) GetUseRealOrders() bool

func (*LiveData) ProtoMessage

func (*LiveData) ProtoMessage()

func (*LiveData) ProtoReflect

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

func (*LiveData) Reset

func (x *LiveData) Reset()

func (*LiveData) String

func (x *LiveData) String() string

type PortfolioSettings

type PortfolioSettings struct {
	Leverage *Leverage     `protobuf:"bytes,1,opt,name=leverage,proto3" json:"leverage,omitempty"`
	BuySide  *PurchaseSide `protobuf:"bytes,2,opt,name=buy_side,json=buySide,proto3" json:"buy_side,omitempty"`
	SellSide *PurchaseSide `protobuf:"bytes,3,opt,name=sell_side,json=sellSide,proto3" json:"sell_side,omitempty"`
	// contains filtered or unexported fields
}

func (*PortfolioSettings) Descriptor deprecated

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

Deprecated: Use PortfolioSettings.ProtoReflect.Descriptor instead.

func (*PortfolioSettings) GetBuySide

func (x *PortfolioSettings) GetBuySide() *PurchaseSide

func (*PortfolioSettings) GetLeverage

func (x *PortfolioSettings) GetLeverage() *Leverage

func (*PortfolioSettings) GetSellSide

func (x *PortfolioSettings) GetSellSide() *PurchaseSide

func (*PortfolioSettings) ProtoMessage

func (*PortfolioSettings) ProtoMessage()

func (*PortfolioSettings) ProtoReflect

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

func (*PortfolioSettings) Reset

func (x *PortfolioSettings) Reset()

func (*PortfolioSettings) String

func (x *PortfolioSettings) String() string

type PurchaseSide

type PurchaseSide struct {
	MinimumSize  string `protobuf:"bytes,1,opt,name=minimum_size,json=minimumSize,proto3" json:"minimum_size,omitempty"`
	MaximumSize  string `protobuf:"bytes,2,opt,name=maximum_size,json=maximumSize,proto3" json:"maximum_size,omitempty"`
	MaximumTotal string `protobuf:"bytes,3,opt,name=maximum_total,json=maximumTotal,proto3" json:"maximum_total,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseSide) Descriptor deprecated

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

Deprecated: Use PurchaseSide.ProtoReflect.Descriptor instead.

func (*PurchaseSide) GetMaximumSize

func (x *PurchaseSide) GetMaximumSize() string

func (*PurchaseSide) GetMaximumTotal

func (x *PurchaseSide) GetMaximumTotal() string

func (*PurchaseSide) GetMinimumSize

func (x *PurchaseSide) GetMinimumSize() string

func (*PurchaseSide) ProtoMessage

func (*PurchaseSide) ProtoMessage()

func (*PurchaseSide) ProtoReflect

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

func (*PurchaseSide) Reset

func (x *PurchaseSide) Reset()

func (*PurchaseSide) String

func (x *PurchaseSide) String() string

type SpotDetails

type SpotDetails struct {
	InitialBaseFunds  string `protobuf:"bytes,1,opt,name=initial_base_funds,json=initialBaseFunds,proto3" json:"initial_base_funds,omitempty"`
	InitialQuoteFunds string `protobuf:"bytes,2,opt,name=initial_quote_funds,json=initialQuoteFunds,proto3" json:"initial_quote_funds,omitempty"`
	// contains filtered or unexported fields
}

func (*SpotDetails) Descriptor deprecated

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

Deprecated: Use SpotDetails.ProtoReflect.Descriptor instead.

func (*SpotDetails) GetInitialBaseFunds

func (x *SpotDetails) GetInitialBaseFunds() string

func (*SpotDetails) GetInitialQuoteFunds

func (x *SpotDetails) GetInitialQuoteFunds() string

func (*SpotDetails) ProtoMessage

func (*SpotDetails) ProtoMessage()

func (*SpotDetails) ProtoReflect

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

func (*SpotDetails) Reset

func (x *SpotDetails) Reset()

func (*SpotDetails) String

func (x *SpotDetails) String() string

type StartAllTasksRequest

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

func (*StartAllTasksRequest) Descriptor deprecated

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

Deprecated: Use StartAllTasksRequest.ProtoReflect.Descriptor instead.

func (*StartAllTasksRequest) ProtoMessage

func (*StartAllTasksRequest) ProtoMessage()

func (*StartAllTasksRequest) ProtoReflect

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

func (*StartAllTasksRequest) Reset

func (x *StartAllTasksRequest) Reset()

func (*StartAllTasksRequest) String

func (x *StartAllTasksRequest) String() string

type StartAllTasksResponse

type StartAllTasksResponse struct {
	TasksStarted []string `protobuf:"bytes,1,rep,name=tasks_started,json=tasksStarted,proto3" json:"tasks_started,omitempty"`
	// contains filtered or unexported fields
}

func (*StartAllTasksResponse) Descriptor deprecated

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

Deprecated: Use StartAllTasksResponse.ProtoReflect.Descriptor instead.

func (*StartAllTasksResponse) GetTasksStarted

func (x *StartAllTasksResponse) GetTasksStarted() []string

func (*StartAllTasksResponse) ProtoMessage

func (*StartAllTasksResponse) ProtoMessage()

func (*StartAllTasksResponse) ProtoReflect

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

func (*StartAllTasksResponse) Reset

func (x *StartAllTasksResponse) Reset()

func (*StartAllTasksResponse) String

func (x *StartAllTasksResponse) String() string

type StartTaskRequest

type StartTaskRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartTaskRequest) Descriptor deprecated

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

Deprecated: Use StartTaskRequest.ProtoReflect.Descriptor instead.

func (*StartTaskRequest) GetId

func (x *StartTaskRequest) GetId() string

func (*StartTaskRequest) ProtoMessage

func (*StartTaskRequest) ProtoMessage()

func (*StartTaskRequest) ProtoReflect

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

func (*StartTaskRequest) Reset

func (x *StartTaskRequest) Reset()

func (*StartTaskRequest) String

func (x *StartTaskRequest) String() string

type StartTaskResponse

type StartTaskResponse struct {
	Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"`
	// contains filtered or unexported fields
}

func (*StartTaskResponse) Descriptor deprecated

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

Deprecated: Use StartTaskResponse.ProtoReflect.Descriptor instead.

func (*StartTaskResponse) GetStarted

func (x *StartTaskResponse) GetStarted() bool

func (*StartTaskResponse) ProtoMessage

func (*StartTaskResponse) ProtoMessage()

func (*StartTaskResponse) ProtoReflect

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

func (*StartTaskResponse) Reset

func (x *StartTaskResponse) Reset()

func (*StartTaskResponse) String

func (x *StartTaskResponse) String() string

type StatisticSettings

type StatisticSettings struct {
	RiskFreeRate string `protobuf:"bytes,1,opt,name=risk_free_rate,json=riskFreeRate,proto3" json:"risk_free_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*StatisticSettings) Descriptor deprecated

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

Deprecated: Use StatisticSettings.ProtoReflect.Descriptor instead.

func (*StatisticSettings) GetRiskFreeRate

func (x *StatisticSettings) GetRiskFreeRate() string

func (*StatisticSettings) ProtoMessage

func (*StatisticSettings) ProtoMessage()

func (*StatisticSettings) ProtoReflect

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

func (*StatisticSettings) Reset

func (x *StatisticSettings) Reset()

func (*StatisticSettings) String

func (x *StatisticSettings) String() string

type StopAllTasksRequest

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

func (*StopAllTasksRequest) Descriptor deprecated

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

Deprecated: Use StopAllTasksRequest.ProtoReflect.Descriptor instead.

func (*StopAllTasksRequest) ProtoMessage

func (*StopAllTasksRequest) ProtoMessage()

func (*StopAllTasksRequest) ProtoReflect

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

func (*StopAllTasksRequest) Reset

func (x *StopAllTasksRequest) Reset()

func (*StopAllTasksRequest) String

func (x *StopAllTasksRequest) String() string

type StopAllTasksResponse

type StopAllTasksResponse struct {
	TasksStopped []*TaskSummary `protobuf:"bytes,1,rep,name=tasks_stopped,json=tasksStopped,proto3" json:"tasks_stopped,omitempty"`
	// contains filtered or unexported fields
}

func (*StopAllTasksResponse) Descriptor deprecated

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

Deprecated: Use StopAllTasksResponse.ProtoReflect.Descriptor instead.

func (*StopAllTasksResponse) GetTasksStopped

func (x *StopAllTasksResponse) GetTasksStopped() []*TaskSummary

func (*StopAllTasksResponse) ProtoMessage

func (*StopAllTasksResponse) ProtoMessage()

func (*StopAllTasksResponse) ProtoReflect

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

func (*StopAllTasksResponse) Reset

func (x *StopAllTasksResponse) Reset()

func (*StopAllTasksResponse) String

func (x *StopAllTasksResponse) String() string

type StopTaskRequest

type StopTaskRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*StopTaskRequest) Descriptor deprecated

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

Deprecated: Use StopTaskRequest.ProtoReflect.Descriptor instead.

func (*StopTaskRequest) GetId

func (x *StopTaskRequest) GetId() string

func (*StopTaskRequest) ProtoMessage

func (*StopTaskRequest) ProtoMessage()

func (*StopTaskRequest) ProtoReflect

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

func (*StopTaskRequest) Reset

func (x *StopTaskRequest) Reset()

func (*StopTaskRequest) String

func (x *StopTaskRequest) String() string

type StopTaskResponse

type StopTaskResponse struct {
	StoppedTask *TaskSummary `protobuf:"bytes,1,opt,name=stopped_task,json=stoppedTask,proto3" json:"stopped_task,omitempty"`
	// contains filtered or unexported fields
}

func (*StopTaskResponse) Descriptor deprecated

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

Deprecated: Use StopTaskResponse.ProtoReflect.Descriptor instead.

func (*StopTaskResponse) GetStoppedTask

func (x *StopTaskResponse) GetStoppedTask() *TaskSummary

func (*StopTaskResponse) ProtoMessage

func (*StopTaskResponse) ProtoMessage()

func (*StopTaskResponse) ProtoReflect

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

func (*StopTaskResponse) Reset

func (x *StopTaskResponse) Reset()

func (*StopTaskResponse) String

func (x *StopTaskResponse) String() string

type StrategySettings

type StrategySettings struct {
	Name                            string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	UseSimultaneousSignalProcessing bool              `` /* 159-byte string literal not displayed */
	DisableUsdTracking              bool              `protobuf:"varint,3,opt,name=disable_usd_tracking,json=disableUsdTracking,proto3" json:"disable_usd_tracking,omitempty"`
	CustomSettings                  []*CustomSettings `protobuf:"bytes,4,rep,name=custom_settings,json=customSettings,proto3" json:"custom_settings,omitempty"`
	// contains filtered or unexported fields
}

struct definitions

func (*StrategySettings) Descriptor deprecated

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

Deprecated: Use StrategySettings.ProtoReflect.Descriptor instead.

func (*StrategySettings) GetCustomSettings

func (x *StrategySettings) GetCustomSettings() []*CustomSettings

func (*StrategySettings) GetDisableUsdTracking

func (x *StrategySettings) GetDisableUsdTracking() bool

func (*StrategySettings) GetName

func (x *StrategySettings) GetName() string

func (*StrategySettings) GetUseSimultaneousSignalProcessing

func (x *StrategySettings) GetUseSimultaneousSignalProcessing() bool

func (*StrategySettings) ProtoMessage

func (*StrategySettings) ProtoMessage()

func (*StrategySettings) ProtoReflect

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

func (*StrategySettings) Reset

func (x *StrategySettings) Reset()

func (*StrategySettings) String

func (x *StrategySettings) String() string

type TaskSummary

type TaskSummary struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	StrategyName string `protobuf:"bytes,2,opt,name=strategy_name,json=strategyName,proto3" json:"strategy_name,omitempty"`
	DateLoaded   string `protobuf:"bytes,3,opt,name=date_loaded,json=dateLoaded,proto3" json:"date_loaded,omitempty"`
	DateStarted  string `protobuf:"bytes,4,opt,name=date_started,json=dateStarted,proto3" json:"date_started,omitempty"`
	DateEnded    string `protobuf:"bytes,5,opt,name=date_ended,json=dateEnded,proto3" json:"date_ended,omitempty"`
	Closed       bool   `protobuf:"varint,6,opt,name=closed,proto3" json:"closed,omitempty"`
	LiveTesting  bool   `protobuf:"varint,7,opt,name=live_testing,json=liveTesting,proto3" json:"live_testing,omitempty"`
	RealOrders   bool   `protobuf:"varint,8,opt,name=real_orders,json=realOrders,proto3" json:"real_orders,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskSummary) Descriptor deprecated

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

Deprecated: Use TaskSummary.ProtoReflect.Descriptor instead.

func (*TaskSummary) GetClosed

func (x *TaskSummary) GetClosed() bool

func (*TaskSummary) GetDateEnded

func (x *TaskSummary) GetDateEnded() string

func (*TaskSummary) GetDateLoaded

func (x *TaskSummary) GetDateLoaded() string

func (*TaskSummary) GetDateStarted

func (x *TaskSummary) GetDateStarted() string

func (*TaskSummary) GetId

func (x *TaskSummary) GetId() string

func (*TaskSummary) GetLiveTesting

func (x *TaskSummary) GetLiveTesting() bool

func (*TaskSummary) GetRealOrders

func (x *TaskSummary) GetRealOrders() bool

func (*TaskSummary) GetStrategyName

func (x *TaskSummary) GetStrategyName() string

func (*TaskSummary) ProtoMessage

func (*TaskSummary) ProtoMessage()

func (*TaskSummary) ProtoReflect

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

func (*TaskSummary) Reset

func (x *TaskSummary) Reset()

func (*TaskSummary) String

func (x *TaskSummary) String() string

type UnimplementedBacktesterServiceServer

type UnimplementedBacktesterServiceServer struct {
}

UnimplementedBacktesterServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBacktesterServiceServer) ClearAllTasks

func (UnimplementedBacktesterServiceServer) ClearTask

func (UnimplementedBacktesterServiceServer) ExecuteStrategyFromConfig

func (UnimplementedBacktesterServiceServer) ExecuteStrategyFromFile

func (UnimplementedBacktesterServiceServer) ListAllTasks

func (UnimplementedBacktesterServiceServer) StartAllTasks

func (UnimplementedBacktesterServiceServer) StartTask

func (UnimplementedBacktesterServiceServer) StopAllTasks

func (UnimplementedBacktesterServiceServer) StopTask

type UnsafeBacktesterServiceServer

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

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

Jump to

Keyboard shortcuts

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