Skip to main content

Order Operation

Project description

### python 函数打包

### 打包命令

python setup.py sdist

### 上传

twine upload dist/*

### 打包完毕, dist文件夹,文件夹中有*.tar.gz压缩包, copy 到 “干净” 目录

### 解压缩, 进入到 setup.py 目录, 执行下面的命令, 模块将会被安装到解释器对应的Lib/site-packages目录下

### 安装模块命令 python setup.py install

### 安装完成之后即可测试

###参考例子, https://www.jb51.net/article/190597.htm

###安装命令:

pip install rest_zerocap_client -i https://www.pypi.org/simple/

demo:

from rest_client.zerpcap_rest_client import ZerocapRestClient api_key = “**” secret = “**” client = ZerocapRestClient(api_key, secret)

# 下单 result = client.create_order(symbol, side, type, amount, price, client_order_id, note, third_identity_id)

# 查询特定唯一ID订单详情 result = client.fetch_order(id, note, third_identity_id)

# 批量查询订单的详情 result = client.fetch_orders(symbol, since, limit, note, third_identity_id)

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

rest_zerocap_client-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file rest_zerocap_client-0.0.2.tar.gz.

File metadata

  • Download URL: rest_zerocap_client-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.4

File hashes

Hashes for rest_zerocap_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 92fcb95fa5c9c2e33bf936efe1b36b3ae6ea4408bddf104a0a02d89e222526d1
MD5 e663ec50f229e986af158f38e30eff1a
BLAKE2b-256 d00b96d1284890515f0cfb3aa19eac6bbce8b705e1e8b9269853fc1c64a5ee6b

See more details on using hashes here.

Supported by

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