Skip to main content

华创证券VitaX Python 工具套件

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

环境准备

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

SDK 获取和安装

使用 pip 安装(推荐)

pip install datavita-python-sdk # 安装阿里云 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.get_dataset_by_tagcode(tag_code='xxxx')
print(df)

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

Metadata

Release files for datavita-python-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for datavita-python-sdk 0.1.0
File Interpreter ABI Platform
datavita_python_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / datavita_python_sdk-0.1.0-py3-none-any.whl

Download URL datavita_python_sdk-0.1.0-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8be41d4bda9dbcda2421a047ea74aa19671c13210c59eeff3b4504c7501793f5
BLAKE2b-256 checksum
How to use checksums
46e2bfb911959b9c5f85ac8451a76ae5009d06be6a56d417e8d8dd9597f9b00e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.9

1 release file

0.0.7

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page