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.

Not the same results on 2 different systems

See original GitHub issue

***Config 1

  • OS: Windows 10
  • Programming Language version: Python 3.7.2
  • CCXT version: last
  • Exchange: kucoin2
  • Method: fetchAccounts

***Config 2

  • OS: Raspbian 4.14
  • Programming Language version: Python 3.5.3
  • CCXT version: last
  • Exchange: kucoin2
  • Method: fetchAccounts

I have some issues to use my code which works great on “Config1” but not on “Config2”. The main issue is some calls does not return the same.

For example

account1=Connect1.fetchAccounts({'currency':Curr1}) print (account1)

on Config1 the print gives {'trade': {'accountId': 'trade', 'type': 'trade', 'currency': None, 'info': {'balance': '0', 'available': '--------', 'holds': '0', 'currency': 'DACC', 'id': '-------------------', 'type': 'trade'}}, 'main': {'accountId': 'main', 'type': 'main', 'currency': None, 'info': {'balance': '0', 'available': '------', 'holds': '0', 'currency': 'ZPT', 'id': '---------------', 'type': 'main'}}}

on Config2 i have [{'id': '-------------------------', 'info': {'available': --------------', 'holds': '0', 'balance': '----------', 'currency': 'LOKI', 'id': '-----------', 'type': 'trade'}, 'type': 'trade', 'currency': 'LOKI'}, {'id': '-----------', 'info': {'available': '------', 'holds': '0', 'balance': '0', 'currency': 'LOKI', 'id': '--------', 'type': 'main'}, 'type': 'main', 'currency': 'LOKI'}]

So i have a dict on Config1, a list on Config2 with different constructions. I’m a newbie in Python and Linux and i’m wondering where it comes from.

Different version of Python ? Different environment ?

Thanks for help,

Romain

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RomainBlindycommented, Mar 4, 2019

Thanks a lot, it works. I definitively have a closer attention to the versions i use. Have a good day

1reaction
kroitorcommented, Mar 4, 2019

These results clearly show that you have different versions of CCXT, and the change was in between, and it kinda answers the question. In other words, you can’t compare two different versions for an aspect of functionality (accounts) that isn’t completely unified or documented in the Manual yet. It is a work in progress. The version 1.18.323 (your output with config2) is the format we will adopt for the future, most likely. Let us know if that doesn’t resolve the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Einstein's Parable of Quantum Insanity - Scientific American
“Insanity is doing the same thing over and over and expecting different results.” That witticism—I'll call it “Einstein Insanity”—is usually ...
Read more >
Insanity Is Doing the Same Thing Over and Over Again and ...
But another remarks, “Insanity is doing the same thing over and over again and expecting different results.” The second earliest strong ...
Read more >
Identifying Potential Reasons for Inconsistent Experiment ...
There are two main reasons your results may not be consistent: error and uncontrolled conditions. The good news is that once you learn...
Read more >
Why are Google results different from different computers ...
It's quite common. Many factors make up the difference in Google results between different computers. Google terms this as “personalized results.” All ...
Read more >
What is a Race Condition? - TechTarget
A race condition is an undesirable situation that occurs when a device or system attempts to perform two or more operations at the...
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