-
-
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
Seems that lumens are not recognised and fall back to undefined #367
Comments
Hi! Thanks for reporting, i'll take a look into it and will get back to you asap! |
This issue should be fixed in version 1.9.224+. Can you please update the library and retry the same code again? We will be thankful if you report back whether it works for you or not (it should). Thx, standing by for your reply. |
Thanks for your really fast reaction. Sadly I still have an undefined symbol on the following transaction
I have upgraded to 1.9.227
|
You're looking at unparsed 'info' substructure, you should look into fetchMyTrades parsed return for symbol should be there. Try this: "use strict";
const ccxt = require ('ccxt')
(async function main () {
const kraken = new ccxt.kraken ({
apiKey: "YOUR_API_KEY",
secret: "YOUR_SECRET",
})
const trades = await kraken.fetchMyTrades ()
trades.forEach (trade => console.log (trade.id, trade.datetime, trade.symbol))
}) () |
this is what I do:
the result is still undefined: |
Try this:
Does it output undefined symbols? If it does, we will debug it further. |
I don't see how this should be different but here we go:
|
or results in: Hmmm I am pretty sure this pair is not traded anymore. But anyhow for historic P/L claculations I would prefer not to be forced using the unparsed info field. |
The problem is indeed caused by the Kraken not returning market info for XLM/EUR anymore. We can't add it to the list of active markets, because users will be confused and will try trading it. I will add a workaround for that, so that it will be defined in trades and orders. |
@KIC ok, can you please update to 1.9.228+ and try the same code again? XLM/EUR should be recognized and parsed correctly now. Let us know if it works for you or not. Thx! |
yes thats it! thx! |
I use kraken exchange and I query the ordery by using
fetchMyTrades
. It seems that Lumens (XLM) are not supported by the generalized API.The text was updated successfully, but these errors were encountered: