datacenter_datasdk
Project description
datacenter_datasdk
INSTALL
step.1
pip install datacenter-datasdk
step.2 set environment variable: TD_TOKEN, TD_URL(ask for admin)
USAGE
from datacenter_datasdk import get_price
data = get_price('600033.XSHG', 'cn', 'm1', start_date='2010-01-01', end_date='2021-01-01')
API
get_price()
get kline data, include daily, minute and tick
params
code: str or list, single code or multi code as list
region: str, 'cn' or 'us'
frequency: str, represent frequency of kline, 'd1', 'm1', 'm5', 'm15', 'm30', 'm60' and 'tick'(only in cn)
start_date, datetime.datetime or datetime.date or str, start time of data, default '2005-01-01'
end_date, datetime.datetime or datetime.date or str, end time of data, default 0 o'clock of today
return
dataframe
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for datacenter_datasdk-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078ccc1fed276caff1f38604c227c11f8a259f148171ee9bf415a450f7c592e4 |
|
MD5 | c37c15bc0cee93e7bc7ec6a01ead8790 |
|
BLAKE2b-256 | e0680e77cb12aca0b700775d6a39e3d0761adfff0c89c2f0a49e0090b44f140f |