Skip to content

feat: add default text annotations to order commands#11

Merged
byshing merged 1 commit into
masterfrom
feature/order-text-defaults
Jun 2, 2026
Merged

feat: add default text annotations to order commands#11
byshing merged 1 commit into
masterfrom
feature/order-text-defaults

Conversation

@byshing
Copy link
Copy Markdown
Collaborator

@byshing byshing commented Jun 2, 2026

Summary

  • Sets default text field on all order mutations to match BitMEX API convention (Submitted via CLI., Amended via CLI., Canceled via CLI.)
  • User-supplied --text still overrides the default
  • Enables attribution of CLI-placed orders in execution logs alongside the existing bitmex-cli/<version> user-agent

Test plan

  • bitmex order buy XBTUSD 100 --price 50000 --validate → response body includes "text": "Submitted via CLI."
  • bitmex order buy ... --text "my note" --validate → response body includes "text": "my note" (override works)
  • Same checks for sell, amend, cancel, cancel-all

Set 'Submitted via CLI.', 'Amended via CLI.', and 'Canceled via CLI.'
as defaults, matching BitMEX API convention. User-supplied --text still overrides.
@byshing byshing merged commit fe9fae9 into master Jun 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants