I suspect you haven’t installed the package you intended to install. The documentation you linked to is apparently for the package listed on pypi as python-okx
, found here. I think you installed the package listed on PyPI as okx-trade
, found here.
Try uninstalling your okx-trade
and instead install python-okx
.