Skip to content

Expand CLI coverage to match HTTP and Python API surfaces #19

Description

@zechengwang724

Summary

CLI 目前還沒有完整對齊 HTTP + Python API。這張 issue 只追兩件事:

  1. HTTP + Python 都有,但 CLI 還沒有的功能
  2. CLI 已有功能,但參數沒有對齊的地方

CLI missing features

Watchlist

  • fetch_watchlists
  • get_watchlist
  • create_watchlist
  • delete_watchlist
  • sync_watchlist
  • watchlist_add_contract
  • watchlist_delete_contract

Reserve / earmarking

  • stock_reserve_summary
  • stock_reserve_detail
  • earmarking_detail
  • reserve_stock
  • reserve_earmarking

Combo order

  • place_comboorder
  • cancel_comboorder
  • update_combostatus / list_combotrades

Portfolio

CLI currently only has balance, positions, margin; missing:

  • settlements
  • list_settlements
  • trading_limits
  • list_profit_loss
  • list_position_detail
  • list_profit_loss_detail
  • list_profit_loss_summary

Data

CLI currently only has ticks, kbars, scanner, stream, snapshots; missing:

  • daily_quotes
  • credit_enquires
  • short_stock_sources
  • punish
  • notice

Auth / order utility

  • get_ca_expiretime
  • subscribe_trade
  • unsubscribe_trade
  • order_deal_records

CLI parameter gaps

data ticks

Python / HTTP support query_type, time_start, time_end, last_cnt.

CLI currently only has --all / --last; missing explicit range-time support:

  • --query-type
  • --time-start
  • --time-end

data snapshots

CLI uses one shared --security-type and --exchange for all --codes.

Missing:

  • mixed contract input
  • per-contract target_code

data stream

CLI only does subscribe + read one SSE stream.

Missing:

  • unsubscribe
  • stream status / receivers
  • unified stream
  • --exchange
  • --target-code

order place

Missing order fields:

  • --custom-field
  • --daytrade-short
  • --exchange
  • --target-code

portfolio positions

CLI defaults --account-type S, so it cannot cleanly express Python-style optional account/default resolver behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions