@dshtrading/connector-ccxt 0.6.3 → 0.7.1
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/lib/index.d.ts +1 -4
- package/lib/index.js +1 -1
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -37,10 +37,7 @@ declare class CcxtTradeService extends Service implements TradeService {
|
|
|
37
37
|
config: Config;
|
|
38
38
|
}, serviceName?: string);
|
|
39
39
|
placeOrder(order: OrderRequest): Promise<Order$1>;
|
|
40
|
-
cancelOrder(orderId: string): Promise<
|
|
41
|
-
orderId: string;
|
|
42
|
-
status: 'canceled';
|
|
43
|
-
}>;
|
|
40
|
+
cancelOrder(orderId: string, _symbol?: string): Promise<void>;
|
|
44
41
|
/**
|
|
45
42
|
* 私有账户读面未实现(本包没有任何签名私有账户读路径):必须显式拒绝。base 的账户工具
|
|
46
43
|
* 与 GUI 桥把同一注册面当「交易所账户真值」消费——返回编造订单或空数组会被读成
|
package/lib/index.js
CHANGED
|
@@ -71,7 +71,7 @@ var CcxtTradeService = class extends Service {
|
|
|
71
71
|
};
|
|
72
72
|
return this.client.placeOrder(void 0, order);
|
|
73
73
|
}
|
|
74
|
-
async cancelOrder(orderId) {
|
|
74
|
+
async cancelOrder(orderId, _symbol) {
|
|
75
75
|
if (!liveTradingEnabled(this.config.liveTrading) || this.config.dryRun) throw new TradingServiceError("TRADING_LIVE_TRADING_DISABLED", "CCXT TradeService.cancelOrder rejected at the service seam: cancel is a live action and requires a signed live-trading grant (see @dshtrading/authority) with dryRun=false.");
|
|
76
76
|
return this.client.cancelOrder(void 0, orderId);
|
|
77
77
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dshtrading/connector-ccxt",
|
|
3
3
|
"description": "沿用 CCXT 所名词汇的加密现货多所行情连接器(自写 binance/okx/bybit 三条直连分支,不依赖 ccxt 库):ticker 与 K 线 + 保留三态闸门的交易占位服务;现货限定,账户读面未实现。",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dshtrading/authority": "^0.
|
|
25
|
-
"@dshtrading/api": "^0.
|
|
24
|
+
"@dshtrading/authority": "^0.7.1",
|
|
25
|
+
"@dshtrading/api": "^0.7.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@deepseek-ai/cordis": ">=4.
|
|
29
|
-
"@deepseek-ai/dsh-tools": ">=0.2.
|
|
30
|
-
"@deepseek-ai/schemastery": ">=3.
|
|
28
|
+
"@deepseek-ai/cordis": ">=4.1.0",
|
|
29
|
+
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.1",
|
|
30
|
+
"@deepseek-ai/schemastery": ">=3.19.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"tsdown": "^0.22.0",
|