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.

Kucoin2 fetchAccounts() does not return

See original GitHub issue

The function does not parse the response properly.

Function returns only two objects but the actual requests has around 70 objects.

Reponse below:

{ trade:
   { accountId: 'trade',
     type: 'trade',
     currency: undefined,
     info:
      { balance: '0',
        available: '0',
        holds: '0',
        currency: 'USDT',
        id: '',
        type: 'trade' } },
  main:
   { accountId: 'main',
     type: 'main',
     currency: undefined,
     info:
      { balance: '0',
        available: '0',
        holds: '0',
        currency: 'VET',
        id: '',
        type: 'main' } } }

Actual response is the same but much much longer.

  • OS: Ubuntu
  • Programming Language version: NodeJS Latest
  • CCXT version: Latest
  • Exchange: Kucoin2
  • Method: fetchAccounts()

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
wybitnygraczcommented, Feb 18, 2019

Ok, Thanks. #4684 helped me.

1reaction
frosty00commented, Feb 18, 2019

Yeah it is because of the dict / list inconsitancy, will fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - fetch_balance method in ccxt won't return all assets
It seems like fetchBalance only returns one currency at a time. To get USDT as the asset to be returned, you must pass...
Read more >
Create an Apex REST service that returns an account and it's ...
Executing the 'AccountManager' method failed. Either the service isn't configured with the correct urlMapping, is not global, does not have the ...
Read more >
Apex method does not return result as expected
So after a lot of debugging i found solution! Here is my code that works as expected @AuraEnabled public static List<Event> ...
Read more >
SOQL and SOSL Reference - Salesforce Implementation guides
Note: SOQL doesn't support all advanced features of the SQL SELECT command. ... If WITH DATA CATEGORY is specified, the query() only returns...
Read more >
Unable to validate AccountManager APEX Web Service ...
The result must be an account (its how I passed) as Lei Shi pointed it out; Be very very careful with no records...
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