Comments (4)
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.
Nah, the extra timestamp thing isn't a big problem. Excited for your future updates, thanks!
from ccxt.
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.
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)
- [Hyperliquid] Bad request on create_orders() with reduceOnly parameter HOT 2
- OrderBook count problems for C# HOT 3
- Support for CoinTR Pro
- CCXT own LiquidationPrice Calculator HOT 2
- How to use Bybit API native method get_risk_limit in CCXT context? HOT 1
- Kucoin: Invalid amount increment for createMarketOrderWithCost() HOT 1
- KrakenFutures: watch_orders() HOT 6
- A quick one to fix: Hardcoded BrokerId on Blofin prevents API transactions (Error code: 152011) HOT 4
- Create deposit address BingX HOT 2
- get leverage error HOT 2
- Error during starting WatchOrderBook c# HOT 7
- Exchange.Close does not complete. C# HOT 14
- js examples will not work HOT 6
- Kucoin Pro: watchMyTrades is leaking trades when getting new updates (+ fix) HOT 1
- Contract size in trade history HOT 8
- Bybit - marginMode key not defined in position response. HOT 5
- Okx - Fix WS orderbook limit HOT 1
- Temporally wrong balances fetched on OKX (now solved) HOT 1
- How to kill/unsubscribe all/all_by_id websocket connections for ws methods in ccxt.pro? HOT 2
- Bitget: WatchBalance error, C# HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccxt.