Skip to main content

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', 'tick'(only in cn), 'd1_post'(only in cn), 'd1_raw'(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

datacenter_datasdk_bin-0.1.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datacenter_datasdk_bin-0.1.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file datacenter_datasdk_bin-0.1.5.tar.gz.

File metadata

  • Download URL: datacenter_datasdk_bin-0.1.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.8 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9

File hashes

Hashes for datacenter_datasdk_bin-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3fa45af651c3facc4a3a0ae520c3b62a830093e1becb3dbd9eb4aed5cc7e05a3
MD5 1cfcebb64ffc03a20f149504a823ea80
BLAKE2b-256 dbefacc5bd613894f9812344f269d346b634a2dc6b62d605e261660a53f5c4a1

See more details on using hashes here.

File details

Details for the file datacenter_datasdk_bin-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: datacenter_datasdk_bin-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.8 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9

File hashes

Hashes for datacenter_datasdk_bin-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a9b651f45049b9a5cf7e4c7e8d7c8c041d8ec47562e7f4e63d6e2811016601a8
MD5 def53329dc49eb77b767436cc27e50e9
BLAKE2b-256 06e4e2becdb6a6ed84f9161c1c88c74ba7c8e6f25447bc298fcae613904d92e0

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