@marleena/trb-proto 0.1.0 → 0.1.1
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 +26 -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/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 +989 -0
- package/gen/js-ts/nats/manager_pb.d.ts +1370 -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,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for example.contract.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: example/Example.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as example_Example_pb from '../example/Example_pb'; // proto import: "example/Example.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class exampleClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorUnaryRPCMessage = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/example.contract.v1.example/UnaryRPCMessage',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
example_Example_pb.MessageRequest,
|
|
46
|
+
example_Example_pb.MessageResponse,
|
|
47
|
+
(request: example_Example_pb.MessageRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
example_Example_pb.MessageResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
unaryRPCMessage(
|
|
54
|
+
request: example_Example_pb.MessageRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<example_Example_pb.MessageResponse>;
|
|
56
|
+
|
|
57
|
+
unaryRPCMessage(
|
|
58
|
+
request: example_Example_pb.MessageRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: example_Example_pb.MessageResponse) => void): grpcWeb.ClientReadableStream<example_Example_pb.MessageResponse>;
|
|
62
|
+
|
|
63
|
+
unaryRPCMessage(
|
|
64
|
+
request: example_Example_pb.MessageRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: example_Example_pb.MessageResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/example.contract.v1.example/UnaryRPCMessage',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorUnaryRPCMessage,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/example.contract.v1.example/UnaryRPCMessage',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorUnaryRPCMessage);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorServerSideStream = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/example.contract.v1.example/ServerSideStream',
|
|
87
|
+
grpcWeb.MethodType.SERVER_STREAMING,
|
|
88
|
+
example_Example_pb.MessageRequest,
|
|
89
|
+
example_Example_pb.MessageStreamResponse,
|
|
90
|
+
(request: example_Example_pb.MessageRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
example_Example_pb.MessageStreamResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
serverSideStream(
|
|
97
|
+
request: example_Example_pb.MessageRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<example_Example_pb.MessageStreamResponse> {
|
|
99
|
+
return this.client_.serverStreaming(
|
|
100
|
+
this.hostname_ +
|
|
101
|
+
'/example.contract.v1.example/ServerSideStream',
|
|
102
|
+
request,
|
|
103
|
+
metadata || {},
|
|
104
|
+
this.methodDescriptorServerSideStream);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_api_annotations_pb from '../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class MessageRequest extends jspb.Message {
|
|
7
|
+
getText(): string;
|
|
8
|
+
setText(value: string): MessageRequest;
|
|
9
|
+
|
|
10
|
+
serializeBinary(): Uint8Array;
|
|
11
|
+
toObject(includeInstance?: boolean): MessageRequest.AsObject;
|
|
12
|
+
static toObject(includeInstance: boolean, msg: MessageRequest): MessageRequest.AsObject;
|
|
13
|
+
static serializeBinaryToWriter(message: MessageRequest, writer: jspb.BinaryWriter): void;
|
|
14
|
+
static deserializeBinary(bytes: Uint8Array): MessageRequest;
|
|
15
|
+
static deserializeBinaryFromReader(message: MessageRequest, reader: jspb.BinaryReader): MessageRequest;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export namespace MessageRequest {
|
|
19
|
+
export type AsObject = {
|
|
20
|
+
text: string,
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class MessageResponse extends jspb.Message {
|
|
25
|
+
getText(): string;
|
|
26
|
+
setText(value: string): MessageResponse;
|
|
27
|
+
|
|
28
|
+
serializeBinary(): Uint8Array;
|
|
29
|
+
toObject(includeInstance?: boolean): MessageResponse.AsObject;
|
|
30
|
+
static toObject(includeInstance: boolean, msg: MessageResponse): MessageResponse.AsObject;
|
|
31
|
+
static serializeBinaryToWriter(message: MessageResponse, writer: jspb.BinaryWriter): void;
|
|
32
|
+
static deserializeBinary(bytes: Uint8Array): MessageResponse;
|
|
33
|
+
static deserializeBinaryFromReader(message: MessageResponse, reader: jspb.BinaryReader): MessageResponse;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace MessageResponse {
|
|
37
|
+
export type AsObject = {
|
|
38
|
+
text: string,
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class MessageStreamRequest extends jspb.Message {
|
|
43
|
+
getText(): string;
|
|
44
|
+
setText(value: string): MessageStreamRequest;
|
|
45
|
+
|
|
46
|
+
serializeBinary(): Uint8Array;
|
|
47
|
+
toObject(includeInstance?: boolean): MessageStreamRequest.AsObject;
|
|
48
|
+
static toObject(includeInstance: boolean, msg: MessageStreamRequest): MessageStreamRequest.AsObject;
|
|
49
|
+
static serializeBinaryToWriter(message: MessageStreamRequest, writer: jspb.BinaryWriter): void;
|
|
50
|
+
static deserializeBinary(bytes: Uint8Array): MessageStreamRequest;
|
|
51
|
+
static deserializeBinaryFromReader(message: MessageStreamRequest, reader: jspb.BinaryReader): MessageStreamRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export namespace MessageStreamRequest {
|
|
55
|
+
export type AsObject = {
|
|
56
|
+
text: string,
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class MessageStreamResponse extends jspb.Message {
|
|
61
|
+
getText(): string;
|
|
62
|
+
setText(value: string): MessageStreamResponse;
|
|
63
|
+
|
|
64
|
+
serializeBinary(): Uint8Array;
|
|
65
|
+
toObject(includeInstance?: boolean): MessageStreamResponse.AsObject;
|
|
66
|
+
static toObject(includeInstance: boolean, msg: MessageStreamResponse): MessageStreamResponse.AsObject;
|
|
67
|
+
static serializeBinaryToWriter(message: MessageStreamResponse, writer: jspb.BinaryWriter): void;
|
|
68
|
+
static deserializeBinary(bytes: Uint8Array): MessageStreamResponse;
|
|
69
|
+
static deserializeBinaryFromReader(message: MessageStreamResponse, reader: jspb.BinaryReader): MessageStreamResponse;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export namespace MessageStreamResponse {
|
|
73
|
+
export type AsObject = {
|
|
74
|
+
text: string,
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for manager_indicators
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: manager_indicators/manager_indicators.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as manager_indicators_manager_indicators_pb from '../manager_indicators/manager_indicators_pb'; // proto import: "manager_indicators/manager_indicators.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class manager_indicatorsClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorupdated_indicator = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/manager_indicators.manager_indicators/updated_indicator',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
manager_indicators_manager_indicators_pb.IndicatorUpdateRequest,
|
|
46
|
+
manager_indicators_manager_indicators_pb.IndicatorUpdateResponse,
|
|
47
|
+
(request: manager_indicators_manager_indicators_pb.IndicatorUpdateRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
manager_indicators_manager_indicators_pb.IndicatorUpdateResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
updated_indicator(
|
|
54
|
+
request: manager_indicators_manager_indicators_pb.IndicatorUpdateRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<manager_indicators_manager_indicators_pb.IndicatorUpdateResponse>;
|
|
56
|
+
|
|
57
|
+
updated_indicator(
|
|
58
|
+
request: manager_indicators_manager_indicators_pb.IndicatorUpdateRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: manager_indicators_manager_indicators_pb.IndicatorUpdateResponse) => void): grpcWeb.ClientReadableStream<manager_indicators_manager_indicators_pb.IndicatorUpdateResponse>;
|
|
62
|
+
|
|
63
|
+
updated_indicator(
|
|
64
|
+
request: manager_indicators_manager_indicators_pb.IndicatorUpdateRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: manager_indicators_manager_indicators_pb.IndicatorUpdateResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/manager_indicators.manager_indicators/updated_indicator',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorupdated_indicator,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/manager_indicators.manager_indicators/updated_indicator',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorupdated_indicator);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_api_annotations_pb from '../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
|
|
4
|
+
import * as google_api_field_behavior_pb from '../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class IndicatorUpdateRequest extends jspb.Message {
|
|
8
|
+
getIndicatorsListList(): Array<indicators>;
|
|
9
|
+
setIndicatorsListList(value: Array<indicators>): IndicatorUpdateRequest;
|
|
10
|
+
clearIndicatorsListList(): IndicatorUpdateRequest;
|
|
11
|
+
addIndicatorsList(value: indicators, index?: number): IndicatorUpdateRequest;
|
|
12
|
+
|
|
13
|
+
getIsUpdate(): boolean;
|
|
14
|
+
setIsUpdate(value: boolean): IndicatorUpdateRequest;
|
|
15
|
+
|
|
16
|
+
serializeBinary(): Uint8Array;
|
|
17
|
+
toObject(includeInstance?: boolean): IndicatorUpdateRequest.AsObject;
|
|
18
|
+
static toObject(includeInstance: boolean, msg: IndicatorUpdateRequest): IndicatorUpdateRequest.AsObject;
|
|
19
|
+
static serializeBinaryToWriter(message: IndicatorUpdateRequest, writer: jspb.BinaryWriter): void;
|
|
20
|
+
static deserializeBinary(bytes: Uint8Array): IndicatorUpdateRequest;
|
|
21
|
+
static deserializeBinaryFromReader(message: IndicatorUpdateRequest, reader: jspb.BinaryReader): IndicatorUpdateRequest;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export namespace IndicatorUpdateRequest {
|
|
25
|
+
export type AsObject = {
|
|
26
|
+
indicatorsListList: Array<indicators>,
|
|
27
|
+
isUpdate: boolean,
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class IndicatorUpdateResponse extends jspb.Message {
|
|
32
|
+
getSuccess(): boolean;
|
|
33
|
+
setSuccess(value: boolean): IndicatorUpdateResponse;
|
|
34
|
+
|
|
35
|
+
getMessage(): string;
|
|
36
|
+
setMessage(value: string): IndicatorUpdateResponse;
|
|
37
|
+
|
|
38
|
+
serializeBinary(): Uint8Array;
|
|
39
|
+
toObject(includeInstance?: boolean): IndicatorUpdateResponse.AsObject;
|
|
40
|
+
static toObject(includeInstance: boolean, msg: IndicatorUpdateResponse): IndicatorUpdateResponse.AsObject;
|
|
41
|
+
static serializeBinaryToWriter(message: IndicatorUpdateResponse, writer: jspb.BinaryWriter): void;
|
|
42
|
+
static deserializeBinary(bytes: Uint8Array): IndicatorUpdateResponse;
|
|
43
|
+
static deserializeBinaryFromReader(message: IndicatorUpdateResponse, reader: jspb.BinaryReader): IndicatorUpdateResponse;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export namespace IndicatorUpdateResponse {
|
|
47
|
+
export type AsObject = {
|
|
48
|
+
success: boolean,
|
|
49
|
+
message: string,
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export enum indicators {
|
|
54
|
+
AD = 0,
|
|
55
|
+
ADOSC = 1,
|
|
56
|
+
ADX = 2,
|
|
57
|
+
ADXR = 3,
|
|
58
|
+
APO = 4,
|
|
59
|
+
AROON = 5,
|
|
60
|
+
AROONOSC = 6,
|
|
61
|
+
ATR = 7,
|
|
62
|
+
AVGPRICE = 8,
|
|
63
|
+
BBANDS = 9,
|
|
64
|
+
BETA = 10,
|
|
65
|
+
BOP = 11,
|
|
66
|
+
CCI = 12,
|
|
67
|
+
CDL2CROWS = 13,
|
|
68
|
+
CDL3BLACKCROWS = 14,
|
|
69
|
+
CDL3INSIDE = 15,
|
|
70
|
+
CDL3LINESTRIKE = 16,
|
|
71
|
+
CDL3STARSINSOUTH = 17,
|
|
72
|
+
CDL3WHITESOLDIERS = 18,
|
|
73
|
+
CDLABANDONEDBABY = 19,
|
|
74
|
+
CDLADVANCEBLOCK = 20,
|
|
75
|
+
CDLBELTHOLD = 21,
|
|
76
|
+
CDLBREAKAWAY = 22,
|
|
77
|
+
CDLCLOSINGMARUBOZU = 23,
|
|
78
|
+
CDLCONCEALBABYSWALL = 24,
|
|
79
|
+
CDLCOUNTERATTACK = 25,
|
|
80
|
+
CDLDARKCLOUDCOVER = 26,
|
|
81
|
+
CDLDOJI = 27,
|
|
82
|
+
CDLDOJISTAR = 28,
|
|
83
|
+
CDLDRAGONFLYDOJI = 29,
|
|
84
|
+
CDLENGULFING = 30,
|
|
85
|
+
CDLEVENINGDOJISTAR = 31,
|
|
86
|
+
CDLEVENINGSTAR = 32,
|
|
87
|
+
CDLGAPSIDESIDEWHITE = 33,
|
|
88
|
+
CDLGRAVESTONEDOJI = 34,
|
|
89
|
+
CDLHAMMER = 35,
|
|
90
|
+
CDLHANGINGMAN = 36,
|
|
91
|
+
CDLHARAMI = 37,
|
|
92
|
+
CDLHARAMICROSS = 38,
|
|
93
|
+
CDLHIGHWAVE = 39,
|
|
94
|
+
CDLHIKKAKE = 40,
|
|
95
|
+
CDLHIKKAKEMOD = 41,
|
|
96
|
+
CDLHOMINGPIGEON = 42,
|
|
97
|
+
CDLIDENTICAL3CROWS = 43,
|
|
98
|
+
CDLINNECK = 44,
|
|
99
|
+
CDLINVERTEDHAMMER = 45,
|
|
100
|
+
CDLKICKING = 46,
|
|
101
|
+
CDLKICKINGBYLENGTH = 47,
|
|
102
|
+
CDLLADDERBOTTOM = 48,
|
|
103
|
+
CDLLONGLEGGEDDOJI = 49,
|
|
104
|
+
CDLLONGLINE = 50,
|
|
105
|
+
CDLMARUBOZU = 51,
|
|
106
|
+
CDLMATCHINGLOW = 52,
|
|
107
|
+
CDLMATHOLD = 53,
|
|
108
|
+
CDLMORNINGDOJISTAR = 54,
|
|
109
|
+
CDLMORNINGSTAR = 55,
|
|
110
|
+
CDLONNECK = 56,
|
|
111
|
+
CDLPIERCING = 57,
|
|
112
|
+
CDLRICKSHAWMAN = 58,
|
|
113
|
+
CDLRISEFALL3METHODS = 59,
|
|
114
|
+
CDLSEPARATINGLINES = 60,
|
|
115
|
+
CDLSHOOTINGSTAR = 61,
|
|
116
|
+
CDLSHORTLINE = 62,
|
|
117
|
+
CDLSPINNINGTOP = 63,
|
|
118
|
+
CDLSTALLEDPATTERN = 64,
|
|
119
|
+
CDLSTICKSANDWICH = 65,
|
|
120
|
+
CDLTAKURI = 66,
|
|
121
|
+
CDLTASUKIGAP = 67,
|
|
122
|
+
CDLTHRUSTING = 68,
|
|
123
|
+
CDLTRISTAR = 69,
|
|
124
|
+
CDLUNIQUE3RIVER = 70,
|
|
125
|
+
CDLUPSIDEGAP2CROWS = 71,
|
|
126
|
+
CDLXSIDEGAP3METHODS = 72,
|
|
127
|
+
CMO = 73,
|
|
128
|
+
CORREL = 74,
|
|
129
|
+
DEMA = 75,
|
|
130
|
+
DX = 76,
|
|
131
|
+
EMA = 77,
|
|
132
|
+
HT_DCPERIOD = 78,
|
|
133
|
+
HT_DCPHASE = 79,
|
|
134
|
+
HT_PHASOR = 80,
|
|
135
|
+
HT_SINE = 81,
|
|
136
|
+
HT_TRENDLINE = 82,
|
|
137
|
+
HT_TRENDMODE = 83,
|
|
138
|
+
KAMA = 84,
|
|
139
|
+
LINEARREG = 85,
|
|
140
|
+
LINEARREG_ANGLE = 86,
|
|
141
|
+
LINEARREG_INTERCEPT = 87,
|
|
142
|
+
LINEARREG_SLOPE = 88,
|
|
143
|
+
MA = 89,
|
|
144
|
+
MACD = 90,
|
|
145
|
+
MACDEXT = 91,
|
|
146
|
+
MAMA = 92,
|
|
147
|
+
MAX = 93,
|
|
148
|
+
MAXINDEX = 94,
|
|
149
|
+
MEDPRICE = 95,
|
|
150
|
+
MFI = 96,
|
|
151
|
+
MIDPOINT = 97,
|
|
152
|
+
MIDPRICE = 98,
|
|
153
|
+
MIN = 99,
|
|
154
|
+
MININDEX = 100,
|
|
155
|
+
MINMAX = 101,
|
|
156
|
+
MINMAXINDEX = 102,
|
|
157
|
+
MINUS_DI = 103,
|
|
158
|
+
MINUS_DM = 104,
|
|
159
|
+
MOM = 105,
|
|
160
|
+
NATR = 106,
|
|
161
|
+
OBV = 107,
|
|
162
|
+
PLUS_DI = 108,
|
|
163
|
+
PLUS_DM = 109,
|
|
164
|
+
PPO = 110,
|
|
165
|
+
ROC = 111,
|
|
166
|
+
ROCP = 112,
|
|
167
|
+
ROCR = 113,
|
|
168
|
+
ROCR100 = 114,
|
|
169
|
+
RSI = 115,
|
|
170
|
+
SAR = 116,
|
|
171
|
+
SAREXT = 117,
|
|
172
|
+
SMA = 118,
|
|
173
|
+
STDDEV = 119,
|
|
174
|
+
STOCH = 120,
|
|
175
|
+
STOCHF = 121,
|
|
176
|
+
STOCHRSI = 122,
|
|
177
|
+
SUM = 123,
|
|
178
|
+
T3 = 124,
|
|
179
|
+
TEMA = 125,
|
|
180
|
+
TRANGE = 126,
|
|
181
|
+
TRIMA = 127,
|
|
182
|
+
TRIX = 128,
|
|
183
|
+
TSF = 129,
|
|
184
|
+
TYPPRICE = 130,
|
|
185
|
+
ULTOSC = 131,
|
|
186
|
+
VAR = 132,
|
|
187
|
+
WCLPRICE = 133,
|
|
188
|
+
WILLR = 134,
|
|
189
|
+
WMA = 135,
|
|
190
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for moex.contract.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v7.34.1
|
|
11
|
+
// source: moex/moex.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as moex_moex_pb from '../moex/moex_pb'; // proto import: "moex/moex.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class dealingClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'binary';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorDealing = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/moex.contract.v1.dealing/Dealing',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
moex_moex_pb.DealingRequest,
|
|
46
|
+
moex_moex_pb.DealingResponse,
|
|
47
|
+
(request: moex_moex_pb.DealingRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
moex_moex_pb.DealingResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
dealing(
|
|
54
|
+
request: moex_moex_pb.DealingRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<moex_moex_pb.DealingResponse>;
|
|
56
|
+
|
|
57
|
+
dealing(
|
|
58
|
+
request: moex_moex_pb.DealingRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: moex_moex_pb.DealingResponse) => void): grpcWeb.ClientReadableStream<moex_moex_pb.DealingResponse>;
|
|
62
|
+
|
|
63
|
+
dealing(
|
|
64
|
+
request: moex_moex_pb.DealingRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: moex_moex_pb.DealingResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/moex.contract.v1.dealing/Dealing',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorDealing,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/moex.contract.v1.dealing/Dealing',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorDealing);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_api_annotations_pb from '../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DealingRequest extends jspb.Message {
|
|
7
|
+
getAddress(): string;
|
|
8
|
+
setAddress(value: string): DealingRequest;
|
|
9
|
+
|
|
10
|
+
getHeader(): string;
|
|
11
|
+
setHeader(value: string): DealingRequest;
|
|
12
|
+
|
|
13
|
+
getLogon(): string;
|
|
14
|
+
setLogon(value: string): DealingRequest;
|
|
15
|
+
|
|
16
|
+
getInstrument(): string;
|
|
17
|
+
setInstrument(value: string): DealingRequest;
|
|
18
|
+
|
|
19
|
+
serializeBinary(): Uint8Array;
|
|
20
|
+
toObject(includeInstance?: boolean): DealingRequest.AsObject;
|
|
21
|
+
static toObject(includeInstance: boolean, msg: DealingRequest): DealingRequest.AsObject;
|
|
22
|
+
static serializeBinaryToWriter(message: DealingRequest, writer: jspb.BinaryWriter): void;
|
|
23
|
+
static deserializeBinary(bytes: Uint8Array): DealingRequest;
|
|
24
|
+
static deserializeBinaryFromReader(message: DealingRequest, reader: jspb.BinaryReader): DealingRequest;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace DealingRequest {
|
|
28
|
+
export type AsObject = {
|
|
29
|
+
address: string,
|
|
30
|
+
header: string,
|
|
31
|
+
logon: string,
|
|
32
|
+
instrument: string,
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class DealingResponse extends jspb.Message {
|
|
37
|
+
getResponse(): string;
|
|
38
|
+
setResponse(value: string): DealingResponse;
|
|
39
|
+
|
|
40
|
+
serializeBinary(): Uint8Array;
|
|
41
|
+
toObject(includeInstance?: boolean): DealingResponse.AsObject;
|
|
42
|
+
static toObject(includeInstance: boolean, msg: DealingResponse): DealingResponse.AsObject;
|
|
43
|
+
static serializeBinaryToWriter(message: DealingResponse, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): DealingResponse;
|
|
45
|
+
static deserializeBinaryFromReader(message: DealingResponse, reader: jspb.BinaryReader): DealingResponse;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace DealingResponse {
|
|
49
|
+
export type AsObject = {
|
|
50
|
+
response: string,
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|