@marleena/trb-proto 1.0.28 → 1.0.30
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 +15 -3
- package/gen/js-ts/{tinvest → api/tinvest}/InstrumentsServiceClientPb.ts +432 -432
- package/gen/js-ts/{tinvest → api/tinvest}/MarketdataServiceClientPb.ts +98 -98
- package/gen/js-ts/{tinvest → api/tinvest}/OperationsServiceClientPb.ts +90 -90
- package/gen/js-ts/{tinvest → api/tinvest}/OrdersServiceClientPb.ts +94 -94
- package/gen/js-ts/{tinvest → api/tinvest}/SandboxServiceClientPb.ts +206 -206
- package/gen/js-ts/{tinvest → api/tinvest}/SignalsServiceClientPb.ts +22 -22
- package/gen/js-ts/{tinvest → api/tinvest}/StopordersServiceClientPb.ts +32 -32
- package/gen/js-ts/{tinvest → api/tinvest}/UsersServiceClientPb.ts +82 -82
- package/gen/js-ts/{tinvest → api/tinvest}/common_pb.js +1 -1
- package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.d.ts +560 -560
- package/gen/js-ts/{tinvest → api/tinvest}/instruments_pb.js +804 -804
- package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.d.ts +104 -104
- package/gen/js-ts/{tinvest → api/tinvest}/marketdata_pb.js +154 -154
- package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.d.ts +229 -229
- package/gen/js-ts/{tinvest → api/tinvest}/operations_pb.js +364 -364
- package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.d.ts +153 -153
- package/gen/js-ts/{tinvest → api/tinvest}/orders_pb.js +226 -226
- package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.d.ts +12 -12
- package/gen/js-ts/{tinvest → api/tinvest}/sandbox_pb.js +22 -22
- package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.d.ts +32 -32
- package/gen/js-ts/{tinvest → api/tinvest}/signals_pb.js +54 -54
- package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.d.ts +38 -38
- package/gen/js-ts/{tinvest → api/tinvest}/stoporders_pb.js +59 -59
- package/gen/js-ts/{tinvest → api/tinvest}/users_pb.d.ts +36 -36
- package/gen/js-ts/{tinvest → api/tinvest}/users_pb.js +59 -59
- package/gen/js-ts/clickhouse/AdminServiceClientPb.ts +1161 -0
- package/gen/js-ts/clickhouse/ClickhouseServiceClientPb.ts +216 -0
- package/gen/js-ts/{api/clickhouse/manager_pb.d.ts → clickhouse/admin_pb.d.ts} +2 -2
- package/gen/js-ts/{api/clickhouse/manager_pb.js → clickhouse/admin_pb.js} +1551 -1551
- package/gen/js-ts/{api/db_api/db_api_pb.d.ts → clickhouse/clickhouse_pb.d.ts} +8 -158
- package/gen/js-ts/clickhouse/clickhouse_pb.js +2440 -0
- package/gen/js-ts/nats/NatsServiceClientPb.ts +1032 -0
- package/gen/js-ts/{api/nats/manager_pb.d.ts → nats/nats_pb.d.ts} +1 -1
- package/gen/js-ts/{api/nats/manager_pb.js → nats/nats_pb.js} +1784 -1784
- package/gen/js-ts/postgresql/AdminServiceClientPb.ts +1591 -0
- package/gen/js-ts/postgresql/PostgresqlServiceClientPb.ts +129 -0
- package/gen/js-ts/postgresql/admin_pb.d.ts +1895 -0
- package/gen/js-ts/postgresql/admin_pb.js +15465 -0
- package/gen/js-ts/postgresql/postgresql_pb.d.ts +156 -0
- package/gen/js-ts/postgresql/postgresql_pb.js +1311 -0
- package/gen/js-ts/{api/test → test}/TestServiceClientPb.ts +16 -16
- package/gen/js-ts/{api/test → test}/test_pb.d.ts +5 -5
- package/gen/js-ts/{api/test → test}/test_pb.js +58 -58
- package/package.json +1 -1
- package/gen/js-ts/api/clickhouse/ManagerServiceClientPb.ts +0 -1161
- package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +0 -302
- package/gen/js-ts/api/db_api/db_api_pb.js +0 -3723
- package/gen/js-ts/api/nats/ManagerServiceClientPb.ts +0 -1032
- /package/gen/js-ts/{tinvest → api/tinvest}/common_pb.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as jspb from 'google-protobuf'
|
|
2
2
|
|
|
3
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 '
|
|
5
|
-
import * as
|
|
4
|
+
import * as google_api_field_behavior_pb from '../../google/api/field_behavior_pb'; // proto import: "google/api/field_behavior.proto"
|
|
5
|
+
import * as api_tinvest_common_pb from '../../api/tinvest/common_pb'; // proto import: "api/tinvest/common.proto"
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
export class GetAccountsRequest extends jspb.Message {
|
|
@@ -115,38 +115,38 @@ export namespace GetMarginAttributesRequest {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export class GetMarginAttributesResponse extends jspb.Message {
|
|
118
|
-
getLiquidPortfolio():
|
|
119
|
-
setLiquidPortfolio(value?:
|
|
118
|
+
getLiquidPortfolio(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
119
|
+
setLiquidPortfolio(value?: api_tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
|
|
120
120
|
hasLiquidPortfolio(): boolean;
|
|
121
121
|
clearLiquidPortfolio(): GetMarginAttributesResponse;
|
|
122
122
|
|
|
123
|
-
getStartingMargin():
|
|
124
|
-
setStartingMargin(value?:
|
|
123
|
+
getStartingMargin(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
124
|
+
setStartingMargin(value?: api_tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
|
|
125
125
|
hasStartingMargin(): boolean;
|
|
126
126
|
clearStartingMargin(): GetMarginAttributesResponse;
|
|
127
127
|
|
|
128
|
-
getMinimalMargin():
|
|
129
|
-
setMinimalMargin(value?:
|
|
128
|
+
getMinimalMargin(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
129
|
+
setMinimalMargin(value?: api_tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
|
|
130
130
|
hasMinimalMargin(): boolean;
|
|
131
131
|
clearMinimalMargin(): GetMarginAttributesResponse;
|
|
132
132
|
|
|
133
|
-
getFundsSufficiencyLevel():
|
|
134
|
-
setFundsSufficiencyLevel(value?:
|
|
133
|
+
getFundsSufficiencyLevel(): api_tinvest_common_pb.Quotation | undefined;
|
|
134
|
+
setFundsSufficiencyLevel(value?: api_tinvest_common_pb.Quotation): GetMarginAttributesResponse;
|
|
135
135
|
hasFundsSufficiencyLevel(): boolean;
|
|
136
136
|
clearFundsSufficiencyLevel(): GetMarginAttributesResponse;
|
|
137
137
|
|
|
138
|
-
getAmountOfMissingFunds():
|
|
139
|
-
setAmountOfMissingFunds(value?:
|
|
138
|
+
getAmountOfMissingFunds(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
139
|
+
setAmountOfMissingFunds(value?: api_tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
|
|
140
140
|
hasAmountOfMissingFunds(): boolean;
|
|
141
141
|
clearAmountOfMissingFunds(): GetMarginAttributesResponse;
|
|
142
142
|
|
|
143
|
-
getCorrectedMargin():
|
|
144
|
-
setCorrectedMargin(value?:
|
|
143
|
+
getCorrectedMargin(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
144
|
+
setCorrectedMargin(value?: api_tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
|
|
145
145
|
hasCorrectedMargin(): boolean;
|
|
146
146
|
clearCorrectedMargin(): GetMarginAttributesResponse;
|
|
147
147
|
|
|
148
|
-
getGuaranteeForFutures():
|
|
149
|
-
setGuaranteeForFutures(value?:
|
|
148
|
+
getGuaranteeForFutures(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
149
|
+
setGuaranteeForFutures(value?: api_tinvest_common_pb.MoneyValue): GetMarginAttributesResponse;
|
|
150
150
|
hasGuaranteeForFutures(): boolean;
|
|
151
151
|
clearGuaranteeForFutures(): GetMarginAttributesResponse;
|
|
152
152
|
|
|
@@ -160,13 +160,13 @@ export class GetMarginAttributesResponse extends jspb.Message {
|
|
|
160
160
|
|
|
161
161
|
export namespace GetMarginAttributesResponse {
|
|
162
162
|
export type AsObject = {
|
|
163
|
-
liquidPortfolio?:
|
|
164
|
-
startingMargin?:
|
|
165
|
-
minimalMargin?:
|
|
166
|
-
fundsSufficiencyLevel?:
|
|
167
|
-
amountOfMissingFunds?:
|
|
168
|
-
correctedMargin?:
|
|
169
|
-
guaranteeForFutures?:
|
|
163
|
+
liquidPortfolio?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
164
|
+
startingMargin?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
165
|
+
minimalMargin?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
166
|
+
fundsSufficiencyLevel?: api_tinvest_common_pb.Quotation.AsObject,
|
|
167
|
+
amountOfMissingFunds?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
168
|
+
correctedMargin?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
169
|
+
guaranteeForFutures?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -368,10 +368,10 @@ export class BankAccount extends jspb.Message {
|
|
|
368
368
|
getName(): string;
|
|
369
369
|
setName(value: string): BankAccount;
|
|
370
370
|
|
|
371
|
-
getMoneyList(): Array<
|
|
372
|
-
setMoneyList(value: Array<
|
|
371
|
+
getMoneyList(): Array<api_tinvest_common_pb.MoneyValue>;
|
|
372
|
+
setMoneyList(value: Array<api_tinvest_common_pb.MoneyValue>): BankAccount;
|
|
373
373
|
clearMoneyList(): BankAccount;
|
|
374
|
-
addMoney(value?:
|
|
374
|
+
addMoney(value?: api_tinvest_common_pb.MoneyValue, index?: number): api_tinvest_common_pb.MoneyValue;
|
|
375
375
|
|
|
376
376
|
getOpenedDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
377
377
|
setOpenedDate(value?: google_protobuf_timestamp_pb.Timestamp): BankAccount;
|
|
@@ -393,7 +393,7 @@ export namespace BankAccount {
|
|
|
393
393
|
export type AsObject = {
|
|
394
394
|
id: string,
|
|
395
395
|
name: string,
|
|
396
|
-
moneyList: Array<
|
|
396
|
+
moneyList: Array<api_tinvest_common_pb.MoneyValue.AsObject>,
|
|
397
397
|
openedDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
398
398
|
type: AccountType,
|
|
399
399
|
}
|
|
@@ -406,8 +406,8 @@ export class CurrencyTransferRequest extends jspb.Message {
|
|
|
406
406
|
getToAccountId(): string;
|
|
407
407
|
setToAccountId(value: string): CurrencyTransferRequest;
|
|
408
408
|
|
|
409
|
-
getAmount():
|
|
410
|
-
setAmount(value?:
|
|
409
|
+
getAmount(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
410
|
+
setAmount(value?: api_tinvest_common_pb.MoneyValue): CurrencyTransferRequest;
|
|
411
411
|
hasAmount(): boolean;
|
|
412
412
|
clearAmount(): CurrencyTransferRequest;
|
|
413
413
|
|
|
@@ -426,7 +426,7 @@ export namespace CurrencyTransferRequest {
|
|
|
426
426
|
export type AsObject = {
|
|
427
427
|
fromAccountId: string,
|
|
428
428
|
toAccountId: string,
|
|
429
|
-
amount?:
|
|
429
|
+
amount?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
430
430
|
transactionId: string,
|
|
431
431
|
}
|
|
432
432
|
}
|
|
@@ -452,8 +452,8 @@ export class PayInRequest extends jspb.Message {
|
|
|
452
452
|
getToAccountId(): string;
|
|
453
453
|
setToAccountId(value: string): PayInRequest;
|
|
454
454
|
|
|
455
|
-
getAmount():
|
|
456
|
-
setAmount(value?:
|
|
455
|
+
getAmount(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
456
|
+
setAmount(value?: api_tinvest_common_pb.MoneyValue): PayInRequest;
|
|
457
457
|
hasAmount(): boolean;
|
|
458
458
|
clearAmount(): PayInRequest;
|
|
459
459
|
|
|
@@ -469,7 +469,7 @@ export namespace PayInRequest {
|
|
|
469
469
|
export type AsObject = {
|
|
470
470
|
fromAccountId: string,
|
|
471
471
|
toAccountId: string,
|
|
472
|
-
amount?:
|
|
472
|
+
amount?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
|
|
@@ -561,8 +561,8 @@ export class InstrumentParameter extends jspb.Message {
|
|
|
561
561
|
getName(): AccountValue;
|
|
562
562
|
setName(value: AccountValue): InstrumentParameter;
|
|
563
563
|
|
|
564
|
-
getValue():
|
|
565
|
-
setValue(value?:
|
|
564
|
+
getValue(): api_tinvest_common_pb.MoneyValue | undefined;
|
|
565
|
+
setValue(value?: api_tinvest_common_pb.MoneyValue): InstrumentParameter;
|
|
566
566
|
hasValue(): boolean;
|
|
567
567
|
clearValue(): InstrumentParameter;
|
|
568
568
|
|
|
@@ -577,7 +577,7 @@ export class InstrumentParameter extends jspb.Message {
|
|
|
577
577
|
export namespace InstrumentParameter {
|
|
578
578
|
export type AsObject = {
|
|
579
579
|
name: AccountValue,
|
|
580
|
-
value?:
|
|
580
|
+
value?: api_tinvest_common_pb.MoneyValue.AsObject,
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// source: tinvest/users.proto
|
|
1
|
+
// source: api/tinvest/users.proto
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview
|
|
4
4
|
* @enhanceable
|
|
@@ -23,10 +23,10 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
|
-
var google_api_field_behavior_pb = require('
|
|
26
|
+
var google_api_field_behavior_pb = require('../../google/api/field_behavior_pb.js');
|
|
27
27
|
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
28
|
-
var
|
|
29
|
-
goog.object.extend(proto,
|
|
28
|
+
var api_tinvest_common_pb = require('../../api/tinvest/common_pb.js');
|
|
29
|
+
goog.object.extend(proto, api_tinvest_common_pb);
|
|
30
30
|
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.AccessLevel', null, global);
|
|
31
31
|
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.Account', null, global);
|
|
32
32
|
goog.exportSymbol('proto.tinkoff.public.invest.api.contract.v1.AccountStatus', null, global);
|
|
@@ -1337,13 +1337,13 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1337
1337
|
*/
|
|
1338
1338
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.toObject = function(includeInstance, msg) {
|
|
1339
1339
|
var f, obj = {
|
|
1340
|
-
liquidPortfolio: (f = msg.getLiquidPortfolio()) &&
|
|
1341
|
-
startingMargin: (f = msg.getStartingMargin()) &&
|
|
1342
|
-
minimalMargin: (f = msg.getMinimalMargin()) &&
|
|
1343
|
-
fundsSufficiencyLevel: (f = msg.getFundsSufficiencyLevel()) &&
|
|
1344
|
-
amountOfMissingFunds: (f = msg.getAmountOfMissingFunds()) &&
|
|
1345
|
-
correctedMargin: (f = msg.getCorrectedMargin()) &&
|
|
1346
|
-
guaranteeForFutures: (f = msg.getGuaranteeForFutures()) &&
|
|
1340
|
+
liquidPortfolio: (f = msg.getLiquidPortfolio()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
1341
|
+
startingMargin: (f = msg.getStartingMargin()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
1342
|
+
minimalMargin: (f = msg.getMinimalMargin()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
1343
|
+
fundsSufficiencyLevel: (f = msg.getFundsSufficiencyLevel()) && api_tinvest_common_pb.Quotation.toObject(includeInstance, f),
|
|
1344
|
+
amountOfMissingFunds: (f = msg.getAmountOfMissingFunds()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
1345
|
+
correctedMargin: (f = msg.getCorrectedMargin()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
1346
|
+
guaranteeForFutures: (f = msg.getGuaranteeForFutures()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
|
|
1347
1347
|
};
|
|
1348
1348
|
|
|
1349
1349
|
if (includeInstance) {
|
|
@@ -1381,38 +1381,38 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.deserial
|
|
|
1381
1381
|
var field = reader.getFieldNumber();
|
|
1382
1382
|
switch (field) {
|
|
1383
1383
|
case 1:
|
|
1384
|
-
var value = new
|
|
1385
|
-
reader.readMessage(value,
|
|
1384
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
1385
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
1386
1386
|
msg.setLiquidPortfolio(value);
|
|
1387
1387
|
break;
|
|
1388
1388
|
case 2:
|
|
1389
|
-
var value = new
|
|
1390
|
-
reader.readMessage(value,
|
|
1389
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
1390
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
1391
1391
|
msg.setStartingMargin(value);
|
|
1392
1392
|
break;
|
|
1393
1393
|
case 3:
|
|
1394
|
-
var value = new
|
|
1395
|
-
reader.readMessage(value,
|
|
1394
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
1395
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
1396
1396
|
msg.setMinimalMargin(value);
|
|
1397
1397
|
break;
|
|
1398
1398
|
case 4:
|
|
1399
|
-
var value = new
|
|
1400
|
-
reader.readMessage(value,
|
|
1399
|
+
var value = new api_tinvest_common_pb.Quotation;
|
|
1400
|
+
reader.readMessage(value,api_tinvest_common_pb.Quotation.deserializeBinaryFromReader);
|
|
1401
1401
|
msg.setFundsSufficiencyLevel(value);
|
|
1402
1402
|
break;
|
|
1403
1403
|
case 5:
|
|
1404
|
-
var value = new
|
|
1405
|
-
reader.readMessage(value,
|
|
1404
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
1405
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
1406
1406
|
msg.setAmountOfMissingFunds(value);
|
|
1407
1407
|
break;
|
|
1408
1408
|
case 6:
|
|
1409
|
-
var value = new
|
|
1410
|
-
reader.readMessage(value,
|
|
1409
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
1410
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
1411
1411
|
msg.setCorrectedMargin(value);
|
|
1412
1412
|
break;
|
|
1413
1413
|
case 7:
|
|
1414
|
-
var value = new
|
|
1415
|
-
reader.readMessage(value,
|
|
1414
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
1415
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
1416
1416
|
msg.setGuaranteeForFutures(value);
|
|
1417
1417
|
break;
|
|
1418
1418
|
default:
|
|
@@ -1449,7 +1449,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1449
1449
|
writer.writeMessage(
|
|
1450
1450
|
1,
|
|
1451
1451
|
f,
|
|
1452
|
-
|
|
1452
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
1453
1453
|
);
|
|
1454
1454
|
}
|
|
1455
1455
|
f = message.getStartingMargin();
|
|
@@ -1457,7 +1457,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1457
1457
|
writer.writeMessage(
|
|
1458
1458
|
2,
|
|
1459
1459
|
f,
|
|
1460
|
-
|
|
1460
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
1461
1461
|
);
|
|
1462
1462
|
}
|
|
1463
1463
|
f = message.getMinimalMargin();
|
|
@@ -1465,7 +1465,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1465
1465
|
writer.writeMessage(
|
|
1466
1466
|
3,
|
|
1467
1467
|
f,
|
|
1468
|
-
|
|
1468
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
1469
1469
|
);
|
|
1470
1470
|
}
|
|
1471
1471
|
f = message.getFundsSufficiencyLevel();
|
|
@@ -1473,7 +1473,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1473
1473
|
writer.writeMessage(
|
|
1474
1474
|
4,
|
|
1475
1475
|
f,
|
|
1476
|
-
|
|
1476
|
+
api_tinvest_common_pb.Quotation.serializeBinaryToWriter
|
|
1477
1477
|
);
|
|
1478
1478
|
}
|
|
1479
1479
|
f = message.getAmountOfMissingFunds();
|
|
@@ -1481,7 +1481,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1481
1481
|
writer.writeMessage(
|
|
1482
1482
|
5,
|
|
1483
1483
|
f,
|
|
1484
|
-
|
|
1484
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
1485
1485
|
);
|
|
1486
1486
|
}
|
|
1487
1487
|
f = message.getCorrectedMargin();
|
|
@@ -1489,7 +1489,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1489
1489
|
writer.writeMessage(
|
|
1490
1490
|
6,
|
|
1491
1491
|
f,
|
|
1492
|
-
|
|
1492
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
1493
1493
|
);
|
|
1494
1494
|
}
|
|
1495
1495
|
f = message.getGuaranteeForFutures();
|
|
@@ -1497,7 +1497,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1497
1497
|
writer.writeMessage(
|
|
1498
1498
|
7,
|
|
1499
1499
|
f,
|
|
1500
|
-
|
|
1500
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
1501
1501
|
);
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
@@ -1509,7 +1509,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.serializ
|
|
|
1509
1509
|
*/
|
|
1510
1510
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getLiquidPortfolio = function() {
|
|
1511
1511
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
1512
|
-
jspb.Message.getWrapperField(this,
|
|
1512
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 1));
|
|
1513
1513
|
};
|
|
1514
1514
|
|
|
1515
1515
|
|
|
@@ -1546,7 +1546,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1546
1546
|
*/
|
|
1547
1547
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getStartingMargin = function() {
|
|
1548
1548
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
1549
|
-
jspb.Message.getWrapperField(this,
|
|
1549
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 2));
|
|
1550
1550
|
};
|
|
1551
1551
|
|
|
1552
1552
|
|
|
@@ -1583,7 +1583,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1583
1583
|
*/
|
|
1584
1584
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getMinimalMargin = function() {
|
|
1585
1585
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
1586
|
-
jspb.Message.getWrapperField(this,
|
|
1586
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 3));
|
|
1587
1587
|
};
|
|
1588
1588
|
|
|
1589
1589
|
|
|
@@ -1620,7 +1620,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1620
1620
|
*/
|
|
1621
1621
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getFundsSufficiencyLevel = function() {
|
|
1622
1622
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Quotation} */ (
|
|
1623
|
-
jspb.Message.getWrapperField(this,
|
|
1623
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.Quotation, 4));
|
|
1624
1624
|
};
|
|
1625
1625
|
|
|
1626
1626
|
|
|
@@ -1657,7 +1657,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1657
1657
|
*/
|
|
1658
1658
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getAmountOfMissingFunds = function() {
|
|
1659
1659
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
1660
|
-
jspb.Message.getWrapperField(this,
|
|
1660
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 5));
|
|
1661
1661
|
};
|
|
1662
1662
|
|
|
1663
1663
|
|
|
@@ -1694,7 +1694,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1694
1694
|
*/
|
|
1695
1695
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getCorrectedMargin = function() {
|
|
1696
1696
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
1697
|
-
jspb.Message.getWrapperField(this,
|
|
1697
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 6));
|
|
1698
1698
|
};
|
|
1699
1699
|
|
|
1700
1700
|
|
|
@@ -1731,7 +1731,7 @@ proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototyp
|
|
|
1731
1731
|
*/
|
|
1732
1732
|
proto.tinkoff.public.invest.api.contract.v1.GetMarginAttributesResponse.prototype.getGuaranteeForFutures = function() {
|
|
1733
1733
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
1734
|
-
jspb.Message.getWrapperField(this,
|
|
1734
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 7));
|
|
1735
1735
|
};
|
|
1736
1736
|
|
|
1737
1737
|
|
|
@@ -3236,7 +3236,7 @@ proto.tinkoff.public.invest.api.contract.v1.BankAccount.toObject = function(incl
|
|
|
3236
3236
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3237
3237
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3238
3238
|
moneyList: jspb.Message.toObjectList(msg.getMoneyList(),
|
|
3239
|
-
|
|
3239
|
+
api_tinvest_common_pb.MoneyValue.toObject, includeInstance),
|
|
3240
3240
|
openedDate: (f = msg.getOpenedDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3241
3241
|
type: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
3242
3242
|
};
|
|
@@ -3284,8 +3284,8 @@ proto.tinkoff.public.invest.api.contract.v1.BankAccount.deserializeBinaryFromRea
|
|
|
3284
3284
|
msg.setName(value);
|
|
3285
3285
|
break;
|
|
3286
3286
|
case 3:
|
|
3287
|
-
var value = new
|
|
3288
|
-
reader.readMessage(value,
|
|
3287
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
3288
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
3289
3289
|
msg.addMoney(value);
|
|
3290
3290
|
break;
|
|
3291
3291
|
case 4:
|
|
@@ -3345,7 +3345,7 @@ proto.tinkoff.public.invest.api.contract.v1.BankAccount.serializeBinaryToWriter
|
|
|
3345
3345
|
writer.writeRepeatedMessage(
|
|
3346
3346
|
3,
|
|
3347
3347
|
f,
|
|
3348
|
-
|
|
3348
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
3349
3349
|
);
|
|
3350
3350
|
}
|
|
3351
3351
|
f = message.getOpenedDate();
|
|
@@ -3408,7 +3408,7 @@ proto.tinkoff.public.invest.api.contract.v1.BankAccount.prototype.setName = func
|
|
|
3408
3408
|
*/
|
|
3409
3409
|
proto.tinkoff.public.invest.api.contract.v1.BankAccount.prototype.getMoneyList = function() {
|
|
3410
3410
|
return /** @type{!Array<!proto.tinkoff.public.invest.api.contract.v1.MoneyValue>} */ (
|
|
3411
|
-
jspb.Message.getRepeatedWrapperField(this,
|
|
3411
|
+
jspb.Message.getRepeatedWrapperField(this, api_tinvest_common_pb.MoneyValue, 3));
|
|
3412
3412
|
};
|
|
3413
3413
|
|
|
3414
3414
|
|
|
@@ -3529,7 +3529,7 @@ proto.tinkoff.public.invest.api.contract.v1.CurrencyTransferRequest.toObject = f
|
|
|
3529
3529
|
var f, obj = {
|
|
3530
3530
|
fromAccountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3531
3531
|
toAccountId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3532
|
-
amount: (f = msg.getAmount()) &&
|
|
3532
|
+
amount: (f = msg.getAmount()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f),
|
|
3533
3533
|
transactionId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
3534
3534
|
};
|
|
3535
3535
|
|
|
@@ -3576,8 +3576,8 @@ proto.tinkoff.public.invest.api.contract.v1.CurrencyTransferRequest.deserializeB
|
|
|
3576
3576
|
msg.setToAccountId(value);
|
|
3577
3577
|
break;
|
|
3578
3578
|
case 3:
|
|
3579
|
-
var value = new
|
|
3580
|
-
reader.readMessage(value,
|
|
3579
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
3580
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
3581
3581
|
msg.setAmount(value);
|
|
3582
3582
|
break;
|
|
3583
3583
|
case 4:
|
|
@@ -3632,7 +3632,7 @@ proto.tinkoff.public.invest.api.contract.v1.CurrencyTransferRequest.serializeBin
|
|
|
3632
3632
|
writer.writeMessage(
|
|
3633
3633
|
3,
|
|
3634
3634
|
f,
|
|
3635
|
-
|
|
3635
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
3636
3636
|
);
|
|
3637
3637
|
}
|
|
3638
3638
|
f = message.getTransactionId();
|
|
@@ -3687,7 +3687,7 @@ proto.tinkoff.public.invest.api.contract.v1.CurrencyTransferRequest.prototype.se
|
|
|
3687
3687
|
*/
|
|
3688
3688
|
proto.tinkoff.public.invest.api.contract.v1.CurrencyTransferRequest.prototype.getAmount = function() {
|
|
3689
3689
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
3690
|
-
jspb.Message.getWrapperField(this,
|
|
3690
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 3));
|
|
3691
3691
|
};
|
|
3692
3692
|
|
|
3693
3693
|
|
|
@@ -3871,7 +3871,7 @@ proto.tinkoff.public.invest.api.contract.v1.PayInRequest.toObject = function(inc
|
|
|
3871
3871
|
var f, obj = {
|
|
3872
3872
|
fromAccountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3873
3873
|
toAccountId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3874
|
-
amount: (f = msg.getAmount()) &&
|
|
3874
|
+
amount: (f = msg.getAmount()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
|
|
3875
3875
|
};
|
|
3876
3876
|
|
|
3877
3877
|
if (includeInstance) {
|
|
@@ -3917,8 +3917,8 @@ proto.tinkoff.public.invest.api.contract.v1.PayInRequest.deserializeBinaryFromRe
|
|
|
3917
3917
|
msg.setToAccountId(value);
|
|
3918
3918
|
break;
|
|
3919
3919
|
case 3:
|
|
3920
|
-
var value = new
|
|
3921
|
-
reader.readMessage(value,
|
|
3920
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
3921
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
3922
3922
|
msg.setAmount(value);
|
|
3923
3923
|
break;
|
|
3924
3924
|
default:
|
|
@@ -3969,7 +3969,7 @@ proto.tinkoff.public.invest.api.contract.v1.PayInRequest.serializeBinaryToWriter
|
|
|
3969
3969
|
writer.writeMessage(
|
|
3970
3970
|
3,
|
|
3971
3971
|
f,
|
|
3972
|
-
|
|
3972
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
3973
3973
|
);
|
|
3974
3974
|
}
|
|
3975
3975
|
};
|
|
@@ -4017,7 +4017,7 @@ proto.tinkoff.public.invest.api.contract.v1.PayInRequest.prototype.setToAccountI
|
|
|
4017
4017
|
*/
|
|
4018
4018
|
proto.tinkoff.public.invest.api.contract.v1.PayInRequest.prototype.getAmount = function() {
|
|
4019
4019
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
4020
|
-
jspb.Message.getWrapperField(this,
|
|
4020
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 3));
|
|
4021
4021
|
};
|
|
4022
4022
|
|
|
4023
4023
|
|
|
@@ -4739,7 +4739,7 @@ proto.tinkoff.public.invest.api.contract.v1.InstrumentParameter.prototype.toObje
|
|
|
4739
4739
|
proto.tinkoff.public.invest.api.contract.v1.InstrumentParameter.toObject = function(includeInstance, msg) {
|
|
4740
4740
|
var f, obj = {
|
|
4741
4741
|
name: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4742
|
-
value: (f = msg.getValue()) &&
|
|
4742
|
+
value: (f = msg.getValue()) && api_tinvest_common_pb.MoneyValue.toObject(includeInstance, f)
|
|
4743
4743
|
};
|
|
4744
4744
|
|
|
4745
4745
|
if (includeInstance) {
|
|
@@ -4781,8 +4781,8 @@ proto.tinkoff.public.invest.api.contract.v1.InstrumentParameter.deserializeBinar
|
|
|
4781
4781
|
msg.setName(value);
|
|
4782
4782
|
break;
|
|
4783
4783
|
case 2:
|
|
4784
|
-
var value = new
|
|
4785
|
-
reader.readMessage(value,
|
|
4784
|
+
var value = new api_tinvest_common_pb.MoneyValue;
|
|
4785
|
+
reader.readMessage(value,api_tinvest_common_pb.MoneyValue.deserializeBinaryFromReader);
|
|
4786
4786
|
msg.setValue(value);
|
|
4787
4787
|
break;
|
|
4788
4788
|
default:
|
|
@@ -4826,7 +4826,7 @@ proto.tinkoff.public.invest.api.contract.v1.InstrumentParameter.serializeBinaryT
|
|
|
4826
4826
|
writer.writeMessage(
|
|
4827
4827
|
2,
|
|
4828
4828
|
f,
|
|
4829
|
-
|
|
4829
|
+
api_tinvest_common_pb.MoneyValue.serializeBinaryToWriter
|
|
4830
4830
|
);
|
|
4831
4831
|
}
|
|
4832
4832
|
};
|
|
@@ -4856,7 +4856,7 @@ proto.tinkoff.public.invest.api.contract.v1.InstrumentParameter.prototype.setNam
|
|
|
4856
4856
|
*/
|
|
4857
4857
|
proto.tinkoff.public.invest.api.contract.v1.InstrumentParameter.prototype.getValue = function() {
|
|
4858
4858
|
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.MoneyValue} */ (
|
|
4859
|
-
jspb.Message.getWrapperField(this,
|
|
4859
|
+
jspb.Message.getWrapperField(this, api_tinvest_common_pb.MoneyValue, 2));
|
|
4860
4860
|
};
|
|
4861
4861
|
|
|
4862
4862
|
|