drift-labs / driftpy

python sdk to interact with drift v2
https://drift-2.gitbook.io/driftpy-for-dummies/
65 stars 41 forks source link

Update fuel.py #205

Open KhalidMustafin opened 1 month ago

KhalidMustafin commented 1 month ago
  1. Type annotations have been added.
  2. A helper function calculate_scaled_fuel has been created to optimize calculations.
  3. A constant SCALED_QUOTE_PRECISION has been introduced.
  4. Input data validation and error handling have been added.
  5. Docstrings have been added to all functions.