New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KUCOIN create stop limit doesnt work properly #22314
Comments
Hello @incafox, If the stopPrice is smaller than the current price then the condition will be trigger <=stopPrice, otherwise >=stopPrice |
hello @carlosmiei here in this example using the WEB UI you can see the current price is 0.05396 and I created an Buy Stop-Limit order with stop price->0.06 , price->0.1. So the trigger condition to buy 100 DPET is if the current price >= 0.06 and sell condition is 0.1, you can see that in advanced orders section (screenshot). Im trying to do the same with CCXT-Kucoin :
So using my example above the enter price(long_price) should be 1.3 * 0.05396 = 0.0701 and short_price = 3 * 0.05396 = 0.161, but unfortunately create_stop_limit_order is buying instantly at the current price instead of setting a trigger condition correctly. |
@incafox Ok I think I managed to reproduce the issue, can you please try to provide result = exchange.create_stop_limit_order(
"DPET/USDT",
side='buy',
amount=100,
price=short_price,
stopPrice=long_price,
{"stop": "entry"}
) Iif we don't provide it, it will default to |
@incafox I think the problem is resolved, so I will close this issue but feel free to reopen it if anything! |
thank you @carlosmiei ! |
Operating System
mac
Programming Languages
python
CCXT Version
4.2.74
Description
Hi, when im using Kucoin web I can put a stop - limit order with a trigger condition (enter price, bigger than the current price) but using stop-limit in ccxt always ends buying/entering at the current/last price, how can I put an order with a trigger condition using ccxt?.
pic: stop - limit order with trigegr condition using kucoin web
Code
The text was updated successfully, but these errors were encountered: