Lumiwealth / lumibot

Backtesting and Trading Bots Made Easy for Crypto, Stocks, Options, Futures, FOREX and more
GNU General Public License v3.0
778 stars 144 forks source link

Kraken stop_limit order not working #372

Open nzwi opened 4 months ago

nzwi commented 4 months ago

Hi, Team.

Great work on creating this awesome library. I have been trying to submit a stop_limit order on Kraken with no luck. I constantly get the error code: ....... root: INFO: stop_limit order of | 0.42 SOL/USDT sell | at price $80.00 with status error did not go through. The following error occurred: kraken.create_order() got multiple values for argument 'params' .......

This is when submitting an order like this:

stop_limit_order = self.create_order(Asset(symbol=self.base, asset_type="crypto"), quantity, "sell", limit_price=80.00, stop_price=80.00, quote=Asset(symbol=self.quote, asset_type="crypto"))

self.submit_order(stop_limit_order)
grzesir commented 4 months ago

This sounds like an issue with our CCXT broker code. Are you sure that the kraken api can handle stop limit orders?

If you submit a pull request I can merge it in

Robert Grzesik 347-635-3416

On Wed, Feb 21, 2024 at 8:06 AM Nzwisisa Chidembo @.***> wrote:

Hi, Team.

Great work on creating this awesome library. I have been trying to submit a stop_limit order on Kraken with no luck. I constantly get the error code: ....... root: INFO: stop_limit order of | 0.42 SOL/USDT sell | at price $80.00 with status error did not go through. The following error occurred: kraken.create_order() got multiple values for argument 'params' .......

This is when submitting an order like this:

stop_limit_order = self.create_order(Asset(symbol=self.base, asset_type="crypto"), quantity, "sell", limit_price=80.00, stop_price=80.00, quote=Asset(symbol=self.quote, asset_type="crypto"))

self.submit_order(stop_limit_order)

— Reply to this email directly, view it on GitHub https://github.com/Lumiwealth/lumibot/issues/372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIYQK6BJNP2RT6ORVBBST3YUXWODAVCNFSM6AAAAABDTASDHOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DMNZRGQ3DMMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>