hyperliquid-dex / hyperliquid-python-sdk

SDK for Hyperliquid API trading with Python.
MIT License
238 stars 97 forks source link

Update api.py #25

Closed Alexlesch98 closed 6 months ago

Alexlesch98 commented 7 months ago
  1. Used the or operator for setting default values more concisely.
  2. Simplified the payload assignment using the or operator.
  3. Removed the explicit return statement at the end of init since it's not necessary.
  4. Simplified the error_data assignment using the get method.
  5. Adjusted spacing for consistency and readability.