Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Order type MarketOrder currently not supported by Catalyst #548

Open
jb33k opened this issue May 4, 2019 · 1 comment
Open

Order type MarketOrder currently not supported by Catalyst #548

jb33k opened this issue May 4, 2019 · 1 comment

Comments

@jb33k
Copy link

jb33k commented May 4, 2019

Dear Catalyst Maintainers,

I'm confused about how to use market orders. I can't figure out how order_target_percent wants me to input the style. If I use order_target_percent(context.market, 1, style=MarketOrder() I get Order type 'MarketOrder' currently not supported by Catalyst. Please use 'limit' or 'market' orders only. error. No variation seems to work. I tried to search the repo for examples but there doesn't seem to be anything.

Am I missing something here or doesn't Catalyst support market orders at all?

@United-T
Copy link

United-T commented Jul 23, 2019

While I am unsure what is causing the issue with using style=MarketOrder() , I do not believe you need to do so.

I believe the default execution for order_target_percent is a market order, so using it without a chosen execution style will execute a market order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants