ehdtd · PyPI Skip to main content Switch to mobile version Warning Some features may not work without JavaScript.
Please try enabling it if you encounter problems. Search PyPI Search Help Docs Log in Register Help Docs Log in Register
Deutsch English español Esperanto français português (Brasil) Ελληνικά русский українська
עברית 中文 (简体) 中文 (繁體) 日本語 한국어 Search PyPI Search ehdtd 0.2.44 Ehdtd - cryptoCurrency
Exchange history data to database pip install ehdtd==0.2.44 Copy PIP instructions Description Metadata Release files
Release history Ehdtd - cryptoCurrency Exchange history data to database This class retrieves historical data from
exchanges and stores it in a database. Example: Install ```bash pip install ehdtd ``` Use ```python import time from
ehdtd import Ehdtd exchange = 'binance' symbol = 'BTC/USDT' interval = '1m' limit = 10 db_data = { 'db_type':
'postgresql', # postgresql, mysql 'db_name': 'ehdtd', 'db_user': 'ehdtd', 'db_pass': 'xxxxxxxxx', 'db_host':
'127.0.0.1', 'db_port': '5432' } fetch_data = [ { 'symbol': symbol, 'interval': interval } ] ehd = Ehdtd(exchange,
fetch_data, db_data) # Create an instance ehd.start() # Start fetching data time.sleep(900) # First time Wait for
available data, for the data to be updated, # you must wait between 90 minutes and 2.5 hours depending on the interval
for v in fetch_data: symbol = v['symbol'] interval = v['interval'] start_from = 0 until_to = None return_type = 'pandas'
data_db = ehd.get_data_from_db(symbol, interval, start_from, until_to, return_type) print(data_db)
print('=========================================================================') print('') time.sleep(1) ehd.stop() #
Stop fetching data ``` How It Works: For Binance: Try to retrieve data from a file. Check this link: Binance Public Data
If the file is not available, try to retrieve data from the API. Then get data from the WebSocket API using the Ccxw
class. Database Columns: open_time, open_date, open_price, close_time, close_date, close_price, low, high, volume,
exchange, symbol, interval, status, data Column data is not used, and column status can have three values:
'__NON_CHECK__', '__OK__', '__ERROR__'. If status == '__OK__', the file has consistent data. If status == '__ERROR__',
the file has inconsistent data. If status == '__NON_CHECK__', the file is not analyzed. Retrieving Data from Database:
Use the function ehd.get_data_from_db(symbol, interval, start_from, until_to, return_type): If return_type == 'pandas',
it returns a Pandas DataFrame. If return_type == 'list', it returns a list of dictionaries. View License Key dates PyPI
data Data sourced directly from PyPI's database. Released: Oct 10, 2026 Latest release 1 maintainer PyPI data Data
sourced directly from PyPI's database. rmalvarezkai Credits Author: Ricardo Marcelo Alvarez License expression MIT View
SPDX License List Requires Python <=3.14, >=3.13 Report project as malware Metadata Key dates PyPI data Data
sourced directly from PyPI's database. Released: Oct 10, 2026 Latest release 1 maintainer PyPI data Data sourced
directly from PyPI's database. rmalvarezkai Credits Author: Ricardo Marcelo Alvarez License expression MIT View SPDX
License List Requires Python <=3.14, >=3.13 Report project as malware Release files for ehdtd 0.2.44 For a
detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats
documentation. Source distribution (sdist) Source distribution for ehdtd 0.2.44 File Size Uploaded ehdtd-0.2.44.tar.gz
43.0 kB Oct 10, 2026 Details Built distribution (wheel) Table of built distributions (wheels) for ehdtd 0.2.44 File
Interpreter ABI Platform Reset ehdtd-0.2.44-py3-none-any.whl 53.2 kB Oct 10, 2026 Python 3 none any Details Total
release size: 96.2 kB Release files / ehdtd-0.2.44.tar.gz Download URL ehdtd-0.2.44.tar.gz Size 43.0 kB Tags Source
SHA-256 checksum How to use checksums 73ef046933ed4893554662e7923e31c1ac77524fc157facd8fa32f51e44f7cdd BLAKE2b-256
checksum How to use checksums b2032cac2c114c386161cd7194d3b7b68d90dc8ad9be0df679e7d61bd3191652 Upload date Oct 10, 2026
Uploaded using Trusted Publishing? What is trusted publishing? No Uploaded via twine/7.0.0 CPython/3.13.5 Release files
/ ehdtd-0.2.44-py3-none-any.whl Download URL ehdtd-0.2.44-py3-none-any.whl Size 53.2 kB Tags Python 3 SHA-256 checksum
How to use checksums 6f6e19db313c98685ccd4e5cbfe1f81d08edddd5137dd3a5598a81937c651d53 BLAKE2b-256 checksum How to use
checksums 9ef391467b1e3cc4d32858af2f440f3790683130a29e06683a8ce61049c85de6 Upload date Oct 10, 2026 Uploaded using
Trusted Publishing? What is trusted publishing? No Uploaded via twine/7.0.0 CPython/3.13.5 Release history Release
notifications | RSS feed This release 0.2.44 This release Oct 10, 2026 2 release files 0.2.43 Sep 29, 2026 2 release
files 0.2.42 Sep 28, 2026 2 release files 0.2.41 Jun 12, 2026 2 release files 0.2.39 Apr 29, 2026 2 release files 0.2.38
Mar 19, 2026 2 release files 0.2.37 Nov 13, 2025 2 release files 0.2.36 Jul 19, 2025 2 release files 0.2.35 Jul 19, 2025
2 release files 0.2.34 Jul 19, 2025 2 release files 0.2.32 Apr 9, 2025 2 release files 0.2.30 Jan 22, 2025 2 release
files 0.2.29 Jan 21, 2025 2 release files 0.2.28 Jan 20, 2025 2 release files 0.2.26 Jan 17, 2025 2 release files 0.2.25
Jan 14, 2025 2 release files 0.2.23 Jan 9, 2025 2 release files 0.2.21 Jan 6, 2025 2 release files 0.2.20 Dec 28, 2024 2
release files 0.2.19 Dec 28, 2024 2 release files 0.2.18 Dec 26, 2024 2 release files 0.2.14 Dec 24, 2024 2 release
files 0.2.12 Dec 24, 2024 2 release files 0.2.11 Dec 24, 2024 2 release files 0.2.10 Dec 24, 2024 2 release files 0.2.9
Dec 23, 2024 2 release files 0.2.8 Sep 26, 2024 2 release files 0.2.7 Sep 18, 2024 2 release files 0.2.5 May 14, 2024 2
release files 0.2.3 May 8, 2024 2 release files 0.2.2 May 8, 2024 2 release files 0.2.1 May 8, 2024 2 release files
0.2.0 Apr 12, 2024 2 release files PyPI Developed and maintained by the Python Software Foundation and Python community,
for the Python community. Status: all systems operational Donate today! Help Installing packages Uploading packages User
guide Project name retention FAQs About PyPI PyPI Blog Infrastructure dashboard Statistics Logos & trademarks Our
sponsors Contributing to PyPI Bugs and feedback Contribute on GitHub Translate PyPI Sponsor PyPI Development credits
Using PyPI Terms of Service Report security issue Code of conduct Privacy Notice Acceptable Use Policy Switch to desktop
version 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 "PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software
Foundation. © 2026 Python Software Foundation Site map Deployed from f43a0f7
