@ysgroup/contracts 0.1.31 → 0.1.32
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/package.json +1 -1
- package/src/index.ts +121 -120
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
export type AccountType = "STOCK" | "FUTURES" | "CREDIT" | "STOCK_OPTION" | "GOLD" | "INCOME_SWAP" | "FUTURES_OPTION" | "HUGANGTONG" | "NEW3BOARD" | "SHENGANGTONG";
|
|
5
5
|
export type AppKind = "service" | "link";
|
|
6
6
|
export type AppStatus = "enabled" | "disabled" | "maintenance";
|
|
7
|
-
export type AuthorizationTable = "users" | "teams" | "owners" | "accounts" | "exchange_accounts" | "mount_exchange_accounts" | "bank_cards" | "banks" | "cnaps" | "custodians" | "strategies" | "projects" | "project_owner" | "owner_strategy" | "account_strategy" | "company_employees" | "brokers" | "broker_branches" | "servers" | "trading_counters" | "trading_nodes" | "trading_seats" | "
|
|
7
|
+
export type AuthorizationTable = "users" | "teams" | "owners" | "accounts" | "exchange_accounts" | "mount_exchange_accounts" | "bank_cards" | "banks" | "cnaps" | "custodians" | "strategies" | "projects" | "project_owner" | "owner_strategy" | "account_strategy" | "company_employees" | "brokers" | "broker_branches" | "servers" | "trading_counters" | "trading_nodes" | "trading_seats" | "counter_suppliers" | "server_rooms" | "file_metas" | "app_configs";
|
|
8
8
|
export type ChangeOp = "upsert" | "delete";
|
|
9
9
|
export type CounterTier = "low_latency_95" | "low_latency_85" | "low_latency_98" | "apex_99";
|
|
10
|
+
export type ExchangeBusinessPlatform = "1" | "2" | "3" | "4" | "5" | "6" | "MTP" | "ATP" | "DTP" | "XBTP" | "ITP" | "FISP" | "IITP";
|
|
10
11
|
export type ExchangeType = "SH" | "SZ" | "SHFE" | "CFFEX" | "CZCE" | "DCE" | "GFEX" | "INE" | "SGE" | "UNKNOWN";
|
|
11
12
|
export type FieldGroupStatus = "draft" | "published" | "archived";
|
|
12
13
|
export type GatewayMode = "db" | "flow";
|
|
@@ -115,6 +116,125 @@ export const ENUM_META = {
|
|
|
115
116
|
"market": "UNKNOWN"
|
|
116
117
|
}
|
|
117
118
|
},
|
|
119
|
+
"ExchangeBusinessPlatform": {
|
|
120
|
+
"1": {
|
|
121
|
+
"exchange": "SZ",
|
|
122
|
+
"name": "现货集中竞价交易平台",
|
|
123
|
+
"description": "主要为市场参与人提供股票、基金、债券、期权等证券的集中撮合交易服务。目前支持的产品包括A股、B股、基金、债券、权证、股票期权(模拟阶段)、优先股(模拟阶段)。交易方式包括集中竞价交易、债券质押式回购交易、债券分销、IPO、配股配债、网络投票等。",
|
|
124
|
+
"order_software": "BinaryTrading交易网关、EzOES交易网关",
|
|
125
|
+
"file_transfer": "证通云盘(D-COM和FDEP择一接入)",
|
|
126
|
+
"client_software": "",
|
|
127
|
+
"sort": 0
|
|
128
|
+
},
|
|
129
|
+
"2": {
|
|
130
|
+
"exchange": "SZ",
|
|
131
|
+
"name": "综合金融服务平台",
|
|
132
|
+
"description": "主要为市场参与人提供证券非交易类业务的申报与转发服务。目前支持约定购回、质押式报价回购、股票质押式回购、融资融券非交易、转融通证券划转、黄金ETF实物申赎、基金盘后业务、基金专户份额转让、深圳B转H股、高管可用额度转移、询价转让、非定向可转债转股和回售、配股配债的认购资金、新股发行认购资金的日终结算等。",
|
|
133
|
+
"order_software": "EzSTEP交易网关",
|
|
134
|
+
"file_transfer": "证通云盘(D-COM和FDEP择一接入)",
|
|
135
|
+
"client_software": "",
|
|
136
|
+
"sort": 1
|
|
137
|
+
},
|
|
138
|
+
"3": {
|
|
139
|
+
"exchange": "SZ",
|
|
140
|
+
"name": "非交易处理平台",
|
|
141
|
+
"description": "主要为市场参与人提供ETF申赎、转融通证券出借、盘后定价大宗交易、转托管、质押式回购出入库、债券回售及撤销等服务。",
|
|
142
|
+
"order_software": "BinaryTrading交易网关",
|
|
143
|
+
"file_transfer": "证通云盘(D-COM和FDEP择一接入)",
|
|
144
|
+
"client_software": "",
|
|
145
|
+
"sort": 2
|
|
146
|
+
},
|
|
147
|
+
"4": {
|
|
148
|
+
"exchange": "SZ",
|
|
149
|
+
"name": "衍生品集中竞价交易平台",
|
|
150
|
+
"description": "主要为市场参与人提供衍生品集中竞价交易、备兑锁定与解锁、衍生品行权、衍生品行权指令合并申报、会员申请转处置证券账户、组合保证金等非交易业务服务。",
|
|
151
|
+
"order_software": "BinaryTrading交易网关",
|
|
152
|
+
"file_transfer": "证通云盘(D-COM和FDEP择一接入)",
|
|
153
|
+
"client_software": "",
|
|
154
|
+
"sort": 3
|
|
155
|
+
},
|
|
156
|
+
"5": {
|
|
157
|
+
"exchange": "SZ",
|
|
158
|
+
"name": "国际市场互联平台",
|
|
159
|
+
"description": "主要为市场参与人提供香港联合交易所规定范围的港股交易业务服务。",
|
|
160
|
+
"order_software": "BinaryTrading交易网关",
|
|
161
|
+
"file_transfer": "证通云盘(D-COM和FDEP择一接入)",
|
|
162
|
+
"client_software": "",
|
|
163
|
+
"sort": 4
|
|
164
|
+
},
|
|
165
|
+
"6": {
|
|
166
|
+
"exchange": "SZ",
|
|
167
|
+
"name": "固定收益交易平台",
|
|
168
|
+
"description": "主要为市场参与人提供债券类产品的业务服务,以协商、点击成交类业务为主。",
|
|
169
|
+
"order_software": "BinaryTrading交易网关、EzDA交易网关",
|
|
170
|
+
"file_transfer": "",
|
|
171
|
+
"client_software": "债券交易终端",
|
|
172
|
+
"sort": 5
|
|
173
|
+
},
|
|
174
|
+
"MTP": {
|
|
175
|
+
"exchange": "SH",
|
|
176
|
+
"name": "竞价撮合平台",
|
|
177
|
+
"description": "为市场参与者提供股票、基金的交易和非交易业务。目前包括A股和B股两个市场,支持的业务包括集中撮合交易、IPO申购、融资融券等。",
|
|
178
|
+
"order_software": "EzOES、TDGW",
|
|
179
|
+
"file_transfer": "证通云盘、UT客户端",
|
|
180
|
+
"client_software": "",
|
|
181
|
+
"sort": 6
|
|
182
|
+
},
|
|
183
|
+
"ATP": {
|
|
184
|
+
"exchange": "SH",
|
|
185
|
+
"name": "综合业务平台",
|
|
186
|
+
"description": "主要为市场参与者提供创新类业务支持,包括大宗交易、转融通、盘后固定价格、非公开发行优先股、货币市场基金申购赎回、ETF申购赎回、LOF申购赎回、分级基金分拆和合并、国债预发行、约定购回、报价回购、股票质押式回购、网络投票、债券质押式回购出入库、可转债转股、可交换债换股、债券回售及撤销、指定/撤销指定等业务。",
|
|
187
|
+
"order_software": "EzSTEP",
|
|
188
|
+
"file_transfer": "证通云盘、UT客户端",
|
|
189
|
+
"client_software": "",
|
|
190
|
+
"sort": 7
|
|
191
|
+
},
|
|
192
|
+
"DTP": {
|
|
193
|
+
"exchange": "SH",
|
|
194
|
+
"name": "期权业务平台",
|
|
195
|
+
"description": "主要为市场参与者提供股票、ETF标准化期权合约的集中撮合交易和证券锁定与解锁、行权、行权指令合并、会员申请转处置证券账户、组合策略保证金等非交易业务。",
|
|
196
|
+
"order_software": "TDGW",
|
|
197
|
+
"file_transfer": "证通云盘、UT客户端",
|
|
198
|
+
"client_software": "",
|
|
199
|
+
"sort": 8
|
|
200
|
+
},
|
|
201
|
+
"XBTP": {
|
|
202
|
+
"exchange": "SH",
|
|
203
|
+
"name": "新债券交易平台",
|
|
204
|
+
"description": "主要为市场参与者提供债券现券和质押式回购的集中撮合交易、融资融券等业务。",
|
|
205
|
+
"order_software": "TDGW",
|
|
206
|
+
"file_transfer": "证通云盘、UT客户端",
|
|
207
|
+
"client_software": "",
|
|
208
|
+
"sort": 9
|
|
209
|
+
},
|
|
210
|
+
"ITP": {
|
|
211
|
+
"exchange": "SH",
|
|
212
|
+
"name": "港股通平台",
|
|
213
|
+
"description": "主要为市场参与者提供香港联合交易所规定范围的港股交易业务。",
|
|
214
|
+
"order_software": "EzSTEP",
|
|
215
|
+
"file_transfer": "证通云盘、UT客户端",
|
|
216
|
+
"client_software": "",
|
|
217
|
+
"sort": 10
|
|
218
|
+
},
|
|
219
|
+
"FISP": {
|
|
220
|
+
"exchange": "SH",
|
|
221
|
+
"name": "固定收益平台",
|
|
222
|
+
"description": "为市场参与者提供债券类产品的业务,以协商、报价交易类业务为主。",
|
|
223
|
+
"order_software": "EzDA",
|
|
224
|
+
"file_transfer": "",
|
|
225
|
+
"client_software": "BOND",
|
|
226
|
+
"sort": 11
|
|
227
|
+
},
|
|
228
|
+
"IITP": {
|
|
229
|
+
"exchange": "SH",
|
|
230
|
+
"name": "互联网交易平台",
|
|
231
|
+
"description": "主要为市场参与者提供创新类业务支持,同时为核心系统相关业务提供支持图形化操作的备用通道。平台业务包括大宗股票司法协助执行、科创板询价转让和配售、REITs询价、基金通2.0、B转H等;作为核心系统备用通道,支持债券非交易申报等。",
|
|
232
|
+
"order_software": "TDGW",
|
|
233
|
+
"file_transfer": "证通云盘、UT客户端",
|
|
234
|
+
"client_software": "",
|
|
235
|
+
"sort": 12
|
|
236
|
+
}
|
|
237
|
+
},
|
|
118
238
|
"CounterTier": {
|
|
119
239
|
"low_latency_95": {
|
|
120
240
|
"name": "低延时95柜台",
|
|
@@ -298,10 +418,6 @@ export const ENUM_META = {
|
|
|
298
418
|
"label": "交易席位表",
|
|
299
419
|
"sort": 186
|
|
300
420
|
},
|
|
301
|
-
"trading_gateways": {
|
|
302
|
-
"label": "交易网关表",
|
|
303
|
-
"sort": 187
|
|
304
|
-
},
|
|
305
421
|
"counter_suppliers": {
|
|
306
422
|
"label": "柜台供应商表",
|
|
307
423
|
"sort": 190
|
|
@@ -644,16 +760,6 @@ export interface TradingSeat {
|
|
|
644
760
|
"memo"?: string; /** 备注 */
|
|
645
761
|
}
|
|
646
762
|
|
|
647
|
-
export interface TradingGateway {
|
|
648
|
-
"_id"?: string; /** 主键 */
|
|
649
|
-
"created_at"?: number; /** 创建时间 */
|
|
650
|
-
"updated_at"?: number; /** 更新时间 */
|
|
651
|
-
"deleted_at"?: null | number; /** 软删除时间 */
|
|
652
|
-
"trading_seat_id": string; /** 交易席位ID */
|
|
653
|
-
"gateway_no": string; /** 网关号 */
|
|
654
|
-
"memo"?: string; /** 备注 */
|
|
655
|
-
}
|
|
656
|
-
|
|
657
763
|
export interface CounterSupplier {
|
|
658
764
|
"_id"?: string; /** 主键 */
|
|
659
765
|
"created_at"?: number; /** 创建时间 */
|
|
@@ -827,7 +933,6 @@ export const TABLES = {
|
|
|
827
933
|
"trading_counters": "TradingCounter",
|
|
828
934
|
"trading_nodes": "TradingNode",
|
|
829
935
|
"trading_seats": "TradingSeat",
|
|
830
|
-
"trading_gateways": "TradingGateway",
|
|
831
936
|
"counter_suppliers": "CounterSupplier",
|
|
832
937
|
"server_rooms": "ServerRoom",
|
|
833
938
|
"user_app": "UserApp",
|
|
@@ -975,12 +1080,6 @@ export const AUTHORIZATION_TABLE_META = {
|
|
|
975
1080
|
"scope_mode": "global",
|
|
976
1081
|
"description": "授权后提供全部存活记录"
|
|
977
1082
|
},
|
|
978
|
-
"trading_gateways": {
|
|
979
|
-
"name": "交易网关表",
|
|
980
|
-
"category": "参考数据",
|
|
981
|
-
"scope_mode": "global",
|
|
982
|
-
"description": "授权后提供全部存活记录"
|
|
983
|
-
},
|
|
984
1083
|
"counter_suppliers": {
|
|
985
1084
|
"name": "柜台供应商表",
|
|
986
1085
|
"category": "参考数据",
|
|
@@ -3309,78 +3408,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3309
3408
|
"blocked_reason": ""
|
|
3310
3409
|
}
|
|
3311
3410
|
],
|
|
3312
|
-
"trading_gateways": [
|
|
3313
|
-
{
|
|
3314
|
-
"key": "_id",
|
|
3315
|
-
"title": "主键",
|
|
3316
|
-
"kind": "original",
|
|
3317
|
-
"type": "<class 'str'>",
|
|
3318
|
-
"sensitivity": "public",
|
|
3319
|
-
"selectable": true,
|
|
3320
|
-
"system_required": true,
|
|
3321
|
-
"blocked_reason": ""
|
|
3322
|
-
},
|
|
3323
|
-
{
|
|
3324
|
-
"key": "created_at",
|
|
3325
|
-
"title": "创建时间",
|
|
3326
|
-
"kind": "original",
|
|
3327
|
-
"type": "<class 'float'>",
|
|
3328
|
-
"sensitivity": "public",
|
|
3329
|
-
"selectable": true,
|
|
3330
|
-
"system_required": false,
|
|
3331
|
-
"blocked_reason": ""
|
|
3332
|
-
},
|
|
3333
|
-
{
|
|
3334
|
-
"key": "updated_at",
|
|
3335
|
-
"title": "更新时间",
|
|
3336
|
-
"kind": "original",
|
|
3337
|
-
"type": "<class 'float'>",
|
|
3338
|
-
"sensitivity": "public",
|
|
3339
|
-
"selectable": true,
|
|
3340
|
-
"system_required": false,
|
|
3341
|
-
"blocked_reason": ""
|
|
3342
|
-
},
|
|
3343
|
-
{
|
|
3344
|
-
"key": "deleted_at",
|
|
3345
|
-
"title": "软删除时间",
|
|
3346
|
-
"kind": "original",
|
|
3347
|
-
"type": "float | None",
|
|
3348
|
-
"sensitivity": "public",
|
|
3349
|
-
"selectable": false,
|
|
3350
|
-
"system_required": false,
|
|
3351
|
-
"blocked_reason": "系统安全字段,禁止进入同步流"
|
|
3352
|
-
},
|
|
3353
|
-
{
|
|
3354
|
-
"key": "trading_seat_id",
|
|
3355
|
-
"title": "交易席位ID",
|
|
3356
|
-
"kind": "original",
|
|
3357
|
-
"type": "<class 'str'>",
|
|
3358
|
-
"sensitivity": "public",
|
|
3359
|
-
"selectable": true,
|
|
3360
|
-
"system_required": false,
|
|
3361
|
-
"blocked_reason": ""
|
|
3362
|
-
},
|
|
3363
|
-
{
|
|
3364
|
-
"key": "gateway_no",
|
|
3365
|
-
"title": "网关号",
|
|
3366
|
-
"kind": "original",
|
|
3367
|
-
"type": "<class 'str'>",
|
|
3368
|
-
"sensitivity": "public",
|
|
3369
|
-
"selectable": true,
|
|
3370
|
-
"system_required": false,
|
|
3371
|
-
"blocked_reason": ""
|
|
3372
|
-
},
|
|
3373
|
-
{
|
|
3374
|
-
"key": "memo",
|
|
3375
|
-
"title": "备注",
|
|
3376
|
-
"kind": "original",
|
|
3377
|
-
"type": "<class 'str'>",
|
|
3378
|
-
"sensitivity": "public",
|
|
3379
|
-
"selectable": true,
|
|
3380
|
-
"system_required": false,
|
|
3381
|
-
"blocked_reason": ""
|
|
3382
|
-
}
|
|
3383
|
-
],
|
|
3384
3411
|
"counter_suppliers": [
|
|
3385
3412
|
{
|
|
3386
3413
|
"key": "_id",
|
|
@@ -4710,32 +4737,6 @@ export const FIELD_SPECS = {
|
|
|
4710
4737
|
"sensitivity": "public"
|
|
4711
4738
|
}
|
|
4712
4739
|
],
|
|
4713
|
-
"trading_gateways": [
|
|
4714
|
-
{
|
|
4715
|
-
"key": "trading_seat_id",
|
|
4716
|
-
"title": "交易席位ID",
|
|
4717
|
-
"widget": "text",
|
|
4718
|
-
"enum": null,
|
|
4719
|
-
"required": true,
|
|
4720
|
-
"sensitivity": "public"
|
|
4721
|
-
},
|
|
4722
|
-
{
|
|
4723
|
-
"key": "gateway_no",
|
|
4724
|
-
"title": "网关号",
|
|
4725
|
-
"widget": "text",
|
|
4726
|
-
"enum": null,
|
|
4727
|
-
"required": true,
|
|
4728
|
-
"sensitivity": "public"
|
|
4729
|
-
},
|
|
4730
|
-
{
|
|
4731
|
-
"key": "memo",
|
|
4732
|
-
"title": "备注",
|
|
4733
|
-
"widget": "text",
|
|
4734
|
-
"enum": null,
|
|
4735
|
-
"required": false,
|
|
4736
|
-
"sensitivity": "public"
|
|
4737
|
-
}
|
|
4738
|
-
],
|
|
4739
4740
|
"counter_suppliers": [
|
|
4740
4741
|
{
|
|
4741
4742
|
"key": "type",
|