@ysgroup/contracts 0.1.33 → 0.1.34
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 +28 -10
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type AuthorizationTable = "users" | "teams" | "owners" | "accounts" | "ex
|
|
|
8
8
|
export type ChangeOp = "upsert" | "delete";
|
|
9
9
|
export type CounterTier = "low_latency_95" | "low_latency_85" | "low_latency_98" | "apex_99";
|
|
10
10
|
export type ExchangeBusinessPlatform = "1" | "2" | "3" | "4" | "5" | "6" | "MTP" | "ATP" | "DTP" | "XBTP" | "ITP" | "FISP" | "IITP";
|
|
11
|
-
export type ExchangeType = "SH" | "SZ" | "SHFE" | "CFFEX" | "CZCE" | "DCE" | "GFEX" | "INE" | "SGE"
|
|
11
|
+
export type ExchangeType = "SH" | "SZ" | "SHFE" | "CFFEX" | "CZCE" | "DCE" | "GFEX" | "INE" | "SGE";
|
|
12
12
|
export type FieldGroupStatus = "draft" | "published" | "archived";
|
|
13
13
|
export type GatewayMode = "db" | "flow";
|
|
14
14
|
export type OwnerType = "Product" | "LegalPerson" | "NaturalPerson";
|
|
@@ -128,12 +128,6 @@ export const ENUM_META = {
|
|
|
128
128
|
"full_name": "上海黄金交易所",
|
|
129
129
|
"english_name": "Shanghai Gold Exchange",
|
|
130
130
|
"market": "FUTURES"
|
|
131
|
-
},
|
|
132
|
-
"UNKNOWN": {
|
|
133
|
-
"name": "其他",
|
|
134
|
-
"full_name": "",
|
|
135
|
-
"english_name": "",
|
|
136
|
-
"market": "UNKNOWN"
|
|
137
131
|
}
|
|
138
132
|
},
|
|
139
133
|
"ExchangeBusinessPlatform": {
|
|
@@ -526,6 +520,11 @@ export interface TradingNodeAddress {
|
|
|
526
520
|
"port"?: number; /** Port */
|
|
527
521
|
}
|
|
528
522
|
|
|
523
|
+
export interface TradingSeatGateway {
|
|
524
|
+
"platform": ExchangeBusinessPlatform; /** 业务平台 */
|
|
525
|
+
"count": number; /** 网关数量 */
|
|
526
|
+
}
|
|
527
|
+
|
|
529
528
|
export interface Team {
|
|
530
529
|
"_id"?: string; /** 主键 */
|
|
531
530
|
"created_at"?: number; /** 创建时间 */
|
|
@@ -763,7 +762,8 @@ export interface TradingSeat {
|
|
|
763
762
|
"deleted_at"?: null | number; /** 软删除时间 */
|
|
764
763
|
"trading_node_id": string; /** 交易节点ID */
|
|
765
764
|
"seat_no": string; /** 席位号 */
|
|
766
|
-
"exchange_id": ExchangeType; /**
|
|
765
|
+
"exchange_id": ExchangeType; /** 交易所 */
|
|
766
|
+
"gateways"?: TradingSeatGateway[]; /** 网关配置 */
|
|
767
767
|
"memo"?: string; /** 备注 */
|
|
768
768
|
}
|
|
769
769
|
|
|
@@ -3396,7 +3396,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3396
3396
|
},
|
|
3397
3397
|
{
|
|
3398
3398
|
"key": "exchange_id",
|
|
3399
|
-
"title": "
|
|
3399
|
+
"title": "交易所",
|
|
3400
3400
|
"kind": "original",
|
|
3401
3401
|
"type": "<enum 'ExchangeType'>",
|
|
3402
3402
|
"sensitivity": "public",
|
|
@@ -3404,6 +3404,16 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3404
3404
|
"system_required": false,
|
|
3405
3405
|
"blocked_reason": ""
|
|
3406
3406
|
},
|
|
3407
|
+
{
|
|
3408
|
+
"key": "gateways",
|
|
3409
|
+
"title": "网关配置",
|
|
3410
|
+
"kind": "original",
|
|
3411
|
+
"type": "list[ys_base.contracts.master.TradingSeatGateway]",
|
|
3412
|
+
"sensitivity": "public",
|
|
3413
|
+
"selectable": true,
|
|
3414
|
+
"system_required": false,
|
|
3415
|
+
"blocked_reason": ""
|
|
3416
|
+
},
|
|
3407
3417
|
{
|
|
3408
3418
|
"key": "memo",
|
|
3409
3419
|
"title": "备注",
|
|
@@ -4729,12 +4739,20 @@ export const FIELD_SPECS = {
|
|
|
4729
4739
|
},
|
|
4730
4740
|
{
|
|
4731
4741
|
"key": "exchange_id",
|
|
4732
|
-
"title": "
|
|
4742
|
+
"title": "交易所",
|
|
4733
4743
|
"widget": "enum",
|
|
4734
4744
|
"enum": "ExchangeType",
|
|
4735
4745
|
"required": true,
|
|
4736
4746
|
"sensitivity": "public"
|
|
4737
4747
|
},
|
|
4748
|
+
{
|
|
4749
|
+
"key": "gateways",
|
|
4750
|
+
"title": "网关配置",
|
|
4751
|
+
"widget": "tags",
|
|
4752
|
+
"enum": null,
|
|
4753
|
+
"required": false,
|
|
4754
|
+
"sensitivity": "public"
|
|
4755
|
+
},
|
|
4738
4756
|
{
|
|
4739
4757
|
"key": "memo",
|
|
4740
4758
|
"title": "备注",
|