datacenter_datasdk_bin
Project description
datacenter_datasdk_bin
INSTALL
pip install datacenter-datasdk-bin
USAGE
from datacenter_datasdk_bin import get_price, auth
auth('xxx', 0, 'xxx','xxx')
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
columns: list, set the data columns of return, default None
limit: int, set the rows of return from start_date, default None
connect: taos connect object, default the connect object after 'auth()'
return
dataframe
auth()
authorization of api, and get the taos connect object
params
host: str
port: int
user: str
password: str
return
taos connect object
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
Built Distribution
Hashes for datacenter_datasdk_bin-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a3ed2226ce1e3a18ea49cb77cfca38216fdc7bc59eaf802ecb812c0b4ecdce |
|
MD5 | 407558db34604870333502b5b4da213f |
|
BLAKE2b-256 | 23326fab56957e5da6bddb3920a37ee6d22038a33a6cde5341b7d40bee02e51b |
Hashes for datacenter_datasdk_bin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3870aca9b9ea5b06a3223966fc7a0ceb66880268a4144715937084f1aa997e33 |
|
MD5 | 553caf481a27436142114d943a74f024 |
|
BLAKE2b-256 | ebcc3bbfad22c4186729a762bc4b2f7dbcdd9b59acbb8face05425c2e1d74535 |