@meshtrade/api-web 1.30.0
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 +68 -0
- package/dist/buf/validate/validate_pb.d.ts +4597 -0
- package/dist/buf/validate/validate_pb.js +354 -0
- package/dist/google/type/date_pb.d.ts +52 -0
- package/dist/google/type/date_pb.js +26 -0
- package/dist/meshtrade/common/config.d.ts +7 -0
- package/dist/meshtrade/common/config.js +9 -0
- package/dist/meshtrade/common/connectInterceptors.d.ts +73 -0
- package/dist/meshtrade/common/connectInterceptors.js +126 -0
- package/dist/meshtrade/common/validation.d.ts +62 -0
- package/dist/meshtrade/common/validation.js +77 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.d.ts +138 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.js +23 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +313 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.js +100 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +81 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +22 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +88 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +95 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +55 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +62 -0
- package/dist/meshtrade/compliance/client/v1/index.d.ts +16 -0
- package/dist/meshtrade/compliance/client/v1/index.js +59 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +86 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +16 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +133 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +140 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +143 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +24 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +46 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +53 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +123 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +45 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.d.ts +48 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.js +92 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +180 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +187 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +40 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +17 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +57 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +64 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +43 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +17 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +152 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +95 -0
- package/dist/meshtrade/iam/api_user/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/api_user/v1/index.js +45 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +343 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +86 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.js +152 -0
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +58 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +17 -0
- package/dist/meshtrade/iam/group/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/group/v1/index.js +44 -0
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +306 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +75 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.d.ts +60 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.js +112 -0
- package/dist/meshtrade/iam/role/v1/index.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/index.js +43 -0
- package/dist/meshtrade/iam/role/v1/role.d.ts +71 -0
- package/dist/meshtrade/iam/role/v1/role.js +192 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +164 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +171 -0
- package/dist/meshtrade/iam/user/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/user/v1/index.js +44 -0
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +379 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +90 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.d.ts +78 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.js +142 -0
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +58 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +17 -0
- package/dist/meshtrade/ledger/transaction/v1/index.d.ts +5 -0
- package/dist/meshtrade/ledger/transaction/v1/index.js +46 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +102 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +41 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.js +91 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +46 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +53 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.d.ts +14 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.js +64 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +57 -0
- package/dist/meshtrade/market_data/price/v1/index.d.ts +3 -0
- package/dist/meshtrade/market_data/price/v1/index.js +44 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +50 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.js +19 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +48 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +27 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.js +72 -0
- package/dist/meshtrade/option/method_options/v1/index.d.ts +1 -0
- package/dist/meshtrade/option/method_options/v1/index.js +42 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +132 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +108 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +136 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +28 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +39 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +16 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +66 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +18 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +139 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +80 -0
- package/dist/meshtrade/reporting/account_report/v1/index.d.ts +7 -0
- package/dist/meshtrade/reporting/account_report/v1/index.js +48 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +162 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +46 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.d.ts +42 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.js +82 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +80 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/index.d.ts +3 -0
- package/dist/meshtrade/studio/instrument/v1/index.js +44 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.d.ts +53 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +214 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +221 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +148 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.js +155 -0
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +211 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +111 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +357 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +73 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.d.ts +81 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.js +141 -0
- package/dist/meshtrade/trading/market_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/market_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +20 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +16 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +34 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +22 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.js +72 -0
- package/dist/meshtrade/type/v1/address_pb.d.ts +82 -0
- package/dist/meshtrade/type/v1/address_pb.js +16 -0
- package/dist/meshtrade/type/v1/amount.d.ts +13 -0
- package/dist/meshtrade/type/v1/amount.js +68 -0
- package/dist/meshtrade/type/v1/amountWrapper.d.ts +74 -0
- package/dist/meshtrade/type/v1/amountWrapper.js +98 -0
- package/dist/meshtrade/type/v1/amount_pb.d.ts +44 -0
- package/dist/meshtrade/type/v1/amount_pb.js +18 -0
- package/dist/meshtrade/type/v1/contact_details_pb.d.ts +98 -0
- package/dist/meshtrade/type/v1/contact_details_pb.js +16 -0
- package/dist/meshtrade/type/v1/date.d.ts +49 -0
- package/dist/meshtrade/type/v1/date.js +136 -0
- package/dist/meshtrade/type/v1/date_pb.d.ts +50 -0
- package/dist/meshtrade/type/v1/date_pb.js +16 -0
- package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimalConversions.js +39 -0
- package/dist/meshtrade/type/v1/decimal_pb.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimal_pb.js +16 -0
- package/dist/meshtrade/type/v1/index.d.ts +15 -0
- package/dist/meshtrade/type/v1/index.js +56 -0
- package/dist/meshtrade/type/v1/ledger.d.ts +27 -0
- package/dist/meshtrade/type/v1/ledger.js +115 -0
- package/dist/meshtrade/type/v1/ledger_pb.d.ts +83 -0
- package/dist/meshtrade/type/v1/ledger_pb.js +90 -0
- package/dist/meshtrade/type/v1/sorting_pb.d.ts +35 -0
- package/dist/meshtrade/type/v1/sorting_pb.js +42 -0
- package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
- package/dist/meshtrade/type/v1/time_of_day.js +199 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +67 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.js +16 -0
- package/dist/meshtrade/type/v1/token.d.ts +4 -0
- package/dist/meshtrade/type/v1/token.js +23 -0
- package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
- package/dist/meshtrade/type/v1/tokenWrapper.js +92 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +56 -0
- package/dist/meshtrade/type/v1/token_pb.js +17 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +264 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +74 -0
- package/dist/meshtrade/wallet/account/v1/index.d.ts +3 -0
- package/dist/meshtrade/wallet/account/v1/index.js +44 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +559 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +112 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.js +152 -0
- package/package.json +171 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { LimitOrder, LimitOrderSchema } from "./limit_order_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file meshtrade/trading/limit_order/v1/service.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_meshtrade_trading_limit_order_v1_service: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* Request to create a new limit order.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message meshtrade.trading.limit_order.v1.CreateLimitOrderRequest
|
|
13
|
+
*/
|
|
14
|
+
export type CreateLimitOrderRequest = Message<"meshtrade.trading.limit_order.v1.CreateLimitOrderRequest"> & {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* The limit order configuration for creation.
|
|
18
|
+
* The name field will be ignored and assigned by the system.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: meshtrade.trading.limit_order.v1.LimitOrder limit_order = 1;
|
|
21
|
+
*/
|
|
22
|
+
limitOrder?: LimitOrder;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.
|
|
26
|
+
* Use `create(CreateLimitOrderRequestSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export declare const CreateLimitOrderRequestSchema: GenMessage<CreateLimitOrderRequest>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* Request to cancel a limit order.
|
|
32
|
+
*
|
|
33
|
+
* @generated from message meshtrade.trading.limit_order.v1.CancelLimitOrderRequest
|
|
34
|
+
*/
|
|
35
|
+
export type CancelLimitOrderRequest = Message<"meshtrade.trading.limit_order.v1.CancelLimitOrderRequest"> & {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* The resource name of the limit order to cancel.
|
|
39
|
+
* Format: limit_orders/{ULIDv2}.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string name = 1;
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.
|
|
47
|
+
* Use `create(CancelLimitOrderRequestSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export declare const CancelLimitOrderRequestSchema: GenMessage<CancelLimitOrderRequest>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* Request to retrieve a limit order by name.
|
|
53
|
+
*
|
|
54
|
+
* @generated from message meshtrade.trading.limit_order.v1.GetLimitOrderRequest
|
|
55
|
+
*/
|
|
56
|
+
export type GetLimitOrderRequest = Message<"meshtrade.trading.limit_order.v1.GetLimitOrderRequest"> & {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* The resource name of the limit order to retrieve.
|
|
60
|
+
* Format: limit_orders/{ULIDv2}.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: string name = 1;
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* When true, fetches live ledger data including fill status.
|
|
68
|
+
* When false, returns only stored metadata.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: bool live_ledger_data = 2;
|
|
71
|
+
*/
|
|
72
|
+
liveLedgerData: boolean;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message meshtrade.trading.limit_order.v1.GetLimitOrderRequest.
|
|
76
|
+
* Use `create(GetLimitOrderRequestSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetLimitOrderRequestSchema: GenMessage<GetLimitOrderRequest>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* Request to retrieve a limit order by external reference.
|
|
82
|
+
*
|
|
83
|
+
* @generated from message meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest
|
|
84
|
+
*/
|
|
85
|
+
export type GetLimitOrderByExternalReferenceRequest = Message<"meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest"> & {
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* The external reference identifier.
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: string external_reference = 1;
|
|
91
|
+
*/
|
|
92
|
+
externalReference: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* When true, fetches live ledger data including fill status.
|
|
96
|
+
* When false, returns only stored metadata.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: bool live_ledger_data = 2;
|
|
99
|
+
*/
|
|
100
|
+
liveLedgerData: boolean;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Describes the message meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.
|
|
104
|
+
* Use `create(GetLimitOrderByExternalReferenceRequestSchema)` to create a new message.
|
|
105
|
+
*/
|
|
106
|
+
export declare const GetLimitOrderByExternalReferenceRequestSchema: GenMessage<GetLimitOrderByExternalReferenceRequest>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* Request to list all limit orders.
|
|
110
|
+
*
|
|
111
|
+
* @generated from message meshtrade.trading.limit_order.v1.ListLimitOrdersRequest
|
|
112
|
+
*/
|
|
113
|
+
export type ListLimitOrdersRequest = Message<"meshtrade.trading.limit_order.v1.ListLimitOrdersRequest"> & {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* When true, fetches live ledger data for all orders.
|
|
117
|
+
* When false, returns only stored metadata.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: bool live_ledger_data = 1;
|
|
120
|
+
*/
|
|
121
|
+
liveLedgerData: boolean;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.
|
|
125
|
+
* Use `create(ListLimitOrdersRequestSchema)` to create a new message.
|
|
126
|
+
*/
|
|
127
|
+
export declare const ListLimitOrdersRequestSchema: GenMessage<ListLimitOrdersRequest>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* Response containing a list of limit orders.
|
|
131
|
+
*
|
|
132
|
+
* @generated from message meshtrade.trading.limit_order.v1.ListLimitOrdersResponse
|
|
133
|
+
*/
|
|
134
|
+
export type ListLimitOrdersResponse = Message<"meshtrade.trading.limit_order.v1.ListLimitOrdersResponse"> & {
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* Collection of limit orders in the hierarchy.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: repeated meshtrade.trading.limit_order.v1.LimitOrder limit_orders = 1;
|
|
140
|
+
*/
|
|
141
|
+
limitOrders: LimitOrder[];
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.
|
|
145
|
+
* Use `create(ListLimitOrdersResponseSchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export declare const ListLimitOrdersResponseSchema: GenMessage<ListLimitOrdersResponse>;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* Request to search limit orders with filtering criteria.
|
|
151
|
+
*
|
|
152
|
+
* @generated from message meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest
|
|
153
|
+
*/
|
|
154
|
+
export type SearchLimitOrdersRequest = Message<"meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest"> & {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* Filter by token (optional).
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string token = 1;
|
|
160
|
+
*/
|
|
161
|
+
token: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* Filter by account (optional).
|
|
165
|
+
* Format: accounts/{ULIDv2}.
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: string account = 2;
|
|
168
|
+
*/
|
|
169
|
+
account: string;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* When true, fetches live ledger data for matching orders.
|
|
173
|
+
* When false, returns only stored metadata.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: bool live_ledger_data = 3;
|
|
176
|
+
*/
|
|
177
|
+
liveLedgerData: boolean;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Describes the message meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.
|
|
181
|
+
* Use `create(SearchLimitOrdersRequestSchema)` to create a new message.
|
|
182
|
+
*/
|
|
183
|
+
export declare const SearchLimitOrdersRequestSchema: GenMessage<SearchLimitOrdersRequest>;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* Response containing search results.
|
|
187
|
+
*
|
|
188
|
+
* @generated from message meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse
|
|
189
|
+
*/
|
|
190
|
+
export type SearchLimitOrdersResponse = Message<"meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse"> & {
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* Collection of limit orders matching the search criteria.
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: repeated meshtrade.trading.limit_order.v1.LimitOrder limit_orders = 1;
|
|
196
|
+
*/
|
|
197
|
+
limitOrders: LimitOrder[];
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.
|
|
201
|
+
* Use `create(SearchLimitOrdersResponseSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export declare const SearchLimitOrdersResponseSchema: GenMessage<SearchLimitOrdersResponse>;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* Request to monitor a limit order.
|
|
207
|
+
* Supports lookup by either resource name or external reference.
|
|
208
|
+
*
|
|
209
|
+
* @generated from message meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest
|
|
210
|
+
*/
|
|
211
|
+
export type MonitorLimitOrderRequest = Message<"meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest"> & {
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* Identifier for the limit order to monitor.
|
|
215
|
+
* Exactly one field must be specified.
|
|
216
|
+
*
|
|
217
|
+
* @generated from oneof meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.identifier
|
|
218
|
+
*/
|
|
219
|
+
identifier: {
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* The resource name of the limit order to monitor.
|
|
223
|
+
* Format: limit_orders/{ULIDv2}.
|
|
224
|
+
*
|
|
225
|
+
* @generated from field: string name = 1;
|
|
226
|
+
*/
|
|
227
|
+
value: string;
|
|
228
|
+
case: "name";
|
|
229
|
+
} | {
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* The external reference identifier.
|
|
233
|
+
*
|
|
234
|
+
* @generated from field: string external_reference = 2;
|
|
235
|
+
*/
|
|
236
|
+
value: string;
|
|
237
|
+
case: "externalReference";
|
|
238
|
+
} | {
|
|
239
|
+
case: undefined;
|
|
240
|
+
value?: undefined;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Describes the message meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.
|
|
245
|
+
* Use `create(MonitorLimitOrderRequestSchema)` to create a new message.
|
|
246
|
+
*/
|
|
247
|
+
export declare const MonitorLimitOrderRequestSchema: GenMessage<MonitorLimitOrderRequest>;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* LimitOrderService manages limit orders for trading operations (BETA).
|
|
251
|
+
*
|
|
252
|
+
* This service provides comprehensive limit order management capabilities including
|
|
253
|
+
* order creation, cancellation, querying, and real-time monitoring. All operations
|
|
254
|
+
* are scoped to the authenticated group's hierarchy and require appropriate trading
|
|
255
|
+
* domain permissions.
|
|
256
|
+
*
|
|
257
|
+
* Note: This service is currently in BETA. Interface and functionality may change.
|
|
258
|
+
*
|
|
259
|
+
* @generated from service meshtrade.trading.limit_order.v1.LimitOrderService
|
|
260
|
+
*/
|
|
261
|
+
export declare const LimitOrderService: GenService<{
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* Creates a new limit order.
|
|
265
|
+
*
|
|
266
|
+
* Submits a limit order to the trading system. The order is validated and
|
|
267
|
+
* submitted to the appropriate ledger for execution.
|
|
268
|
+
*
|
|
269
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.CreateLimitOrder
|
|
270
|
+
*/
|
|
271
|
+
createLimitOrder: {
|
|
272
|
+
methodKind: "unary";
|
|
273
|
+
input: typeof CreateLimitOrderRequestSchema;
|
|
274
|
+
output: typeof LimitOrderSchema;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* Cancels an existing limit order.
|
|
279
|
+
*
|
|
280
|
+
* Initiates cancellation of a limit order on the ledger.
|
|
281
|
+
*
|
|
282
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.CancelLimitOrder
|
|
283
|
+
*/
|
|
284
|
+
cancelLimitOrder: {
|
|
285
|
+
methodKind: "unary";
|
|
286
|
+
input: typeof CancelLimitOrderRequestSchema;
|
|
287
|
+
output: typeof LimitOrderSchema;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* Retrieves a specific limit order by its resource name.
|
|
292
|
+
*
|
|
293
|
+
* Provides access to limit order metadata and optionally fetches live
|
|
294
|
+
* ledger data when populate_ledger_data is true.
|
|
295
|
+
*
|
|
296
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.GetLimitOrder
|
|
297
|
+
*/
|
|
298
|
+
getLimitOrder: {
|
|
299
|
+
methodKind: "unary";
|
|
300
|
+
input: typeof GetLimitOrderRequestSchema;
|
|
301
|
+
output: typeof LimitOrderSchema;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* Retrieves a limit order by its external reference.
|
|
306
|
+
*
|
|
307
|
+
* Convenient lookup using client-provided external reference identifier.
|
|
308
|
+
*
|
|
309
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.GetLimitOrderByExternalReference
|
|
310
|
+
*/
|
|
311
|
+
getLimitOrderByExternalReference: {
|
|
312
|
+
methodKind: "unary";
|
|
313
|
+
input: typeof GetLimitOrderByExternalReferenceRequestSchema;
|
|
314
|
+
output: typeof LimitOrderSchema;
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* Lists all limit orders within the authenticated group's scope.
|
|
319
|
+
*
|
|
320
|
+
* Returns the complete set of limit orders accessible to the executing context.
|
|
321
|
+
*
|
|
322
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.ListLimitOrders
|
|
323
|
+
*/
|
|
324
|
+
listLimitOrders: {
|
|
325
|
+
methodKind: "unary";
|
|
326
|
+
input: typeof ListLimitOrdersRequestSchema;
|
|
327
|
+
output: typeof ListLimitOrdersResponseSchema;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* Searches limit orders using flexible filtering criteria.
|
|
332
|
+
*
|
|
333
|
+
* Supports filtering by token, account, and populating live ledger data.
|
|
334
|
+
*
|
|
335
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.SearchLimitOrders
|
|
336
|
+
*/
|
|
337
|
+
searchLimitOrders: {
|
|
338
|
+
methodKind: "unary";
|
|
339
|
+
input: typeof SearchLimitOrdersRequestSchema;
|
|
340
|
+
output: typeof SearchLimitOrdersResponseSchema;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* Monitors a limit order for real-time updates.
|
|
345
|
+
*
|
|
346
|
+
* Supports lookup by either resource name or external reference using
|
|
347
|
+
* the identifier oneof field in the request. Returns a stream of limit
|
|
348
|
+
* order states as they change.
|
|
349
|
+
*
|
|
350
|
+
* @generated from rpc meshtrade.trading.limit_order.v1.LimitOrderService.MonitorLimitOrder
|
|
351
|
+
*/
|
|
352
|
+
monitorLimitOrder: {
|
|
353
|
+
methodKind: "server_streaming";
|
|
354
|
+
input: typeof MonitorLimitOrderRequestSchema;
|
|
355
|
+
output: typeof LimitOrderSchema;
|
|
356
|
+
};
|
|
357
|
+
}>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/trading/limit_order/v1/service.proto (package meshtrade.trading.limit_order.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LimitOrderService = exports.MonitorLimitOrderRequestSchema = exports.SearchLimitOrdersResponseSchema = exports.SearchLimitOrdersRequestSchema = exports.ListLimitOrdersResponseSchema = exports.ListLimitOrdersRequestSchema = exports.GetLimitOrderByExternalReferenceRequestSchema = exports.GetLimitOrderRequestSchema = exports.CancelLimitOrderRequestSchema = exports.CreateLimitOrderRequestSchema = exports.file_meshtrade_trading_limit_order_v1_service = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
const method_options_pb_1 = require("../../../option/method_options/v1/method_options_pb");
|
|
10
|
+
const limit_order_pb_1 = require("./limit_order_pb");
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file meshtrade/trading/limit_order/v1/service.proto.
|
|
13
|
+
*/
|
|
14
|
+
exports.file_meshtrade_trading_limit_order_v1_service = (0, codegenv2_1.fileDesc)("Ci5tZXNodHJhZGUvdHJhZGluZy9saW1pdF9vcmRlci92MS9zZXJ2aWNlLnByb3RvEiBtZXNodHJhZGUudHJhZGluZy5saW1pdF9vcmRlci52MSJkChdDcmVhdGVMaW1pdE9yZGVyUmVxdWVzdBJJCgtsaW1pdF9vcmRlchgBIAEoCzIsLm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkxpbWl0T3JkZXJCBrpIA8gBASJrChdDYW5jZWxMaW1pdE9yZGVyUmVxdWVzdBJQCgRuYW1lGAEgASgJQkK6SD/IAQFyOjI1XmxpbWl0X29yZGVycy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSSYASYiggEKFEdldExpbWl0T3JkZXJSZXF1ZXN0ElAKBG5hbWUYASABKAlCQrpIP8gBAXI6MjVebGltaXRfb3JkZXJzL1swMTIzNDU2Nzg5QUJDREVGR0hKS01OUFFSU1RWV1hZWl17MjZ9JJgBJhIYChBsaXZlX2xlZGdlcl9kYXRhGAIgASgIImcKJ0dldExpbWl0T3JkZXJCeUV4dGVybmFsUmVmZXJlbmNlUmVxdWVzdBIiChJleHRlcm5hbF9yZWZlcmVuY2UYASABKAlCBrpIA8gBARIYChBsaXZlX2xlZGdlcl9kYXRhGAIgASgIIjIKFkxpc3RMaW1pdE9yZGVyc1JlcXVlc3QSGAoQbGl2ZV9sZWRnZXJfZGF0YRgBIAEoCCJdChdMaXN0TGltaXRPcmRlcnNSZXNwb25zZRJCCgxsaW1pdF9vcmRlcnMYASADKAsyLC5tZXNodHJhZGUudHJhZGluZy5saW1pdF9vcmRlci52MS5MaW1pdE9yZGVyIo4BChhTZWFyY2hMaW1pdE9yZGVyc1JlcXVlc3QSDQoFdG9rZW4YASABKAkSSQoHYWNjb3VudBgCIAEoCUI4ukg1cjMyMV5hY2NvdW50cy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSQSGAoQbGl2ZV9sZWRnZXJfZGF0YRgDIAEoCCJfChlTZWFyY2hMaW1pdE9yZGVyc1Jlc3BvbnNlEkIKDGxpbWl0X29yZGVycxgBIAMoCzIsLm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkxpbWl0T3JkZXIilwEKGE1vbml0b3JMaW1pdE9yZGVyUmVxdWVzdBJPCgRuYW1lGAEgASgJQj+6SDxyOjI1XmxpbWl0X29yZGVycy9bMDEyMzQ1Njc4OUFCQ0RFRkdISktNTlBRUlNUVldYWVpdezI2fSSYASZIABIcChJleHRlcm5hbF9yZWZlcmVuY2UYAiABKAlIAEIMCgppZGVudGlmaWVyMvMIChFMaW1pdE9yZGVyU2VydmljZRKPAQoQQ3JlYXRlTGltaXRPcmRlchI5Lm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkNyZWF0ZUxpbWl0T3JkZXJSZXF1ZXN0GiwubWVzaHRyYWRlLnRyYWRpbmcubGltaXRfb3JkZXIudjEuTGltaXRPcmRlciISsrUYDggCEAIaCMCWsQLClrECEo8BChBDYW5jZWxMaW1pdE9yZGVyEjkubWVzaHRyYWRlLnRyYWRpbmcubGltaXRfb3JkZXIudjEuQ2FuY2VsTGltaXRPcmRlclJlcXVlc3QaLC5tZXNodHJhZGUudHJhZGluZy5saW1pdF9vcmRlci52MS5MaW1pdE9yZGVyIhKytRgOCAIQAhoIwJaxAsKWsQISkQEKDUdldExpbWl0T3JkZXISNi5tZXNodHJhZGUudHJhZGluZy5saW1pdF9vcmRlci52MS5HZXRMaW1pdE9yZGVyUmVxdWVzdBosLm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkxpbWl0T3JkZXIiGrK1GBYIARACGhDAlrECwZaxAsKWsQLDlrECErcBCiBHZXRMaW1pdE9yZGVyQnlFeHRlcm5hbFJlZmVyZW5jZRJJLm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkdldExpbWl0T3JkZXJCeUV4dGVybmFsUmVmZXJlbmNlUmVxdWVzdBosLm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkxpbWl0T3JkZXIiGrK1GBYIARACGhDAlrECwZaxAsKWsQLDlrECEqIBCg9MaXN0TGltaXRPcmRlcnMSOC5tZXNodHJhZGUudHJhZGluZy5saW1pdF9vcmRlci52MS5MaXN0TGltaXRPcmRlcnNSZXF1ZXN0GjkubWVzaHRyYWRlLnRyYWRpbmcubGltaXRfb3JkZXIudjEuTGlzdExpbWl0T3JkZXJzUmVzcG9uc2UiGrK1GBYIARACGhDAlrECwZaxAsKWsQLDlrECEqgBChFTZWFyY2hMaW1pdE9yZGVycxI6Lm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLlNlYXJjaExpbWl0T3JkZXJzUmVxdWVzdBo7Lm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLlNlYXJjaExpbWl0T3JkZXJzUmVzcG9uc2UiGrK1GBYIARACGhDAlrECwZaxAsKWsQLDlrECEpsBChFNb25pdG9yTGltaXRPcmRlchI6Lm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLk1vbml0b3JMaW1pdE9yZGVyUmVxdWVzdBosLm1lc2h0cmFkZS50cmFkaW5nLmxpbWl0X29yZGVyLnYxLkxpbWl0T3JkZXIiGrK1GBYIARACGhDAlrECwZaxAsKWsQLDlrECMAFCbAonY28ubWVzaHRyYWRlLmFwaS50cmFkaW5nLmxpbWl0X29yZGVyLnYxWkFnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vdHJhZGluZy9saW1pdF9vcmRlci92MTtsaW1pdF9vcmRlcl92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options, limit_order_pb_1.file_meshtrade_trading_limit_order_v1_limit_order]);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.
|
|
17
|
+
* Use `create(CreateLimitOrderRequestSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
exports.CreateLimitOrderRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 0);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.
|
|
22
|
+
* Use `create(CancelLimitOrderRequestSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
exports.CancelLimitOrderRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 1);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message meshtrade.trading.limit_order.v1.GetLimitOrderRequest.
|
|
27
|
+
* Use `create(GetLimitOrderRequestSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
exports.GetLimitOrderRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 2);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.
|
|
32
|
+
* Use `create(GetLimitOrderByExternalReferenceRequestSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
exports.GetLimitOrderByExternalReferenceRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 3);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.
|
|
37
|
+
* Use `create(ListLimitOrdersRequestSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
exports.ListLimitOrdersRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 4);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.
|
|
42
|
+
* Use `create(ListLimitOrdersResponseSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
exports.ListLimitOrdersResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 5);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.
|
|
47
|
+
* Use `create(SearchLimitOrdersRequestSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
exports.SearchLimitOrdersRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 6);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.
|
|
52
|
+
* Use `create(SearchLimitOrdersResponseSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
exports.SearchLimitOrdersResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 7);
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.
|
|
57
|
+
* Use `create(MonitorLimitOrderRequestSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
exports.MonitorLimitOrderRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 8);
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* LimitOrderService manages limit orders for trading operations (BETA).
|
|
63
|
+
*
|
|
64
|
+
* This service provides comprehensive limit order management capabilities including
|
|
65
|
+
* order creation, cancellation, querying, and real-time monitoring. All operations
|
|
66
|
+
* are scoped to the authenticated group's hierarchy and require appropriate trading
|
|
67
|
+
* domain permissions.
|
|
68
|
+
*
|
|
69
|
+
* Note: This service is currently in BETA. Interface and functionality may change.
|
|
70
|
+
*
|
|
71
|
+
* @generated from service meshtrade.trading.limit_order.v1.LimitOrderService
|
|
72
|
+
*/
|
|
73
|
+
exports.LimitOrderService = (0, codegenv2_1.serviceDesc)(exports.file_meshtrade_trading_limit_order_v1_service, 0);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Interceptor } from "@connectrpc/connect";
|
|
2
|
+
import { CancelLimitOrderRequest, CreateLimitOrderRequest, GetLimitOrderByExternalReferenceRequest, GetLimitOrderRequest, ListLimitOrdersRequest, ListLimitOrdersResponse, MonitorLimitOrderRequest, SearchLimitOrdersRequest, SearchLimitOrdersResponse } from "./service_pb";
|
|
3
|
+
import { LimitOrder } from "./limit_order_pb";
|
|
4
|
+
import { ConfigOpts } from "../../../common/config";
|
|
5
|
+
/**
|
|
6
|
+
* Web client for interacting with the meshtrade.trading.limit_order.v1 limit order v1 API resource service.
|
|
7
|
+
* Uses Connect-ES with gRPC-Web transport for browser-compatible gRPC communication.
|
|
8
|
+
*/
|
|
9
|
+
export declare class LimitOrderServiceWeb {
|
|
10
|
+
private _client;
|
|
11
|
+
private readonly _config;
|
|
12
|
+
private readonly _interceptors;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs an instance of LimitOrderServiceWeb.
|
|
15
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
16
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
17
|
+
*/
|
|
18
|
+
constructor(config?: ConfigOpts, interceptors?: Interceptor[]);
|
|
19
|
+
/**
|
|
20
|
+
* Returns a new client instance configured to send the specified group
|
|
21
|
+
* resource name in the request headers for subsequent API calls.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} group - The operating group context to inject into the request
|
|
24
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
25
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
26
|
+
* @returns {LimitOrderServiceWeb} A new, configured instance of the client.
|
|
27
|
+
* @throws {Error} If the group format is invalid (validation occurs in createGroupInterceptor)
|
|
28
|
+
*/
|
|
29
|
+
withGroup(group: string): LimitOrderServiceWeb;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new limit order.
|
|
32
|
+
* @param {CreateLimitOrderRequest} request - The request object for createlimitorder.
|
|
33
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
34
|
+
*/
|
|
35
|
+
createLimitOrder(request: CreateLimitOrderRequest): Promise<LimitOrder>;
|
|
36
|
+
/**
|
|
37
|
+
* Performs cancellimitorder operation on limit order.
|
|
38
|
+
* @param {CancelLimitOrderRequest} request - The request object for cancellimitorder.
|
|
39
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
40
|
+
*/
|
|
41
|
+
cancelLimitOrder(request: CancelLimitOrderRequest): Promise<LimitOrder>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a limit order.
|
|
44
|
+
* @param {GetLimitOrderRequest} request - The request object for getlimitorder.
|
|
45
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
46
|
+
*/
|
|
47
|
+
getLimitOrder(request: GetLimitOrderRequest): Promise<LimitOrder>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves a limit order.
|
|
50
|
+
* @param {GetLimitOrderByExternalReferenceRequest} request - The request object for getlimitorderbyexternalreference.
|
|
51
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
52
|
+
*/
|
|
53
|
+
getLimitOrderByExternalReference(request: GetLimitOrderByExternalReferenceRequest): Promise<LimitOrder>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves a list of limit orders.
|
|
56
|
+
* @param {ListLimitOrdersRequest} request - The request object for listlimitorders.
|
|
57
|
+
* @returns {Promise<ListLimitOrdersResponse>} A promise that resolves with the list of limit orders.
|
|
58
|
+
*/
|
|
59
|
+
listLimitOrders(request: ListLimitOrdersRequest): Promise<ListLimitOrdersResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Searches for limit orders.
|
|
62
|
+
* @param {SearchLimitOrdersRequest} request - The request object for searchlimitorders.
|
|
63
|
+
* @returns {Promise<SearchLimitOrdersResponse>} A promise that resolves with the search results.
|
|
64
|
+
*/
|
|
65
|
+
searchLimitOrders(request: SearchLimitOrdersRequest): Promise<SearchLimitOrdersResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Performs monitorlimitorder operation on limit order.
|
|
68
|
+
* Server-side streaming method with client-side validation and authentication.
|
|
69
|
+
* @param {MonitorLimitOrderRequest} request - The request object for monitorlimitorder.
|
|
70
|
+
* @returns {AsyncIterable<LimitOrder>} An async iterable of LimitOrder messages.
|
|
71
|
+
* @throws {Error} If request validation fails.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* const stream = client.monitorLimitOrder(request);
|
|
75
|
+
* for await (const response of stream) {
|
|
76
|
+
* // Process each response
|
|
77
|
+
* console.log(response);
|
|
78
|
+
* }
|
|
79
|
+
*/
|
|
80
|
+
monitorLimitOrder(request: MonitorLimitOrderRequest): AsyncIterable<LimitOrder>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-meshts v1
|
|
3
|
+
// @generated from file meshtrade/trading/limit_order/v1/service.proto (package meshtrade.trading.limit_order.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LimitOrderServiceWeb = void 0;
|
|
7
|
+
const connect_1 = require("@connectrpc/connect");
|
|
8
|
+
const connect_web_1 = require("@connectrpc/connect-web");
|
|
9
|
+
const service_pb_1 = require("./service_pb");
|
|
10
|
+
const config_1 = require("../../../common/config");
|
|
11
|
+
const validation_1 = require("../../../common/validation");
|
|
12
|
+
const connectInterceptors_1 = require("../../../common/connectInterceptors");
|
|
13
|
+
/**
|
|
14
|
+
* Web client for interacting with the meshtrade.trading.limit_order.v1 limit order v1 API resource service.
|
|
15
|
+
* Uses Connect-ES with gRPC-Web transport for browser-compatible gRPC communication.
|
|
16
|
+
*/
|
|
17
|
+
class LimitOrderServiceWeb {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs an instance of LimitOrderServiceWeb.
|
|
20
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
21
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
22
|
+
*/
|
|
23
|
+
constructor(config, interceptors) {
|
|
24
|
+
this._config = (0, config_1.getConfigFromOpts)(config);
|
|
25
|
+
this._interceptors = interceptors || [];
|
|
26
|
+
// Create the gRPC-Web transport with interceptors
|
|
27
|
+
const transport = (0, connect_web_1.createGrpcWebTransport)({
|
|
28
|
+
baseUrl: this._config.apiServerURL,
|
|
29
|
+
interceptors: this._interceptors,
|
|
30
|
+
// Enable credentials (cookies) for cross-origin requests
|
|
31
|
+
fetch: (input, init) => globalThis.fetch(input, { ...init, credentials: 'include' }),
|
|
32
|
+
});
|
|
33
|
+
// Construct the Connect-ES client
|
|
34
|
+
this._client = (0, connect_1.createClient)(service_pb_1.LimitOrderService, transport);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns a new client instance configured to send the specified group
|
|
38
|
+
* resource name in the request headers for subsequent API calls.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} group - The operating group context to inject into the request
|
|
41
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
42
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
43
|
+
* @returns {LimitOrderServiceWeb} A new, configured instance of the client.
|
|
44
|
+
* @throws {Error} If the group format is invalid (validation occurs in createGroupInterceptor)
|
|
45
|
+
*/
|
|
46
|
+
withGroup(group) {
|
|
47
|
+
// Check if a group interceptor already exists.
|
|
48
|
+
// Group interceptors are identified by having a 'groupContext' property
|
|
49
|
+
const hasGroupInterceptor = this._interceptors.some((interceptor) => interceptor.groupContext !== undefined);
|
|
50
|
+
if (hasGroupInterceptor) {
|
|
51
|
+
throw new Error("Attempted to set group context twice. A group has already been set for this client instance.");
|
|
52
|
+
}
|
|
53
|
+
// Create a new interceptor for the group context
|
|
54
|
+
const groupInterceptor = (0, connectInterceptors_1.createGroupInterceptor)(group);
|
|
55
|
+
// Return a new client instance with the existing interceptors plus the new one
|
|
56
|
+
return new LimitOrderServiceWeb(this._config, [
|
|
57
|
+
...this._interceptors,
|
|
58
|
+
groupInterceptor,
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new limit order.
|
|
63
|
+
* @param {CreateLimitOrderRequest} request - The request object for createlimitorder.
|
|
64
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
65
|
+
*/
|
|
66
|
+
createLimitOrder(request) {
|
|
67
|
+
// Validate request
|
|
68
|
+
(0, validation_1.validateRequest)(request);
|
|
69
|
+
return this._client.createLimitOrder(request);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Performs cancellimitorder operation on limit order.
|
|
73
|
+
* @param {CancelLimitOrderRequest} request - The request object for cancellimitorder.
|
|
74
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
75
|
+
*/
|
|
76
|
+
cancelLimitOrder(request) {
|
|
77
|
+
// Validate request
|
|
78
|
+
(0, validation_1.validateRequest)(request);
|
|
79
|
+
return this._client.cancelLimitOrder(request);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Retrieves a limit order.
|
|
83
|
+
* @param {GetLimitOrderRequest} request - The request object for getlimitorder.
|
|
84
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
85
|
+
*/
|
|
86
|
+
getLimitOrder(request) {
|
|
87
|
+
// Validate request
|
|
88
|
+
(0, validation_1.validateRequest)(request);
|
|
89
|
+
return this._client.getLimitOrder(request);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves a limit order.
|
|
93
|
+
* @param {GetLimitOrderByExternalReferenceRequest} request - The request object for getlimitorderbyexternalreference.
|
|
94
|
+
* @returns {Promise<LimitOrder>} A promise that resolves with the limit order.
|
|
95
|
+
*/
|
|
96
|
+
getLimitOrderByExternalReference(request) {
|
|
97
|
+
// Validate request
|
|
98
|
+
(0, validation_1.validateRequest)(request);
|
|
99
|
+
return this._client.getLimitOrderByExternalReference(request);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Retrieves a list of limit orders.
|
|
103
|
+
* @param {ListLimitOrdersRequest} request - The request object for listlimitorders.
|
|
104
|
+
* @returns {Promise<ListLimitOrdersResponse>} A promise that resolves with the list of limit orders.
|
|
105
|
+
*/
|
|
106
|
+
listLimitOrders(request) {
|
|
107
|
+
// Validate request
|
|
108
|
+
(0, validation_1.validateRequest)(request);
|
|
109
|
+
return this._client.listLimitOrders(request);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Searches for limit orders.
|
|
113
|
+
* @param {SearchLimitOrdersRequest} request - The request object for searchlimitorders.
|
|
114
|
+
* @returns {Promise<SearchLimitOrdersResponse>} A promise that resolves with the search results.
|
|
115
|
+
*/
|
|
116
|
+
searchLimitOrders(request) {
|
|
117
|
+
// Validate request
|
|
118
|
+
(0, validation_1.validateRequest)(request);
|
|
119
|
+
return this._client.searchLimitOrders(request);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Performs monitorlimitorder operation on limit order.
|
|
123
|
+
* Server-side streaming method with client-side validation and authentication.
|
|
124
|
+
* @param {MonitorLimitOrderRequest} request - The request object for monitorlimitorder.
|
|
125
|
+
* @returns {AsyncIterable<LimitOrder>} An async iterable of LimitOrder messages.
|
|
126
|
+
* @throws {Error} If request validation fails.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* const stream = client.monitorLimitOrder(request);
|
|
130
|
+
* for await (const response of stream) {
|
|
131
|
+
* // Process each response
|
|
132
|
+
* console.log(response);
|
|
133
|
+
* }
|
|
134
|
+
*/
|
|
135
|
+
monitorLimitOrder(request) {
|
|
136
|
+
// Validate request before initiating stream
|
|
137
|
+
(0, validation_1.validateRequest)(request);
|
|
138
|
+
return this._client.monitorLimitOrder(request);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.LimitOrderServiceWeb = LimitOrderServiceWeb;
|