Comments (6)
Fixing this already )
from ccxt.
Ok, I think I found the source of the bug with liqui. It returns 0.0 in JSON.
https://api.liqui.io/api/3/ticker/sbd_btc
{
"sbd_btc":{
"high":0.00114,
"low":0.00114,
"avg":0.00114,
"vol":0.0,
"vol_cur":0.0,
"last":0.00114,
"buy":0.0,
"sell":0.0,
"updated":1499634319
}
}
Do you think I should convert those zeroes to NaNs explicitly in such cases ?
from ccxt.
Yeah, 0 is a number. What you're getting back shouldn't be a number since it doesn't exist.
from ccxt.
If I'm searching for a max, NaNs are usually ignored...0 less so.
Or finding a mean, summing NaNs you get a NaN, clear indicator something went wrong. With 0 it fails silently
from ccxt.
Got it, will upload the fix asap.
from ccxt.
Fixed it, should be NaN (None, undefined, null) now.
from ccxt.
Related Issues (20)
- Coinbase advanced trader -
- bitget ) how to change margin mode from cross to isolated in future coin? HOT 6
- Orderbook data from Deribit delayed when using many subscriptions HOT 4
- Bitget watch_my_trades with no symbol specified HOT 3
- How to reset all CCXT variables HOT 3
- Bybit watchTicker returning undefined on many values. HOT 3
- Bybit handle_ticker bug: process the delta data HOT 3
- Order quantity on bitmex HOT 5
- Bitget X CCXT exclusive trading campaign
- Please add stock and crypto to trade in alpaca HOT 3
- safeBalance uses floats instead of strings - precision loss HOT 4
- Bitget - fetch_open_orders() doesn't work for SL/TP orders HOT 5
- Bitget) how to make Trigger order with Stop Loss? HOT 1
- Bitget fetchOHLCV 1d "until" doesn't work in new version HOT 1
- Setting leverage ratio and position by position mode is not effective in perpetual contract ordering requests HOT 2
- bybit fetchClosedOrder cannot find only by 'id', different with SPEC HOT 4
- C# FetchBalance for Gate raise error HOT 3
- Bingx Failed to establish a new connection: [Errno 101] Network is unreachable HOT 4
- Can we support deepcoin cryptocurrency exchange market?
- bitget fetchMyTrades Error in obtaining historical orders HOT 5
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.