-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi,
I'm trying to figure out how to add a conditional close to a limit order, specifically a take profit condition. On a standard limit order you would write something like:
Krakex.add_order(pair, "buy", "limit", lot_size, [price: buy_price])
After looking through the Krakex docs and the Kraken API I see another order type called take-profit-limit. I've tried this as well in the following fashion:
Krakex.add_order(pair, "buy", "take-profit-limit", lot_size, [price: sell_price, price2: buy_price])
But I seem to get back an error of: EGeneral:Invalid arguments:ordertype
If you could give me a hand figuring out where I'm misapplying this it would be greatly appreciated.
Metadata
Metadata
Assignees
Labels
No labels