Giter VIP home page Giter VIP logo

Comments (4)

kroitor avatar kroitor commented on May 18, 2024

Would it be possible to get a the consistent format when getting the result of unified methods such as
fetchOrderBook (symbol)

They're unified, but have extra fields if provided by market API. Do you experience any difficulty with a third element being present in each order (consider carefully)? If you confirm, we will then remove that element from there. And if you find any inconsistencies with one market or another, we will be thankful, if you list them here or by opening another issue. If you want us to remove timestamps from the orderbook, we will do that for Kraken and all other exchanges.

or
fetchBalance ()

Sure, we're actually working on this right now, along with many other cool new features.

At the moment a few orderbooks still include timestamps (e.g. from kraken) with each order, and the result of calling fetchBalance() is obviously very different between exchanges; I'm guessing it would be a big task to change this?

We've anticipated your request ) And we are already implementing this, balance unification will be ready very soon ) Will let you know. Thanks for your feedback!

from ccxt.

poogooflupduck avatar poogooflupduck commented on May 18, 2024

Nah, the extra timestamp thing isn't a big problem. Excited for your future updates, thanks!

from ccxt.

kroitor avatar kroitor commented on May 18, 2024

The work on this issue has seen a good progress in past few days, we are in the middle of reworking the unified balances now, half of markets have been unified already. The other half is coming soon, will update the docs and let you know as soon as possible! Keep in touch! )

from ccxt.

kroitor avatar kroitor commented on May 18, 2024

Ok, we have finished unifying balances, and now all markets return a common balance structure, as described in the Manual:

{
    'info': { ... },     // the original untouched non-parsed reply with details

    'BTC': {             // string, three-letter currency code, uppercase
        'free': 321.00   // float, money available for trading
        'used': 234.00,  // float, money on hold, locked, frozen or pending
        'total': 555.00, // float, total balance (free + used)
    },

    'USD': {
        'free': 123.00   // ...
        'used': 456.00,  
        'total': 579.00, 
    },

    ...
}

Therefore I am closing this, if you experience any difficulties with balances with any particular market, feel free to open a new issue. Thanks for your help!

from ccxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.