Skip to content

smartmoney signal/overview commands: --ts and --dataVersion parameters conflict with API #14

Description

@clawdai368-arch

问题描述

okx smartmoney signalokx smartmoney overview 命令存在 CLI 参数与 API 行为不一致的问题。

当前行为

  1. CLI 要求必须提供 --ts--dataVersion 参数,否则会报错:

    Error: Either --ts or --dataVersion must be provided
    
  2. 但 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 traderssmartmoney trader --authorId <id> 工作正常,说明 API 本身是正常的,只是参数处理逻辑需要修复。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions