OKEX数字货币自动交易python语言SDK

Overview

okex-py

OKEx数字货币自动交易python语言SDK (非官方)
OKEx Cryptocurrency Exchange python SDK (Unofficial)

本项目基于V5 API

使用例子 Example

import okex.v5.account_api as account
import okex.v5.market_api as market
result = accountAPI.get_positions()
# print my positions
print(result)

API文档

施工中

安装 Installation

  1. Clone the repository
git clone https://github.com/quantmew/okex-py.git
  1. Install the package
cd okex-py
pip install .

免责声明 Disclaimers

API接口尚不稳定
API is not yet stable
本项目不对软件运行的行为做任何保证,对于因使用本软件产生的损失均不承担任何责任。请充分测试软件后再酌情使用。
This project does not guarantee the behavior of the software and is not responsible for any damages arising from the use of the software. Please test the software sufficiently before using it.

捐助 Donation

如果您觉得这个项目有价值的话,可以通过捐助帮助我们更好地维护这个项目。
If you think this project is valuable, you can donate to us to better maintain this project.
ETH Address: 0x4E59baf24bB6e7E8b935A32B33b6E6b8Abd67a2a

You might also like...
Comments
  • Wrong

    Wrong "API_URL"?

    Should API_URL in const.py be changed to okex.win instead of okex.com ?

    I will get HTTPSConnectionPool(host='www.okex.com', port=443) when using the latter address.

    opened by zdhNarsil 2
  • 无法导入TypeAlias

    无法导入TypeAlias

    无法导入TypeAlias

    # python3 example_v5.py 
    Traceback (most recent call last):
      File "example_v5.py", line 14, in <module>
        import okex.v5.account_api as account
      File "/usr/local/lib/python3.8/dist-packages/okex/v5/account_api.py", line 10, in <module>
        from .ccytype import CcyType
      File "/usr/local/lib/python3.8/dist-packages/okex/v5/ccytype.py", line 3, in <module>
        from typing import TypeAlias, Union
    ImportError: cannot import name 'TypeAlias' from 'typing' (/usr/lib/python3.8/typing.py)
    

    已经安装这个包了:

    # pip3 list
    Package                Version             
    ---------------------- --------------------          
    typing                 3.7.4.3     
    

    要怎么解决呢?

    opened by hyanx 1
Owner
null