Skip to main content

Python SDK for OKX async

Project description

Overview

This is an unofficial Python wrapper for the OKX exchange v5 API

If you came here looking to purchase cryptocurrencies from the OKX exchange, please go here.

Source code

https://github.com/okxapi/python-okx

OKX API Telegram

https://t.me/OKXAPI

API trading tutorials

Make sure you update often and check the Changelog for new features and bug fixes.

Features

  • Implementation of all Rest API endpoints.
  • Private and Public Websocket implementation
  • Testnet support
  • Websocket handling with reconnection and multiplexed connections

Quick start

Prerequisites

python version:>=3.9

WebSocketAPI: websockets package advise version 6.0

Step 1: register an account on OKX and apply for an API key

Step 2: install python-okx

pip install python-okx

Step 3: Run examples

  • Fill in API credentials in the corresponding examples
api_key = ""
secret_key = ""
passphrase = ""

Note

  • To learn more about OKX API, visit official OKX API documentation

  • If you face any questions when using WebSocketAPI,you can consult the following links

    • asynciowebsockets document/github

      https://docs.python.org/3/library/asyncio-dev.html
      https://websockets.readthedocs.io/en/stable/intro.html
      https://github.com/aaugustin/websockets
      
    • About code=1006

      https://github.com/Rapptz/discord.py/issues/1996
      https://github.com/aaugustin/websockets/issues/587
      

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-okx-async-django-0.2.10.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

python_okx_async_django-0.2.10-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

Details for the file python-okx-async-django-0.2.10.tar.gz.

File metadata

File hashes

Hashes for python-okx-async-django-0.2.10.tar.gz
Algorithm Hash digest
SHA256 b29df8c2ab80f1619b87d39f4c7a442330cb83ad24470a080122652b3d50a437
MD5 2cff3b3d582a4f880a5f4fdd3b7dea56
BLAKE2b-256 61acbb557881dd369a75085fe0db32537f541c6dfd54d7c599ee9a16f205be48

See more details on using hashes here.

File details

Details for the file python_okx_async_django-0.2.10-py3-none-any.whl.

File metadata

File hashes

Hashes for python_okx_async_django-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a4c482c4ada0132bd9a5d19e15f5a81618d69f0e49d5647190a43849c90804
MD5 23beec5f500cfcfae22ea285f1f93107
BLAKE2b-256 fb6401d535ce192c355ecb60f5e567b1be63522b077761061ac219a5c4df7d7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page