@ysgroup/contracts 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +7 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -425,7 +425,6 @@ export interface Account {
425
425
  "team_id": string; /** 团队ID */
426
426
  "owner_id": string; /** 主体ID */
427
427
  "enabled"?: boolean; /** 启用 */
428
- "auto_trade"?: boolean; /** 自动化交易 */
429
428
  "account": string; /** 资金账号 */
430
429
  "cname": string; /** 账户别名 */
431
430
  "type": AccountType; /** 账户类型 */
@@ -447,7 +446,7 @@ export interface Account {
447
446
  "login_password_hint"?: string; /** 登录密码提示 */
448
447
  "fund_password_hint"?: string; /** 资金密码提示 */
449
448
  "cfmmc_password_hint"?: string; /** CFMMC密码提示 */
450
- "config"?: Record<string, unknown>; /** 配置信息 */
449
+ "profit_enabled"?: boolean; /** 计算盈亏 */
451
450
  "commission_refund"?: number; /** 手续费返还 */
452
451
  "positions_refund"?: number; /** 持仓返还 */
453
452
  "interest"?: number; /** 利息 */
@@ -1508,16 +1507,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
1508
1507
  "system_required": false,
1509
1508
  "blocked_reason": ""
1510
1509
  },
1511
- {
1512
- "key": "auto_trade",
1513
- "title": "自动化交易",
1514
- "kind": "original",
1515
- "type": "<class 'bool'>",
1516
- "sensitivity": "public",
1517
- "selectable": true,
1518
- "system_required": false,
1519
- "blocked_reason": ""
1520
- },
1521
1510
  {
1522
1511
  "key": "account",
1523
1512
  "title": "资金账号",
@@ -1729,10 +1718,10 @@ export const AUTHORIZATION_FIELD_CATALOG = {
1729
1718
  "blocked_reason": ""
1730
1719
  },
1731
1720
  {
1732
- "key": "config",
1733
- "title": "配置信息",
1721
+ "key": "profit_enabled",
1722
+ "title": "计算盈亏",
1734
1723
  "kind": "original",
1735
- "type": "<class 'dict'>",
1724
+ "type": "<class 'bool'>",
1736
1725
  "sensitivity": "public",
1737
1726
  "selectable": true,
1738
1727
  "system_required": false,
@@ -3548,14 +3537,6 @@ export const FIELD_SPECS = {
3548
3537
  "required": false,
3549
3538
  "sensitivity": "public"
3550
3539
  },
3551
- {
3552
- "key": "auto_trade",
3553
- "title": "自动化交易",
3554
- "widget": "switch",
3555
- "enum": null,
3556
- "required": false,
3557
- "sensitivity": "public"
3558
- },
3559
3540
  {
3560
3541
  "key": "account",
3561
3542
  "title": "资金账号",
@@ -3725,9 +3706,9 @@ export const FIELD_SPECS = {
3725
3706
  "sensitivity": "public"
3726
3707
  },
3727
3708
  {
3728
- "key": "config",
3729
- "title": "配置信息",
3730
- "widget": "json",
3709
+ "key": "profit_enabled",
3710
+ "title": "计算盈亏",
3711
+ "widget": "switch",
3731
3712
  "enum": null,
3732
3713
  "required": false,
3733
3714
  "sensitivity": "public"