Skip to content

Conversation

@smypmsa
Copy link
Contributor

@smypmsa smypmsa commented Oct 10, 2025

Summary

Adds support for placing and canceling TWAP (Time-Weighted Average Price) orders.

Changes

  • Type definitions: added TwapRequest, TwapCancelRequest, TwapWire types
  • Helper functions: added twap_request_to_twap_wire() conversion function
  • Exchange methods: added twap_order() and cancel_twap() methods
  • Tests: added 3 tests for wire conversion and signing
  • Example: added examples/basic_twap_order.py demonstrating usage

API Documentation

Implements: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order

@smypmsa
Copy link
Contributor Author

smypmsa commented Oct 10, 2025

#212

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.

1 participant