-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
fetchOpenOrder not work for stopLoss order #24377
Comments
Hello @xuyangcn, What's the exchange being used? |
okx |
in okx.js , I can see response have order information, but after parseOrders, the ret is empty const data = this.safeList(response, 'data', []); const ret = this.parseOrders(data, market, since, limit, params); |
@xuyangcn Can you please post a verbose log? you can do
that will print the verbose request that you can post here |
fetch Request: handleRestResponse: |
@xuyangcn The output seems ok, which symbol are you providing? |
BLURUSDT |
@xuyangcn That format is incorrect, it should be |
Yes, I give BLUR/USDT, and internally, it translate to BLUR-USDT |
@xuyangcn But does it work now? |
No, not because of the symbol, from the response, you can see that okx already return the orders, I think, it is parseOrder problem |
it is still not working, it works on v1.xx, I just upgrade to 4.4.33 |
@xuyangcn Can you try without |
yes, if the since is 0, nothing return, |
@xuyangcn What if you don't provide |
without since, it will report error from okx |
@xuyangcn How are you calling it exactly? |
const orders = await exchangeClient.fetchOpenOrders(symbol= symbol,since=1,limit=20, params = { ordType: 'conditional', }) |
@xuyangcn This does not make sense because OKX does not even accept a since https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-list |
Yes, since and limit are implemented in ccxt side. filterByValueSinceLimit(array, field, value = undefined, since = undefined, limit = undefined, key = 'timestamp', tail = false) { |
@xuyangcn I know but you reported an issue coming from the API directly
|
const orders = await exchangeClient.fetchOpenOrders(symbol= symbol, limit=20,params = { ordType: 'conditional', }) But if I use below line |
without since, the url send to okx is wrong |
there are two bugs, I think,
|
@xuyangcn I think i can reproduce the issue when providing since=0 (I will take a look) but when I don't provide any since it works as expected, check this out:
|
try without since, with limit=20 |
yes, since = 0 is fixed |
@xuyangcn as you can see
|
my guess, you pass since = undefined, |
@xuyangcn Wait, there's no named params in JS, how are you doing |
it has named params in JS |
Operating System
Ubuntu
Programming Languages
JavaScript
CCXT Version
4.4.33
Description
I create stopLoss order, but could not fetch the open orders
Code
The text was updated successfully, but these errors were encountered: