Skip to content

Add grouped TPSL order example#303

Open
Hyrudotcom wants to merge 1 commit into
hyperliquid-dex:masterfrom
Hyrudotcom:codex/grouped-tpsl-example
Open

Add grouped TPSL order example#303
Hyrudotcom wants to merge 1 commit into
hyperliquid-dex:masterfrom
Hyrudotcom:codex/grouped-tpsl-example

Conversation

@Hyrudotcom
Copy link
Copy Markdown

Summary

  • Add a dedicated basic_grouped_tpsl.py example for grouped parent + take-profit + stop-loss orders.
  • Build the three orders in one bulk_orders(..., grouping="normalTpsl") action.
  • Cancel any resting orders by default, with --keep-open available when users want to inspect the orders on testnet.

Closes #86.

Validation

  • PYTHONPYCACHEPREFIX=/private/tmp/codex-pycache python3 -m py_compile examples/basic_grouped_tpsl.py
  • git diff --check HEAD~1 HEAD

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.

Request for Example Script: Grouped Orders with Take Profit and Stop Market in Python SDK

1 participant