Comments (11)
What are you asking? The method works fine for me
Python v3.9.6
CCXT v4.3.29
binance.watchTicker(BTC/USDT)
{'ask': 69522.55,
'askVolume': 0.00583,
'average': 69501.945,
'baseVolume': 273.02608,
'bid': 69522.49,
'bidVolume': 0.00403,
'change': 45.67,
'close': 69524.78,
'datetime': '2024-05-23T04:58:03.552Z',
'high': 74739.0,
'info': {'A': '0.00583000',
'B': '0.00403000',
'C': 1716440283552,
'E': 1716440283553,
'F': 1461264,
'L': 1547582,
'O': 1716353883552,
'P': '0.066',
'Q': '0.00014000',
'a': '69522.55000000',
'b': '69522.49000000',
'c': '69524.78000000',
'e': '24hrTicker',
'h': '74739.00000000',
'l': '62098.00000000',
'n': 86319,
'o': '69479.11000000',
'p': '45.67000000',
'q': '18992345.03476140',
's': 'BTCUSDT',
'v': '273.02608000',
'w': '69562.38405782',
'x': '69479.11000000'},
'last': 69524.78,
'low': 62098.0,
'open': 69479.11,
'percentage': 0.066,
'previousClose': 69479.11,
'quoteVolume': 18992345.0347614,
'symbol': 'BTC/USDT',
'timestamp': 1716440283552,
'vwap': 69562.38405782}
from ccxt.
你问的是什么?这个方法对我来说很有效。
Python v3.9.6 CCXT v4.3.29
binance.watchTicker(BTC/USDT)
{'ask': 69522.55, 'askVolume': 0.00583, 'average': 69501.945, 'baseVolume': 273.02608, 'bid': 69522.49, 'bidVolume': 0.00403, 'change': 45.67, 'close': 69524.78, 'datetime': '2024-05-23T04:58:03.552Z', 'high': 74739.0, 'info': {'A': '0.00583000', 'B': '0.00403000', 'C': 1716440283552, 'E': 1716440283553, 'F': 1461264, 'L': 1547582, 'O': 1716353883552, 'P': '0.066', 'Q': '0.00014000', 'a': '69522.55000000', 'b': '69522.49000000', 'c': '69524.78000000', 'e': '24hrTicker', 'h': '74739.00000000', 'l': '62098.00000000', 'n': 86319, 'o': '69479.11000000', 'p': '45.67000000', 'q': '18992345.03476140', 's': 'BTCUSDT', 'v': '273.02608000', 'w': '69562.38405782', 'x': '69479.11000000'}, 'last': 69524.78, 'low': 62098.0, 'open': 69479.11, 'percentage': 0.066, 'previousClose': 69479.11, 'quoteVolume': 18992345.0347614, 'symbol': 'BTC/USDT', 'timestamp': 1716440283552, 'vwap': 69562.38405782}
The response sometimes has an None value
{"symbol": null, "timestamp": 1716431646502, "datetime": "2024-05-23T02:34:06.502Z", "high": null, "low": null, "bid": null, "bidVolume": null, "ask": null, "askVolume": null, "vwap": null, "open": null, "close": null, "last": null, "previousClose": null, "change": null, "percentage": null, "average": null, "baseVolume": null, "quoteVolume": null, "info": {"result": null, "id": 1}}
from ccxt.
The response sometimes has an None value
Can you explain how to reproduce this error? I'm not receiving it
from ccxt.
This problem will occur if you subscribe for a long time
from ccxt.
This problem will occur if you subscribe for a long time
can you please set verbose
to true
for your exchange object and share the output of that
from ccxt.
@yyqiekenao as commented by @samgermain it would be ideal if you try to enable verbose mode and provide us what raw-data is coming in which causes those nulled valued.
from ccxt.
@yyqiekenao as commented by @samgermain it would be ideal if you try to enable verbose mode and provide us what raw-data is coming in which causes those nulled valued.
It's difficult to reproduce, but the log output does contain None.
from ccxt.
This problem will occur if you subscribe for a long time
can you please set
verbose
totrue
for your exchange object and share the output of that
2024-05-27T07:06:35.437Z connecting to wss://stream.binance.com:9443/ws/0 with timeout 10000 ms
2024-05-27T07:06:36.062Z connected
2024-05-27T07:06:36.062Z ping loop
2024-05-27T07:06:36.063Z sending {'method': 'SUBSCRIBE', 'params': ['ldousdt@ticker'], 'id': 1}
2024-05-27T07:06:36.303Z pong WSMessage(type=<WSMsgType.PONG: 10>, data=bytearray(b''), extra='')
2024-05-27T07:06:36.303Z message {"result":null,"id":1}
from ccxt.
@yyqiekenao This message is expected and is received every time, so I don't think it's causing the crash
2024-05-27T08:13:08.302Z onMessage { result: null, id: 1 }
from ccxt.
@yyqiekenao此消息是预期的,并且每次都会收到,因此我认为它不是导致崩溃的原因
2024-05-27T08:13:08.302Z onMessage {结果:null,id:1}
tks
from ccxt.
@yyqiekenao it would be good if you somehow log the incoming raw data, and whenever that error happens, paste here the related last part of log, it would help us to undersatnd and fix it.
from ccxt.
Related Issues (20)
- bitget .markets doesn't include margin markets HOT 1
- Error: self is not defined in Deno HOT 4
- Bitmart bid or ask getting stuck
- okx watchPositions extra parameters not working HOT 1
- hyperliquid create_order params are being ignored HOT 2
- binance fetch_open_interest_history params['paginate'] is overriden to False HOT 1
- kucoinfutures fetch_my_trades only returns 50 trades regardless of limit or pagination attempts HOT 1
- Bitmart - uid should be renamed to memo HOT 3
- How to place a spot marker order using base currency amount for Gate? HOT 3
- how log all ccxt calls? HOT 1
- ccxt.pro watch_ohlcv for multiple symbols from binance futures HOT 2
- CurrencyCom OHLCV fetch returning empty values HOT 1
- Biance USA, error on startup HOT 5
- Coinbase watch_order_book not returning the correct one if there are multiple streams running HOT 6
- Memory Leaks in PHP HOT 12
- Docs: clarify difference between coinbase and coinbaseexchange
- fetch_ohlcv() on Binance returns 18 candles instead of 1000 HOT 3
- Document how to instantiate exchanges
- Docs: sort class methods somehow
- Note at the top of each generated file that it's generated and what the source is, so contributors don't waste time editing them HOT 1
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.