(Get Binance announcement on time)
We have designed a web socket so that users can receive and process exchange announcements without delay
Join to Telegram Channel.
ws://coinixy.com:8080/ws
After connecting to WebSocket, you should wait for new announcements from exchanges
Wait for other exchanges
{'status': 'ok'}
{
"id": "b76eb4e952a94959afb5964c32ddbb7a",
"url": "https://www.binance.com/en/support/announcement/b76eb4e952a94959afb5964c32ddbb7a",
"title": "Binance Will List Lido DAO (LDO)",
"serverTime": 1652079437647,
"exchange": "Binance"
}
For example, you can run Python code and process incoming messages according to the Json instance.
pip install websocket-client
python coinixyws.py
Receive new announcement event:
def on_message(ws, message):
# Message example
# message='{
# "id": "b76eb4e952a94959afb5964c32ddbb7a",
# "url": "https://www.binance.com/en/support/announcement/b76eb4e952a94959afb5964c32ddbb7a",
# "title": "Binance Will List Lido DAO (LDO)",
# "serverTime": 1652079437647,
# "exchange": "Binance"
#}'
try:
data = json.loads(message)
print(data)
except Exception as ex:
print(ex.__str__())