Skip to content

Conversation

rtunazzz
Copy link
Contributor

As stated in the docs, the price can have up to 8 decimals for spot.

@rtunazzz rtunazzz changed the title Update slippage function to correctly work with spot precision Update the slippage function to work correctly with spot precision Jun 11, 2024
@traderben traderben merged commit 37952fa into hyperliquid-dex:master Jun 11, 2024
perplover pushed a commit to perplover/hyperliquid-python-sdk that referenced this pull request Oct 15, 2024
…yperliquid-dex#38)

* fix(exchange): Update slippage function to correctly work with spot precision

* fix(exchange): Use `self.coin_to_asset` to determine spot vs perp
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