cryptohftdata


Namecryptohftdata JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryPython SDK for accessing cryptocurrency high-frequency trading data
upload_time2025-07-17 11:25:51
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords cryptocurrency trading market-data api hft
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CryptoHFTData Python SDK

[![PyPI version](https://badge.fury.io/py/cryptohftdata.svg)](https://badge.fury.io/py/cryptohftdata)
[![Python versions](https://img.shields.io/pypi/pyversions/cryptohftdata.svg)](https://pypi.org/project/cryptohftdata/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Documentation Status](https://readthedocs.org/projects/cryptohftdata/badge/?version=latest)](https://cryptohftdata.readthedocs.io/en/latest/?badge=latest)

A Python SDK for accessing cryptocurrency high-frequency trading data with a simple and intuitive API.

## Installation

```bash
pip install cryptohftdata
```

## Quick Start

```python
import cryptohftdata as chd

# Get kline/candlestick data
klines = chd.get_klines("BTCUSDT", chd.exchanges.BINANCE_FUTURES, "2025-01-01", "2025-02-01")

# Get orderbook data
orderbook = chd.get_orderbook("ETHUSDT", chd.exchanges.BYBIT_SPOT, "2025-01-01", "2025-02-01")

# Get trade data
trades = chd.get_trades("BTCUSDT", chd.exchanges.BINANCE_SPOT, "2025-01-01", "2025-01-02")

# All methods return pandas DataFrames ready for analysis
print(klines.head())
print(f"Average price: ${klines['close'].mean():.2f}")
```

## Features

- **Simple API**: Clean and intuitive interface for accessing cryptocurrency market data
- **Direct pandas Integration**: All methods return pandas DataFrames ready for analysis
- **Parquet Support**: Efficient data transfer using parquet files for large datasets
- **Multiple Exchanges**: Support for Binance, Bybit, Kraken and OKX (both spot and futures markets)
- **Multiple Data Types**: Access to klines, orderbook, trades, ticker, mark price, funding rates, open interest, and liquidations data
- **High Performance**: Optimized for handling large datasets efficiently with pandas and pyarrow
- **Type Safety**: Full type hints for better IDE support and code quality
- **Async Support**: Both synchronous and asynchronous APIs available
- **Flexible Date Handling**: Support for various date formats and timezones

## Supported Exchanges

- Binance (Spot & Futures)
- Bybit (Spot & Futures)
- Kraken (Spot & Derivatives)
- OKX (Spot & Futures)

_More exchanges coming soon..._

## Documentation

Full documentation is available at [cryptohftdata.com/docs](https://cryptohftdata.com/docs)

## Examples

See the [examples](examples/) directory for more detailed usage examples.

## Development

### Setting up the development environment

```bash
git clone https://github.com/cryptohftdata/sdk.git
cd sdk/python
pip install -e ".[dev]"
```

### Running tests

To run the test suite, navigate to the `sdk/python` directory and use one of the following commands:

Using `pytest` (recommended):

```bash
pytest
```

This command will automatically use the configurations specified in `pyproject.toml`, including test paths and coverage options.

If you need to target a specific test file or directory, you can do so, but be mindful of the `addopts` in `pyproject.toml`:

```bash
pytest tests/test_client.py
```

If you don't have `pytest` or prefer to use the built-in `unittest` module:

```bash
python -m unittest discover tests
```

Make sure you have an active virtual environment with development dependencies installed. Some tests might require a `CRYPTOHFTDATA_API_KEY` environment variable to be set for tests that interact with the live API.

### Code formatting

```bash
black cryptohftdata tests
isort cryptohftdata tests
```

### Type checking

```bash
mypy cryptohftdata
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support

- Documentation: [cryptohftdata.com/docs](https://cryptohftdata.com/docs)
- Issues: [GitHub Issues](https://github.com/cryptohftdata/sdk/issues)
- Email: support@cryptohftdata.com

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cryptohftdata",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "cryptocurrency, trading, market-data, api, hft",
    "author": null,
    "author_email": "CryptoHFTData Team <support@cryptohftdata.com>",
    "download_url": "https://files.pythonhosted.org/packages/21/71/e8226639be5ae3ba59791cc571dd79d98bbe1a4cbf189c570b9874103c81/cryptohftdata-0.1.4.tar.gz",
    "platform": null,
    "description": "# CryptoHFTData Python SDK\n\n[![PyPI version](https://badge.fury.io/py/cryptohftdata.svg)](https://badge.fury.io/py/cryptohftdata)\n[![Python versions](https://img.shields.io/pypi/pyversions/cryptohftdata.svg)](https://pypi.org/project/cryptohftdata/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Documentation Status](https://readthedocs.org/projects/cryptohftdata/badge/?version=latest)](https://cryptohftdata.readthedocs.io/en/latest/?badge=latest)\n\nA Python SDK for accessing cryptocurrency high-frequency trading data with a simple and intuitive API.\n\n## Installation\n\n```bash\npip install cryptohftdata\n```\n\n## Quick Start\n\n```python\nimport cryptohftdata as chd\n\n# Get kline/candlestick data\nklines = chd.get_klines(\"BTCUSDT\", chd.exchanges.BINANCE_FUTURES, \"2025-01-01\", \"2025-02-01\")\n\n# Get orderbook data\norderbook = chd.get_orderbook(\"ETHUSDT\", chd.exchanges.BYBIT_SPOT, \"2025-01-01\", \"2025-02-01\")\n\n# Get trade data\ntrades = chd.get_trades(\"BTCUSDT\", chd.exchanges.BINANCE_SPOT, \"2025-01-01\", \"2025-01-02\")\n\n# All methods return pandas DataFrames ready for analysis\nprint(klines.head())\nprint(f\"Average price: ${klines['close'].mean():.2f}\")\n```\n\n## Features\n\n- **Simple API**: Clean and intuitive interface for accessing cryptocurrency market data\n- **Direct pandas Integration**: All methods return pandas DataFrames ready for analysis\n- **Parquet Support**: Efficient data transfer using parquet files for large datasets\n- **Multiple Exchanges**: Support for Binance, Bybit, Kraken and OKX (both spot and futures markets)\n- **Multiple Data Types**: Access to klines, orderbook, trades, ticker, mark price, funding rates, open interest, and liquidations data\n- **High Performance**: Optimized for handling large datasets efficiently with pandas and pyarrow\n- **Type Safety**: Full type hints for better IDE support and code quality\n- **Async Support**: Both synchronous and asynchronous APIs available\n- **Flexible Date Handling**: Support for various date formats and timezones\n\n## Supported Exchanges\n\n- Binance (Spot & Futures)\n- Bybit (Spot & Futures)\n- Kraken (Spot & Derivatives)\n- OKX (Spot & Futures)\n\n_More exchanges coming soon..._\n\n## Documentation\n\nFull documentation is available at [cryptohftdata.com/docs](https://cryptohftdata.com/docs)\n\n## Examples\n\nSee the [examples](examples/) directory for more detailed usage examples.\n\n## Development\n\n### Setting up the development environment\n\n```bash\ngit clone https://github.com/cryptohftdata/sdk.git\ncd sdk/python\npip install -e \".[dev]\"\n```\n\n### Running tests\n\nTo run the test suite, navigate to the `sdk/python` directory and use one of the following commands:\n\nUsing `pytest` (recommended):\n\n```bash\npytest\n```\n\nThis command will automatically use the configurations specified in `pyproject.toml`, including test paths and coverage options.\n\nIf you need to target a specific test file or directory, you can do so, but be mindful of the `addopts` in `pyproject.toml`:\n\n```bash\npytest tests/test_client.py\n```\n\nIf you don't have `pytest` or prefer to use the built-in `unittest` module:\n\n```bash\npython -m unittest discover tests\n```\n\nMake sure you have an active virtual environment with development dependencies installed. Some tests might require a `CRYPTOHFTDATA_API_KEY` environment variable to be set for tests that interact with the live API.\n\n### Code formatting\n\n```bash\nblack cryptohftdata tests\nisort cryptohftdata tests\n```\n\n### Type checking\n\n```bash\nmypy cryptohftdata\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\n- Documentation: [cryptohftdata.com/docs](https://cryptohftdata.com/docs)\n- Issues: [GitHub Issues](https://github.com/cryptohftdata/sdk/issues)\n- Email: support@cryptohftdata.com\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python SDK for accessing cryptocurrency high-frequency trading data",
    "version": "0.1.4",
    "project_urls": {
        "Bug Reports": "https://github.com/cryptohftdata/sdk/issues",
        "Documentation": "https://docs.cryptohftdata.com",
        "Homepage": "https://cryptohftdata.com",
        "Repository": "https://github.com/cryptohftdata/sdk"
    },
    "split_keywords": [
        "cryptocurrency",
        " trading",
        " market-data",
        " api",
        " hft"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bb3b1ea2ae401b8b6a155f26265698029fc8813546f73d7e4b8e2cd3cacacbb3",
                "md5": "edb4feb660577e8cd8e1eb91f776ae35",
                "sha256": "81727c6a1b34501e612a82390e8b8812fc950e3f51488a9e94c1cc0c976561f0"
            },
            "downloads": -1,
            "filename": "cryptohftdata-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "edb4feb660577e8cd8e1eb91f776ae35",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 20249,
            "upload_time": "2025-07-17T11:25:50",
            "upload_time_iso_8601": "2025-07-17T11:25:50.738540Z",
            "url": "https://files.pythonhosted.org/packages/bb/3b/1ea2ae401b8b6a155f26265698029fc8813546f73d7e4b8e2cd3cacacbb3/cryptohftdata-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2171e8226639be5ae3ba59791cc571dd79d98bbe1a4cbf189c570b9874103c81",
                "md5": "25e444e2f440780e773ced528e02be2f",
                "sha256": "02f7c7cb67b12ead39a24e471058d23d7d30dcb81c0b34def8714256bbe4a50b"
            },
            "downloads": -1,
            "filename": "cryptohftdata-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "25e444e2f440780e773ced528e02be2f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 33685,
            "upload_time": "2025-07-17T11:25:51",
            "upload_time_iso_8601": "2025-07-17T11:25:51.850140Z",
            "url": "https://files.pythonhosted.org/packages/21/71/e8226639be5ae3ba59791cc571dd79d98bbe1a4cbf189c570b9874103c81/cryptohftdata-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-17 11:25:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cryptohftdata",
    "github_project": "sdk",
    "github_not_found": true,
    "lcname": "cryptohftdata"
}
        
Elapsed time: 1.60168s