Skip to content

Conversation

@GavinPHR
Copy link
Contributor

If user_state["assetPositions"] is empty, as it would be for new users. self.position is always None and no orders will be sent (line 108).

Also reduce MAX_POSITION TO 0.01, otherwise there is not enough margin from 100 mock USDC

@GavinPHR GavinPHR changed the title Update position to 0 Update position to 0 when user assetPositions is empty May 14, 2024
@traderben traderben merged commit f50707f into hyperliquid-dex:master May 14, 2024
perplover pushed a commit to perplover/hyperliquid-python-sdk that referenced this pull request Oct 15, 2024
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