Skip to main content

DataVita Open Python SDK

Project description

华创证券VitaX Python 工具套件

欢迎使用华创证券开发者工具套件(SDK)。

环境准备

要使用VitaX Python SDK ,您需要联系华创证券金融科技部工作人员申请获取 Access Key IDAccess Key Secret

SDK 获取和安装

使用 pip 安装(推荐)

pip install datavita-open-python-sdk # 安装华创DataVita开放Python SDK

开始调用

以下这个代码示例向您展示了调用阿里云 Python SDK 的3个主要步骤:

  1. 创建 Client 实例
  2. 获取所需数据
  3. 发起请求并处理异常
# -*- coding: utf8 -*-
from datavita.andes.andes_data import AndesData
from datavita.core.auth import Auth

# 创建 AcsClient 实例
access_key_id = "1"
access_secret = "1"
auth = Auth(access_key_id, access_secret)
ad = AndesData(auth=auth, timeout=1, max_retries=1)
df = ad.ind_data_list(ind_code='xxxx')
print(df)

在创建 Auth 实例时,您需要填写 2 个参数:Access Key ID 和 Access Secret。Access Key ID 和 Access Secret 申请获取;

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

datavita_open_python_sdk-0.0.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file datavita_open_python_sdk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: datavita_open_python_sdk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4

File hashes

Hashes for datavita_open_python_sdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 57620e35791ae2b7e30af9a83b100d4beebe5835de6da6699c11bdc4e0e76b09
MD5 89f3a0dcea5bfb5eba921d1977b37149
BLAKE2b-256 039dd6a39443004feb524d9dee44614d413f1e39c0901eec3a20884787747b58

See more details on using hashes here.

Supported by

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