catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

catalyst.api.order_percent(self, asset, percent, limit_price=None, stop_price=None, style=None)

Open AndrijLischishin opened this issue 7 years ago • 2 comments

Dear Catalyst Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

  • Operating System: (macOS High Sierra)
  • Python Version: $ Python 3.6.4
  • Python Bitness: $ [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
  • How did you install Catalyst: (pip)
  • Python packages: ``

Now that you know a little about me, let me tell you about the issue I am having:

Description of Issue

  • What did you expect to happen? I was expecting that 100% of my portfolio will be used if I specify percent = 1

  • What happened instead? Each time it takes around 91-97%

Here is how you can reproduce this issue on your machine:

Reproduction Steps

  1. call the function

...

What steps have you taken to resolve this already?

...

Anything else?

...

Sincerely, $ whoami

AndrijLischishin avatar Nov 16 '18 21:11 AndrijLischishin

Hi @AndrejLischishin ,

What mode are you referring to?

lenak25 avatar Nov 18 '18 11:11 lenak25

Hi @lenak25, backtest

AndrijLischishin avatar Nov 18 '18 11:11 AndrijLischishin