question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kraken advanced orders

See original GitHub issue
  • OS: Linux
  • Programming Language version: Python 3.7.2
  • CCXT version: 1.18.456
  • Exchange: Kraken
  • Method: create_order

I’m trying to create a stoploss limit order, but I get the following error: ExchangeError: kraken {"error":["EGeneral:Invalid arguments:ordertype"]}

This is my setup:

pair = "BTC/EUR"
ordertype = "stop-loss-limit"
amount = 0.005
price = 4000
price2 = 0.99 * 4000
params = {"trading_agreement": "agree", "validate": True, "price2": price2}

krk.create_order(pair, ordertype, "sell", amount, price, params=params)

Market and limit orders work fine, just like “normal” stop-loss orders. Any idea why this could be? Other types, like stop-loss-profit, throw the same error. Seems any order type that has more than one hyphen.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iuvbiocommented, Apr 12, 2019

Damn, seems like you’re right. I was only going off the Kraken docs, assuming they were correct…

Have you tried reaching out to Kraken tech support on this matter?

Will do that…

0reactions
kroitorcommented, Apr 12, 2019

@iuvbio ok, i’d close this for now, if you don’t mind, feel free to reopen it if needed, or just ask further questions if any. We’ll be happy if you followup with your findings here )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Order types - Kraken Support
Order types · Price terminology · Market and limit orders · Stop loss orders · Stop loss limit orders · Take profit orders...
Read more >
Summary of order options - Kraken Support
To access the order forms, click New Order (under the Trade tab on your account screen). Then click Simple or Advanced depending on...
Read more >
Futures Order Types - Kraken Support
Futures Order Types · Trigger Entry. Trigger entry orders allow you to enter a position using a trigger order, similar to a Stop...
Read more >
WebSocket API - advanced order types - Kraken Support
Our WebSocket API supports a variety of order types, including the following five basic order types: Market Limit Stop Loss Take Profit...
Read more >
Other order options - Kraken Support
In addition to common order options available on exchanges, Kraken offers additional order options for advanced traders. The other order options offer you ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found