Skip to content
Discussion options

You must be logged in to vote

Hola Juan,
Could you please set logging to DEBUG and include the output ? You can do so like this:

logging.basicConfig(level=logging.DEBUG, format="[%(asctime)s %(levelname)s] %(message)s")

Note that the backtesting exchange uses the following liquidity strategy by default: https://basana.readthedocs.io/en/latest/backtesting_liquidity.html#basana.backtesting.liquidity.VolumeShareImpact
and that may affect you in two different ways:

  • The slipped price * the order size is higher than the available funds.
  • The order size is greater than the 25% of the next bar's volume.

In any case, the DEBUG log should give you a clue of what is going on.

Another option is to use this liquidity strategy: h…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@gbeced
Comment options

@Spinlogic
Comment options

@gbeced
Comment options

@Spinlogic
Comment options

@gbeced
Comment options

Answer selected by gbeced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants