Рет қаралды 992
Easy debugging and error logging when developing trading bots in the OKX API in Python using Websocket. Catching websocket connection breaks and restoring the connection. Error handling from OKX API. This video is a continuation of the previous video about working with the Websocket OKX API in Python • OKX API Websocket + Py... .
Affilate code for registration on OKX
!!! Gives you -25% of commission
www.okx.cab/join/AZZRAELCODE
Websockets library for Python
pypi.org/project/websockets/
OKX Documentation
www.okx.com/docs-v5/en/#overv...
Logging in the Websockets library
websockets.readthedocs.io/en/...
OKH websocket error codes
www.okx.com/docs-v5/en/#error...
🤘 Timecodes
00:00 What is the video about?
01:03 Logging Websockets with the logging package
04:55 Connection breaks - catching and reconnecting
10:20 Errors and exceptions in data handlers
15:44 OKX API errors
.
.
.
#algotrading #okxapi #python