Skip to content

Conversation

perplover
Copy link
Contributor

Add some details on how to setup the configuration for using the SDK

README.md Outdated
@@ -19,6 +19,13 @@ SDK for Hyperliquid API trading with Python.
```bash
pip install hyperliquid-python-sdk
```
## Configuration
Generate and authorize a new API private key on https://app.hyperliquid.xyz/API
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit torn on this recommendation. I think users are less likely to get confused if they use their wallet's private key directly. API wallet's do not have permission to perform several actions the sdk supports. I'd prefer if the docs recommended using your private key and maybe mentioning setting up an API wallet as an option if the complexity security tradeoff is worth it for you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

I've updated the content here to primarily point to the main wallet and optionally use an API wallet

@traderben im also thinking of moving this to use the dotenv package for managing the private key rather than holding it in the config file. Is that something you're supportive of?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the readme. I don't see the value in adding a dependency on dotenv, so I'd rather not add that change

@perplover perplover force-pushed the configuratio-readme branch from 4bc964c to be98772 Compare October 15, 2024 20:44
Co-authored-by: Ben <ben@hl-labs.xyz>
@traderben traderben merged commit eee9be6 into hyperliquid-dex:master 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