@marleena/trb-proto 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -23
- package/gen/js-ts/clickhouse/Clickhouse_grpcServiceClientPb.ts +108 -0
- package/gen/js-ts/clickhouse/clickhouse_grpc_pb.d.ts +464 -0
- package/gen/js-ts/db_api/Db_apiServiceClientPb.ts +215 -0
- package/gen/js-ts/db_api/db_api_pb.d.ts +406 -0
- package/gen/js-ts/db_api/db_api_pb.js +3371 -0
- package/gen/js-ts/example/ExampleServiceClientPb.ts +108 -0
- package/gen/js-ts/example/Example_pb.d.ts +77 -0
- package/gen/js-ts/manager_indicators/Manager_indicatorsServiceClientPb.ts +86 -0
- package/gen/js-ts/manager_indicators/manager_indicators_pb.d.ts +190 -0
- package/gen/js-ts/moex/MoexServiceClientPb.ts +86 -0
- package/gen/js-ts/moex/moex_pb.d.ts +53 -0
- package/gen/js-ts/nats/ManagerServiceClientPb.ts +1032 -0
- package/gen/js-ts/nats/manager_pb.d.ts +1416 -0
- package/gen/js-ts/nats/manager_pb.js +394 -0
- package/gen/js-ts/tinvest/InstrumentsServiceClientPb.ts +1892 -0
- package/gen/js-ts/tinvest/MarketdataServiceClientPb.ts +473 -0
- package/gen/js-ts/tinvest/OperationsServiceClientPb.ts +431 -0
- package/gen/js-ts/tinvest/OrdersServiceClientPb.ts +452 -0
- package/gen/js-ts/tinvest/SandboxServiceClientPb.ts +907 -0
- package/gen/js-ts/tinvest/SignalsServiceClientPb.ts +129 -0
- package/gen/js-ts/tinvest/StopordersServiceClientPb.ts +172 -0
- package/gen/js-ts/tinvest/UsersServiceClientPb.ts +387 -0
- package/gen/js-ts/tinvest/common_pb.d.ts +314 -0
- package/gen/js-ts/tinvest/instruments_pb.d.ts +6373 -0
- package/gen/js-ts/tinvest/marketdata_pb.d.ts +2397 -0
- package/gen/js-ts/tinvest/operations_pb.d.ts +2380 -0
- package/gen/js-ts/tinvest/orders_pb.d.ts +1555 -0
- package/gen/js-ts/tinvest/sandbox_pb.d.ts +129 -0
- package/gen/js-ts/tinvest/signals_pb.d.ts +408 -0
- package/gen/js-ts/tinvest/stoporders_pb.d.ts +493 -0
- package/gen/js-ts/tinvest/users_pb.d.ts +611 -0
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as tinvest_common_pb from '../tinvest/common_pb'; // proto import: "tinvest/common.proto"
|
|
4
|
+
import * as tinvest_orders_pb from '../tinvest/orders_pb'; // proto import: "tinvest/orders.proto"
|
|
5
|
+
import * as tinvest_operations_pb from '../tinvest/operations_pb'; // proto import: "tinvest/operations.proto"
|
|
6
|
+
import * as tinvest_stoporders_pb from '../tinvest/stoporders_pb'; // proto import: "tinvest/stoporders.proto"
|
|
7
|
+
import * as tinvest_users_pb from '../tinvest/users_pb'; // proto import: "tinvest/users.proto"
|
|
8
|
+
import * as google_api_field_behavior_pb from '../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export class OpenSandboxAccountRequest extends jspb.Message {
|
|
12
|
+
getName(): string;
|
|
13
|
+
setName(value: string): OpenSandboxAccountRequest;
|
|
14
|
+
hasName(): boolean;
|
|
15
|
+
clearName(): OpenSandboxAccountRequest;
|
|
16
|
+
|
|
17
|
+
serializeBinary(): Uint8Array;
|
|
18
|
+
toObject(includeInstance?: boolean): OpenSandboxAccountRequest.AsObject;
|
|
19
|
+
static toObject(includeInstance: boolean, msg: OpenSandboxAccountRequest): OpenSandboxAccountRequest.AsObject;
|
|
20
|
+
static serializeBinaryToWriter(message: OpenSandboxAccountRequest, writer: jspb.BinaryWriter): void;
|
|
21
|
+
static deserializeBinary(bytes: Uint8Array): OpenSandboxAccountRequest;
|
|
22
|
+
static deserializeBinaryFromReader(message: OpenSandboxAccountRequest, reader: jspb.BinaryReader): OpenSandboxAccountRequest;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace OpenSandboxAccountRequest {
|
|
26
|
+
export type AsObject = {
|
|
27
|
+
name?: string,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum NameCase {
|
|
31
|
+
_NAME_NOT_SET = 0,
|
|
32
|
+
NAME = 1,
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class OpenSandboxAccountResponse extends jspb.Message {
|
|
37
|
+
getAccountId(): string;
|
|
38
|
+
setAccountId(value: string): OpenSandboxAccountResponse;
|
|
39
|
+
|
|
40
|
+
serializeBinary(): Uint8Array;
|
|
41
|
+
toObject(includeInstance?: boolean): OpenSandboxAccountResponse.AsObject;
|
|
42
|
+
static toObject(includeInstance: boolean, msg: OpenSandboxAccountResponse): OpenSandboxAccountResponse.AsObject;
|
|
43
|
+
static serializeBinaryToWriter(message: OpenSandboxAccountResponse, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): OpenSandboxAccountResponse;
|
|
45
|
+
static deserializeBinaryFromReader(message: OpenSandboxAccountResponse, reader: jspb.BinaryReader): OpenSandboxAccountResponse;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace OpenSandboxAccountResponse {
|
|
49
|
+
export type AsObject = {
|
|
50
|
+
accountId: string,
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class CloseSandboxAccountRequest extends jspb.Message {
|
|
55
|
+
getAccountId(): string;
|
|
56
|
+
setAccountId(value: string): CloseSandboxAccountRequest;
|
|
57
|
+
|
|
58
|
+
serializeBinary(): Uint8Array;
|
|
59
|
+
toObject(includeInstance?: boolean): CloseSandboxAccountRequest.AsObject;
|
|
60
|
+
static toObject(includeInstance: boolean, msg: CloseSandboxAccountRequest): CloseSandboxAccountRequest.AsObject;
|
|
61
|
+
static serializeBinaryToWriter(message: CloseSandboxAccountRequest, writer: jspb.BinaryWriter): void;
|
|
62
|
+
static deserializeBinary(bytes: Uint8Array): CloseSandboxAccountRequest;
|
|
63
|
+
static deserializeBinaryFromReader(message: CloseSandboxAccountRequest, reader: jspb.BinaryReader): CloseSandboxAccountRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace CloseSandboxAccountRequest {
|
|
67
|
+
export type AsObject = {
|
|
68
|
+
accountId: string,
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export class CloseSandboxAccountResponse extends jspb.Message {
|
|
73
|
+
serializeBinary(): Uint8Array;
|
|
74
|
+
toObject(includeInstance?: boolean): CloseSandboxAccountResponse.AsObject;
|
|
75
|
+
static toObject(includeInstance: boolean, msg: CloseSandboxAccountResponse): CloseSandboxAccountResponse.AsObject;
|
|
76
|
+
static serializeBinaryToWriter(message: CloseSandboxAccountResponse, writer: jspb.BinaryWriter): void;
|
|
77
|
+
static deserializeBinary(bytes: Uint8Array): CloseSandboxAccountResponse;
|
|
78
|
+
static deserializeBinaryFromReader(message: CloseSandboxAccountResponse, reader: jspb.BinaryReader): CloseSandboxAccountResponse;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export namespace CloseSandboxAccountResponse {
|
|
82
|
+
export type AsObject = {
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export class SandboxPayInRequest extends jspb.Message {
|
|
87
|
+
getAccountId(): string;
|
|
88
|
+
setAccountId(value: string): SandboxPayInRequest;
|
|
89
|
+
|
|
90
|
+
getAmount(): tinvest_common_pb.MoneyValue | undefined;
|
|
91
|
+
setAmount(value?: tinvest_common_pb.MoneyValue): SandboxPayInRequest;
|
|
92
|
+
hasAmount(): boolean;
|
|
93
|
+
clearAmount(): SandboxPayInRequest;
|
|
94
|
+
|
|
95
|
+
serializeBinary(): Uint8Array;
|
|
96
|
+
toObject(includeInstance?: boolean): SandboxPayInRequest.AsObject;
|
|
97
|
+
static toObject(includeInstance: boolean, msg: SandboxPayInRequest): SandboxPayInRequest.AsObject;
|
|
98
|
+
static serializeBinaryToWriter(message: SandboxPayInRequest, writer: jspb.BinaryWriter): void;
|
|
99
|
+
static deserializeBinary(bytes: Uint8Array): SandboxPayInRequest;
|
|
100
|
+
static deserializeBinaryFromReader(message: SandboxPayInRequest, reader: jspb.BinaryReader): SandboxPayInRequest;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace SandboxPayInRequest {
|
|
104
|
+
export type AsObject = {
|
|
105
|
+
accountId: string,
|
|
106
|
+
amount?: tinvest_common_pb.MoneyValue.AsObject,
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export class SandboxPayInResponse extends jspb.Message {
|
|
111
|
+
getBalance(): tinvest_common_pb.MoneyValue | undefined;
|
|
112
|
+
setBalance(value?: tinvest_common_pb.MoneyValue): SandboxPayInResponse;
|
|
113
|
+
hasBalance(): boolean;
|
|
114
|
+
clearBalance(): SandboxPayInResponse;
|
|
115
|
+
|
|
116
|
+
serializeBinary(): Uint8Array;
|
|
117
|
+
toObject(includeInstance?: boolean): SandboxPayInResponse.AsObject;
|
|
118
|
+
static toObject(includeInstance: boolean, msg: SandboxPayInResponse): SandboxPayInResponse.AsObject;
|
|
119
|
+
static serializeBinaryToWriter(message: SandboxPayInResponse, writer: jspb.BinaryWriter): void;
|
|
120
|
+
static deserializeBinary(bytes: Uint8Array): SandboxPayInResponse;
|
|
121
|
+
static deserializeBinaryFromReader(message: SandboxPayInResponse, reader: jspb.BinaryReader): SandboxPayInResponse;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export namespace SandboxPayInResponse {
|
|
125
|
+
export type AsObject = {
|
|
126
|
+
balance?: tinvest_common_pb.MoneyValue.AsObject,
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
|
|
4
|
+
import * as google_api_field_behavior_pb from '../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
|
|
5
|
+
import * as tinvest_common_pb from '../tinvest/common_pb'; // proto import: "tinvest/common.proto"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class GetStrategiesRequest extends jspb.Message {
|
|
9
|
+
getStrategyId(): string;
|
|
10
|
+
setStrategyId(value: string): GetStrategiesRequest;
|
|
11
|
+
hasStrategyId(): boolean;
|
|
12
|
+
clearStrategyId(): GetStrategiesRequest;
|
|
13
|
+
|
|
14
|
+
serializeBinary(): Uint8Array;
|
|
15
|
+
toObject(includeInstance?: boolean): GetStrategiesRequest.AsObject;
|
|
16
|
+
static toObject(includeInstance: boolean, msg: GetStrategiesRequest): GetStrategiesRequest.AsObject;
|
|
17
|
+
static serializeBinaryToWriter(message: GetStrategiesRequest, writer: jspb.BinaryWriter): void;
|
|
18
|
+
static deserializeBinary(bytes: Uint8Array): GetStrategiesRequest;
|
|
19
|
+
static deserializeBinaryFromReader(message: GetStrategiesRequest, reader: jspb.BinaryReader): GetStrategiesRequest;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace GetStrategiesRequest {
|
|
23
|
+
export type AsObject = {
|
|
24
|
+
strategyId?: string,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum StrategyIdCase {
|
|
28
|
+
_STRATEGY_ID_NOT_SET = 0,
|
|
29
|
+
STRATEGY_ID = 1,
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class GetStrategiesResponse extends jspb.Message {
|
|
34
|
+
getStrategiesList(): Array<Strategy>;
|
|
35
|
+
setStrategiesList(value: Array<Strategy>): GetStrategiesResponse;
|
|
36
|
+
clearStrategiesList(): GetStrategiesResponse;
|
|
37
|
+
addStrategies(value?: Strategy, index?: number): Strategy;
|
|
38
|
+
|
|
39
|
+
serializeBinary(): Uint8Array;
|
|
40
|
+
toObject(includeInstance?: boolean): GetStrategiesResponse.AsObject;
|
|
41
|
+
static toObject(includeInstance: boolean, msg: GetStrategiesResponse): GetStrategiesResponse.AsObject;
|
|
42
|
+
static serializeBinaryToWriter(message: GetStrategiesResponse, writer: jspb.BinaryWriter): void;
|
|
43
|
+
static deserializeBinary(bytes: Uint8Array): GetStrategiesResponse;
|
|
44
|
+
static deserializeBinaryFromReader(message: GetStrategiesResponse, reader: jspb.BinaryReader): GetStrategiesResponse;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export namespace GetStrategiesResponse {
|
|
48
|
+
export type AsObject = {
|
|
49
|
+
strategiesList: Array<Strategy.AsObject>,
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class Strategy extends jspb.Message {
|
|
54
|
+
getStrategyId(): string;
|
|
55
|
+
setStrategyId(value: string): Strategy;
|
|
56
|
+
|
|
57
|
+
getStrategyName(): string;
|
|
58
|
+
setStrategyName(value: string): Strategy;
|
|
59
|
+
|
|
60
|
+
getStrategyDescription(): string;
|
|
61
|
+
setStrategyDescription(value: string): Strategy;
|
|
62
|
+
hasStrategyDescription(): boolean;
|
|
63
|
+
clearStrategyDescription(): Strategy;
|
|
64
|
+
|
|
65
|
+
getStrategyUrl(): string;
|
|
66
|
+
setStrategyUrl(value: string): Strategy;
|
|
67
|
+
hasStrategyUrl(): boolean;
|
|
68
|
+
clearStrategyUrl(): Strategy;
|
|
69
|
+
|
|
70
|
+
getStrategyType(): StrategyType;
|
|
71
|
+
setStrategyType(value: StrategyType): Strategy;
|
|
72
|
+
|
|
73
|
+
getActiveSignals(): number;
|
|
74
|
+
setActiveSignals(value: number): Strategy;
|
|
75
|
+
|
|
76
|
+
getTotalSignals(): number;
|
|
77
|
+
setTotalSignals(value: number): Strategy;
|
|
78
|
+
|
|
79
|
+
getTimeInPosition(): number;
|
|
80
|
+
setTimeInPosition(value: number): Strategy;
|
|
81
|
+
|
|
82
|
+
getAverageSignalYield(): tinvest_common_pb.Quotation | undefined;
|
|
83
|
+
setAverageSignalYield(value?: tinvest_common_pb.Quotation): Strategy;
|
|
84
|
+
hasAverageSignalYield(): boolean;
|
|
85
|
+
clearAverageSignalYield(): Strategy;
|
|
86
|
+
|
|
87
|
+
getAverageSignalYieldYear(): tinvest_common_pb.Quotation | undefined;
|
|
88
|
+
setAverageSignalYieldYear(value?: tinvest_common_pb.Quotation): Strategy;
|
|
89
|
+
hasAverageSignalYieldYear(): boolean;
|
|
90
|
+
clearAverageSignalYieldYear(): Strategy;
|
|
91
|
+
|
|
92
|
+
getYield(): tinvest_common_pb.Quotation | undefined;
|
|
93
|
+
setYield(value?: tinvest_common_pb.Quotation): Strategy;
|
|
94
|
+
hasYield(): boolean;
|
|
95
|
+
clearYield(): Strategy;
|
|
96
|
+
|
|
97
|
+
getYieldYear(): tinvest_common_pb.Quotation | undefined;
|
|
98
|
+
setYieldYear(value?: tinvest_common_pb.Quotation): Strategy;
|
|
99
|
+
hasYieldYear(): boolean;
|
|
100
|
+
clearYieldYear(): Strategy;
|
|
101
|
+
|
|
102
|
+
serializeBinary(): Uint8Array;
|
|
103
|
+
toObject(includeInstance?: boolean): Strategy.AsObject;
|
|
104
|
+
static toObject(includeInstance: boolean, msg: Strategy): Strategy.AsObject;
|
|
105
|
+
static serializeBinaryToWriter(message: Strategy, writer: jspb.BinaryWriter): void;
|
|
106
|
+
static deserializeBinary(bytes: Uint8Array): Strategy;
|
|
107
|
+
static deserializeBinaryFromReader(message: Strategy, reader: jspb.BinaryReader): Strategy;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export namespace Strategy {
|
|
111
|
+
export type AsObject = {
|
|
112
|
+
strategyId: string,
|
|
113
|
+
strategyName: string,
|
|
114
|
+
strategyDescription?: string,
|
|
115
|
+
strategyUrl?: string,
|
|
116
|
+
strategyType: StrategyType,
|
|
117
|
+
activeSignals: number,
|
|
118
|
+
totalSignals: number,
|
|
119
|
+
timeInPosition: number,
|
|
120
|
+
averageSignalYield?: tinvest_common_pb.Quotation.AsObject,
|
|
121
|
+
averageSignalYieldYear?: tinvest_common_pb.Quotation.AsObject,
|
|
122
|
+
yield?: tinvest_common_pb.Quotation.AsObject,
|
|
123
|
+
yieldYear?: tinvest_common_pb.Quotation.AsObject,
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export enum StrategyDescriptionCase {
|
|
127
|
+
_STRATEGY_DESCRIPTION_NOT_SET = 0,
|
|
128
|
+
STRATEGY_DESCRIPTION = 3,
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export enum StrategyUrlCase {
|
|
132
|
+
_STRATEGY_URL_NOT_SET = 0,
|
|
133
|
+
STRATEGY_URL = 4,
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export class GetSignalsRequest extends jspb.Message {
|
|
138
|
+
getSignalId(): string;
|
|
139
|
+
setSignalId(value: string): GetSignalsRequest;
|
|
140
|
+
hasSignalId(): boolean;
|
|
141
|
+
clearSignalId(): GetSignalsRequest;
|
|
142
|
+
|
|
143
|
+
getStrategyId(): string;
|
|
144
|
+
setStrategyId(value: string): GetSignalsRequest;
|
|
145
|
+
hasStrategyId(): boolean;
|
|
146
|
+
clearStrategyId(): GetSignalsRequest;
|
|
147
|
+
|
|
148
|
+
getStrategyType(): StrategyType;
|
|
149
|
+
setStrategyType(value: StrategyType): GetSignalsRequest;
|
|
150
|
+
hasStrategyType(): boolean;
|
|
151
|
+
clearStrategyType(): GetSignalsRequest;
|
|
152
|
+
|
|
153
|
+
getInstrumentUid(): string;
|
|
154
|
+
setInstrumentUid(value: string): GetSignalsRequest;
|
|
155
|
+
hasInstrumentUid(): boolean;
|
|
156
|
+
clearInstrumentUid(): GetSignalsRequest;
|
|
157
|
+
|
|
158
|
+
getFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
159
|
+
setFrom(value?: google_protobuf_timestamp_pb.Timestamp): GetSignalsRequest;
|
|
160
|
+
hasFrom(): boolean;
|
|
161
|
+
clearFrom(): GetSignalsRequest;
|
|
162
|
+
|
|
163
|
+
getTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
164
|
+
setTo(value?: google_protobuf_timestamp_pb.Timestamp): GetSignalsRequest;
|
|
165
|
+
hasTo(): boolean;
|
|
166
|
+
clearTo(): GetSignalsRequest;
|
|
167
|
+
|
|
168
|
+
getDirection(): SignalDirection;
|
|
169
|
+
setDirection(value: SignalDirection): GetSignalsRequest;
|
|
170
|
+
hasDirection(): boolean;
|
|
171
|
+
clearDirection(): GetSignalsRequest;
|
|
172
|
+
|
|
173
|
+
getActive(): SignalState;
|
|
174
|
+
setActive(value: SignalState): GetSignalsRequest;
|
|
175
|
+
hasActive(): boolean;
|
|
176
|
+
clearActive(): GetSignalsRequest;
|
|
177
|
+
|
|
178
|
+
getPaging(): tinvest_common_pb.Page | undefined;
|
|
179
|
+
setPaging(value?: tinvest_common_pb.Page): GetSignalsRequest;
|
|
180
|
+
hasPaging(): boolean;
|
|
181
|
+
clearPaging(): GetSignalsRequest;
|
|
182
|
+
|
|
183
|
+
serializeBinary(): Uint8Array;
|
|
184
|
+
toObject(includeInstance?: boolean): GetSignalsRequest.AsObject;
|
|
185
|
+
static toObject(includeInstance: boolean, msg: GetSignalsRequest): GetSignalsRequest.AsObject;
|
|
186
|
+
static serializeBinaryToWriter(message: GetSignalsRequest, writer: jspb.BinaryWriter): void;
|
|
187
|
+
static deserializeBinary(bytes: Uint8Array): GetSignalsRequest;
|
|
188
|
+
static deserializeBinaryFromReader(message: GetSignalsRequest, reader: jspb.BinaryReader): GetSignalsRequest;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export namespace GetSignalsRequest {
|
|
192
|
+
export type AsObject = {
|
|
193
|
+
signalId?: string,
|
|
194
|
+
strategyId?: string,
|
|
195
|
+
strategyType?: StrategyType,
|
|
196
|
+
instrumentUid?: string,
|
|
197
|
+
from?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
198
|
+
to?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
199
|
+
direction?: SignalDirection,
|
|
200
|
+
active?: SignalState,
|
|
201
|
+
paging?: tinvest_common_pb.Page.AsObject,
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export enum SignalIdCase {
|
|
205
|
+
_SIGNAL_ID_NOT_SET = 0,
|
|
206
|
+
SIGNAL_ID = 1,
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export enum StrategyIdCase {
|
|
210
|
+
_STRATEGY_ID_NOT_SET = 0,
|
|
211
|
+
STRATEGY_ID = 2,
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export enum StrategyTypeCase {
|
|
215
|
+
_STRATEGY_TYPE_NOT_SET = 0,
|
|
216
|
+
STRATEGY_TYPE = 3,
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export enum InstrumentUidCase {
|
|
220
|
+
_INSTRUMENT_UID_NOT_SET = 0,
|
|
221
|
+
INSTRUMENT_UID = 4,
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export enum FromCase {
|
|
225
|
+
_FROM_NOT_SET = 0,
|
|
226
|
+
FROM = 5,
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export enum ToCase {
|
|
230
|
+
_TO_NOT_SET = 0,
|
|
231
|
+
TO = 6,
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export enum DirectionCase {
|
|
235
|
+
_DIRECTION_NOT_SET = 0,
|
|
236
|
+
DIRECTION = 7,
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export enum ActiveCase {
|
|
240
|
+
_ACTIVE_NOT_SET = 0,
|
|
241
|
+
ACTIVE = 8,
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export enum PagingCase {
|
|
245
|
+
_PAGING_NOT_SET = 0,
|
|
246
|
+
PAGING = 9,
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export class GetSignalsResponse extends jspb.Message {
|
|
251
|
+
getSignalsList(): Array<Signal>;
|
|
252
|
+
setSignalsList(value: Array<Signal>): GetSignalsResponse;
|
|
253
|
+
clearSignalsList(): GetSignalsResponse;
|
|
254
|
+
addSignals(value?: Signal, index?: number): Signal;
|
|
255
|
+
|
|
256
|
+
getPaging(): tinvest_common_pb.PageResponse | undefined;
|
|
257
|
+
setPaging(value?: tinvest_common_pb.PageResponse): GetSignalsResponse;
|
|
258
|
+
hasPaging(): boolean;
|
|
259
|
+
clearPaging(): GetSignalsResponse;
|
|
260
|
+
|
|
261
|
+
serializeBinary(): Uint8Array;
|
|
262
|
+
toObject(includeInstance?: boolean): GetSignalsResponse.AsObject;
|
|
263
|
+
static toObject(includeInstance: boolean, msg: GetSignalsResponse): GetSignalsResponse.AsObject;
|
|
264
|
+
static serializeBinaryToWriter(message: GetSignalsResponse, writer: jspb.BinaryWriter): void;
|
|
265
|
+
static deserializeBinary(bytes: Uint8Array): GetSignalsResponse;
|
|
266
|
+
static deserializeBinaryFromReader(message: GetSignalsResponse, reader: jspb.BinaryReader): GetSignalsResponse;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export namespace GetSignalsResponse {
|
|
270
|
+
export type AsObject = {
|
|
271
|
+
signalsList: Array<Signal.AsObject>,
|
|
272
|
+
paging?: tinvest_common_pb.PageResponse.AsObject,
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export class Signal extends jspb.Message {
|
|
277
|
+
getSignalId(): string;
|
|
278
|
+
setSignalId(value: string): Signal;
|
|
279
|
+
|
|
280
|
+
getStrategyId(): string;
|
|
281
|
+
setStrategyId(value: string): Signal;
|
|
282
|
+
|
|
283
|
+
getStrategyName(): string;
|
|
284
|
+
setStrategyName(value: string): Signal;
|
|
285
|
+
|
|
286
|
+
getInstrumentUid(): string;
|
|
287
|
+
setInstrumentUid(value: string): Signal;
|
|
288
|
+
|
|
289
|
+
getCreateDt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
290
|
+
setCreateDt(value?: google_protobuf_timestamp_pb.Timestamp): Signal;
|
|
291
|
+
hasCreateDt(): boolean;
|
|
292
|
+
clearCreateDt(): Signal;
|
|
293
|
+
|
|
294
|
+
getDirection(): SignalDirection;
|
|
295
|
+
setDirection(value: SignalDirection): Signal;
|
|
296
|
+
|
|
297
|
+
getInitialPrice(): tinvest_common_pb.Quotation | undefined;
|
|
298
|
+
setInitialPrice(value?: tinvest_common_pb.Quotation): Signal;
|
|
299
|
+
hasInitialPrice(): boolean;
|
|
300
|
+
clearInitialPrice(): Signal;
|
|
301
|
+
|
|
302
|
+
getInfo(): string;
|
|
303
|
+
setInfo(value: string): Signal;
|
|
304
|
+
hasInfo(): boolean;
|
|
305
|
+
clearInfo(): Signal;
|
|
306
|
+
|
|
307
|
+
getName(): string;
|
|
308
|
+
setName(value: string): Signal;
|
|
309
|
+
|
|
310
|
+
getTargetPrice(): tinvest_common_pb.Quotation | undefined;
|
|
311
|
+
setTargetPrice(value?: tinvest_common_pb.Quotation): Signal;
|
|
312
|
+
hasTargetPrice(): boolean;
|
|
313
|
+
clearTargetPrice(): Signal;
|
|
314
|
+
|
|
315
|
+
getEndDt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
316
|
+
setEndDt(value?: google_protobuf_timestamp_pb.Timestamp): Signal;
|
|
317
|
+
hasEndDt(): boolean;
|
|
318
|
+
clearEndDt(): Signal;
|
|
319
|
+
|
|
320
|
+
getProbability(): number;
|
|
321
|
+
setProbability(value: number): Signal;
|
|
322
|
+
hasProbability(): boolean;
|
|
323
|
+
clearProbability(): Signal;
|
|
324
|
+
|
|
325
|
+
getStoploss(): tinvest_common_pb.Quotation | undefined;
|
|
326
|
+
setStoploss(value?: tinvest_common_pb.Quotation): Signal;
|
|
327
|
+
hasStoploss(): boolean;
|
|
328
|
+
clearStoploss(): Signal;
|
|
329
|
+
|
|
330
|
+
getClosePrice(): tinvest_common_pb.Quotation | undefined;
|
|
331
|
+
setClosePrice(value?: tinvest_common_pb.Quotation): Signal;
|
|
332
|
+
hasClosePrice(): boolean;
|
|
333
|
+
clearClosePrice(): Signal;
|
|
334
|
+
|
|
335
|
+
getCloseDt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
336
|
+
setCloseDt(value?: google_protobuf_timestamp_pb.Timestamp): Signal;
|
|
337
|
+
hasCloseDt(): boolean;
|
|
338
|
+
clearCloseDt(): Signal;
|
|
339
|
+
|
|
340
|
+
serializeBinary(): Uint8Array;
|
|
341
|
+
toObject(includeInstance?: boolean): Signal.AsObject;
|
|
342
|
+
static toObject(includeInstance: boolean, msg: Signal): Signal.AsObject;
|
|
343
|
+
static serializeBinaryToWriter(message: Signal, writer: jspb.BinaryWriter): void;
|
|
344
|
+
static deserializeBinary(bytes: Uint8Array): Signal;
|
|
345
|
+
static deserializeBinaryFromReader(message: Signal, reader: jspb.BinaryReader): Signal;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export namespace Signal {
|
|
349
|
+
export type AsObject = {
|
|
350
|
+
signalId: string,
|
|
351
|
+
strategyId: string,
|
|
352
|
+
strategyName: string,
|
|
353
|
+
instrumentUid: string,
|
|
354
|
+
createDt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
355
|
+
direction: SignalDirection,
|
|
356
|
+
initialPrice?: tinvest_common_pb.Quotation.AsObject,
|
|
357
|
+
info?: string,
|
|
358
|
+
name: string,
|
|
359
|
+
targetPrice?: tinvest_common_pb.Quotation.AsObject,
|
|
360
|
+
endDt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
361
|
+
probability?: number,
|
|
362
|
+
stoploss?: tinvest_common_pb.Quotation.AsObject,
|
|
363
|
+
closePrice?: tinvest_common_pb.Quotation.AsObject,
|
|
364
|
+
closeDt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export enum InfoCase {
|
|
368
|
+
_INFO_NOT_SET = 0,
|
|
369
|
+
INFO = 8,
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export enum ProbabilityCase {
|
|
373
|
+
_PROBABILITY_NOT_SET = 0,
|
|
374
|
+
PROBABILITY = 12,
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export enum StoplossCase {
|
|
378
|
+
_STOPLOSS_NOT_SET = 0,
|
|
379
|
+
STOPLOSS = 13,
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export enum ClosePriceCase {
|
|
383
|
+
_CLOSE_PRICE_NOT_SET = 0,
|
|
384
|
+
CLOSE_PRICE = 14,
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export enum CloseDtCase {
|
|
388
|
+
_CLOSE_DT_NOT_SET = 0,
|
|
389
|
+
CLOSE_DT = 15,
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export enum StrategyType {
|
|
394
|
+
STRATEGY_TYPE_UNSPECIFIED = 0,
|
|
395
|
+
STRATEGY_TYPE_TECHNICAL = 1,
|
|
396
|
+
STRATEGY_TYPE_FUNDAMENTAL = 2,
|
|
397
|
+
}
|
|
398
|
+
export enum SignalDirection {
|
|
399
|
+
SIGNAL_DIRECTION_UNSPECIFIED = 0,
|
|
400
|
+
SIGNAL_DIRECTION_BUY = 1,
|
|
401
|
+
SIGNAL_DIRECTION_SELL = 2,
|
|
402
|
+
}
|
|
403
|
+
export enum SignalState {
|
|
404
|
+
SIGNAL_STATE_UNSPECIFIED = 0,
|
|
405
|
+
SIGNAL_STATE_ACTIVE = 1,
|
|
406
|
+
SIGNAL_STATE_CLOSED = 2,
|
|
407
|
+
SIGNAL_STATE_ALL = 3,
|
|
408
|
+
}
|