-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
I havent updated anything or reinstalled anything, been using drift on venv but for some reason I get this error now. I am doing bash run.sh
https://codeberg.org/Neochine/driftpy-trading-bot/src/branch/master/logs
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/root/Temp/DriftPy/SolTrading.py", line 330, in runner
await asyncio.gather(main(dc), print_account(dc))
File "/root/Temp/DriftPy/SolTrading.py", line 262, in print_account
health = user.get_health()
^^^^^^^^^^^^^^^^^
File "/root/Temp/DriftPy/venv/lib/python3.11/site-packages/driftpy/drift_user.py", line 396, in get_health
total_collateral = self.get_total_collateral(MarginCategory.MAINTENANCE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Temp/DriftPy/venv/lib/python3.11/site-packages/driftpy/drift_user.py", line 336, in get_total_collateral
asset_value = self.get_spot_market_asset_value(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Temp/DriftPy/venv/lib/python3.11/site-packages/driftpy/drift_user.py", line 742, in get_spot_market_asset_value
asset_value, _ = self.get_spot_market_asset_and_liability_value(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Temp/DriftPy/venv/lib/python3.11/site-packages/driftpy/drift_user.py", line 539, in get_spot_market_asset_and_liability_value
strict_oracle_price = StrictOraclePrice(oracle_price_data.price, twap_5m)
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'price' ```
Metadata
Metadata
Assignees
Labels
No labels