问题描述
okx smartmoney signal 和 okx smartmoney overview 命令存在 CLI 参数与 API 行为不一致的问题。
当前行为
-
CLI 要求必须提供 --ts 或 --dataVersion 参数,否则会报错:
Error: Either --ts or --dataVersion must be provided
-
但 API 返回错误称这两个参数已废弃:
error: {"error":"ts and dataVersion are deprecated, always uses current hour"}
期望行为
CLI 应该与 API 行为保持一致:
- 移除
--ts 和 --dataVersion 的强制要求
- 默认使用当前小时数据(与 API 行为一致)
环境信息
- CLI 版本: 1.3.2
- Node.js: v22.22.0
- OS: macOS
复现步骤
# 触发参数缺失错误
okx smartmoney signal --instType SWAP
# 触发 API 废弃错误
okx smartmoney signal --instType SWAP --ts 1746000000000
相关命令
okx smartmoney signal
okx smartmoney overview
补充: smartmoney traders 和 smartmoney trader --authorId <id> 工作正常,说明 API 本身是正常的,只是参数处理逻辑需要修复。
问题描述
okx smartmoney signal和okx smartmoney overview命令存在 CLI 参数与 API 行为不一致的问题。当前行为
CLI 要求必须提供
--ts或--dataVersion参数,否则会报错:但 API 返回错误称这两个参数已废弃:
期望行为
CLI 应该与 API 行为保持一致:
--ts和--dataVersion的强制要求环境信息
复现步骤
相关命令
okx smartmoney signalokx smartmoney overview补充:
smartmoney traders和smartmoney trader --authorId <id>工作正常,说明 API 本身是正常的,只是参数处理逻辑需要修复。