Skip to content

close order command throwing error #157

@istevendev

Description

@istevendev

hi,
Hope everything is all right.

The buy now and sell now is working perfectly but when i try to close the orders, it throws following error:

"""
Traceback (most recent call last):
  File "/home/st/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/home/st/devs/pl/solie/package/solie/utility/analyze_market.py", line 542, in simulate_chunk
    raise SimulationError(text)
solie.utility.analyze_market.SimulationError: Available balance went below zero while calculating SOLUSDT market at 2025-03-12 00:07:00+00:00
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/st/devs/pl/solie/package/solie/worker/simulator.py", line 737, in _calculate
    calculation_output_data = await gathered
  File "/home/st/devs/pl/solie/package/solie/common/parallelism.py", line 51, in spawn_blocking
    result = await event_loop.run_in_executor(
solie.utility.analyze_market.SimulationError: Available balance went below zero while calculating SOLUSDT market at 2025-03-12 00:07:00+00:00
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/st/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/home/st/devs/pl/solie/package/solie/utility/analyze_market.py", line 542, in simulate_chunk
    raise SimulationError(text)
solie.utility.analyze_market.SimulationError: Available balance went below zero while calculating SOLUSDT market at 2025-03-12 00:07:00+00:00
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/st/devs/pl/solie/package/solie/worker/simulator.py", line 737, in _calculate
    calculation_output_data = await gathered
  File "/home/st/devs/pl/solie/package/solie/common/parallelism.py", line 51, in spawn_blocking
    result = await event_loop.run_in_executor(
solie.utility.analyze_market.SimulationError: Available balance went below zero while calculating SOLUSDT market at 2025-03-12 00:07:00+00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions