← Back to News
cryptofeed 2.5.0

cryptofeed 2.5.0

cryptofeed · 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 Sponsors Log in Register Menu Help Docs

Sponsors Log in Register Search PyPI Search cryptofeed 2.5.0 Cryptocurrency Exchange Websocket Data Feed Handler pip

install cryptofeed==2.5.0 Copy PIP instructions Description Download files Release history Cryptocurrency Exchange Feed

Handler Handles multiple cryptocurrency exchange data feeds and returns normalized and standardized results to client

registered callbacks for events like trades, book updates, ticker updates, etc. Utilizes websockets when possible, but

can also poll data via REST endpoints if a websocket is not provided. Supported exchanges AscendEX Bequant Bitfinex

bitFlyer Bithumb Bitstamp Blockchain.com Bybit Binance Binance Delivery Binance Futures Binance US Bit.com Bitget BitMEX

Coinbase Crypto.com Delta Deribit dYdX FMFW.io EXX Gate.io Gate.io Futures Gemini HitBTC Huobi Huobi DM Huobi Swap

(Coin-M and USDT-M) Independent Reserve Kraken Kraken Futures KuCoin OKCoin OKX Phemex Poloniex ProBit Upbit Basic Usage

Create a FeedHandler object and add subscriptions. For the various data channels that an exchange supports, you can

supply callbacks for data events, or use provided backends (described below) to handle the data for you. Start the feed

handler and you're done! from cryptofeed import FeedHandler # not all imports shown for clarity fh = FeedHandler() #

ticker, trade, and book are user defined functions that # will be called when ticker, trade and book updates are

received ticker_cb = {TICKER: ticker} trade_cb = {TRADES: trade} gemini_cb = {TRADES: trade, L2_BOOK: book}

fh.add_feed(Coinbase(symbols=['BTC-USD'], channels=[TICKER], callbacks=ticker_cb))

fh.add_feed(Bitfinex(symbols=['BTC-USD'], channels=[TICKER], callbacks=ticker_cb))

fh.add_feed(Poloniex(symbols=['BTC-USDT'], channels=[TRADES], callbacks=trade_cb))

fh.add_feed(Gemini(symbols=['BTC-USD', 'ETH-USD'], channels=[TRADES, L2_BOOK], callbacks=gemini_cb)) fh.run() Please see

the examples for more code samples and the documentation for more information about the library usage. For an example of

a containerized application using cryptofeed to store data to a backend, please see Cryptostore. National Best Bid/Offer

(NBBO) Cryptofeed also provides a synthetic NBBO (National Best Bid/Offer) feed that aggregates the best bids and asks

from the user specified feeds. from cryptofeed import FeedHandler from cryptofeed.exchanges import Coinbase, Gemini,

Kraken def nbbo_update(symbol, bid, bid_size, ask, ask_size, bid_feed, ask_feed): print(f'Pair: {symbol} Bid Price:

{bid:.2f} Bid Size: {bid_size:.6f} Bid Feed: {bid_feed} Ask Price: {ask:.2f} Ask Size: {ask_size:.6f} Ask Feed:

{ask_feed}') def main(): f = FeedHandler() f.add_nbbo([Coinbase, Kraken, Gemini], ['BTC-USD'], nbbo_update) f.run()

Supported Channels Cryptofeed supports the following channels from exchanges: Market Data Channels (Public) L1_BOOK -

Top of book L2_BOOK - Price aggregated sizes. Some exchanges provide the entire depth, some provide a subset. L3_BOOK -

Price aggregated orders. Like the L2 book, some exchanges may only provide partial depth. TRADES - Note this reports the

taker's side, even for exchanges that report the maker side. TICKER FUNDING OPEN_INTEREST - Open interest data.

LIQUIDATIONS INDEX CANDLES - Candlestick / K-Line data. Authenticated Data Channels ORDER_INFO - Order status updates

TRANSACTIONS - Real-time updates on account deposits and withdrawals BALANCES - Updates on wallet funds FILLS - User's

executed trades Backends Cryptofeed supports backend callbacks that will write directly to storage or other interfaces.

Supported Backends: Redis (Streams and Sorted Sets) Arctic ZeroMQ UDP Sockets TCP Sockets Unix Domain Sockets InfluxDB

v2 MongoDB Kafka RabbitMQ PostgreSQL QuasarDB GCP Pub/Sub QuestDB Installation Note: cryptofeed requires Python 3.12+

Cryptofeed can be installed from PyPi. (It's recommended that you install in a virtual environment of your choosing).

pip install cryptofeed Cryptofeed has optional dependencies, depending on the backends used. You can install them

individually, or all at once. To install Cryptofeed along with all its optional dependencies in one bundle: pip install

cryptofeed[all] If you wish to clone the repository and work on it (development uses uv), run this from the root of the

cloned repository: uv sync Alternatively, you can install from source in editable mode with pip: pip install -e . See

more discussion of package installation in INSTALL.md. Rest API Cryptofeed supports some REST interfaces for retrieving

real-time and historical data, as well as order placement and account management. These are integrated into the exchange

classes directly. You can view the supported methods by calling the info() method on any exchange. The methods for

interacting with the exchange RET endpoints exist in two flavors, the synchronous methods (suffixed with _sync) as well

as the asynchronous which can be utilized with asyncio. For more information see the documentation. Future Work There

are a lot of planned features, new exchanges, etc planned! If you'd like to discuss ongoing development, please join the

discord or open a thread in the discussions in GitHub. Contributing Issues and PRs are welcomed! Cryptofeed wouldn't be

possible without the help of many contributors! I owe them and all other contributors my thanks! Donations / Support

Support and donations are appreciated but not required. You can donate via GitHub Sponsors, or via the addresses below:

Bitcoin: bc1qm0kxz8hqacaglku5fjhfe9a5hjnuyfwk02lsyr Ethereum: 0x690709FEe13eEce9E7852089BB2D53Ae5D073154 Project links

Homepage Key dates PyPI data Data sourced directly from PyPI's database. Released: Aug 9, 2026 Latest release 1

maintainer PyPI data Data sourced directly from PyPI's database. bmoscon Credits Author: Bryant Moscon License

expression XFree86-1.1 View SPDX License List Requires Python >=3.12 Provides Extra arctic gcp-pubsub kafka mongo

postgres quasardb rabbit redis zmq all Tags cryptocurrency bitcoin btc feed handler market feed market data crypto

assets Trades Tickers BBO Funding Open Interest Liquidation Order book Bid Ask fmfw.io Bitfinex bitFlyer AscendEX

Bitstamp Blockchain.com Bybit Binance Binance Delivery Binance Futures Binance US BitMEX Coinbase Deribit EXX Gate.io

Gemini HitBTC Huobi Huobi DM Huobi Swap Kraken Kraken Futures OKCoin OKX Poloniex ProBit Upbit Classifiers Development

Status 4 - Beta Framework AsyncIO Intended Audience Developers Programming Language Python :: 3 :: Only Python :: 3.12

Python :: 3.13 Python :: 3.14 Report project as malware Download files Download the file for your platform. If you're

not sure which to choose, learn more about installing packages. Source Distribution cryptofeed-2.5.0.tar.gz (430.2 kB

view details) Uploaded Aug 9, 2026 Source Built Distributions Filter files by name, interpreter, ABI, and platform. If

you're not sure about the file name format, learn more about wheel file names. The dropdown lists show the available

interpreters, ABIs, and platforms. Enable javascript to be able to filter the list of wheel files. Copy a direct link to

the current filters Copy File name Interpreter Interpreter cp312 cp313 ABI ABI cp312 cp313 Platform Platform

manylinux2014_x86_64 manylinux_2_17_x86_64 manylinux_2_34_x86_64

cryptofeed-2.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl (1.8 MB view details)

Uploaded Aug 9, 2026 CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.34+ x86-64

cryptofeed-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl (1.9 MB view details)

Uploaded Aug 9, 2026 CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.34+ x86-64 File details Details for the

file cryptofeed-2.5.0.tar.gz. File metadata Download URL: cryptofeed-2.5.0.tar.gz Upload date: Aug 9, 2026 Size: 430.2

kB Tags: Source Uploaded using Trusted Publishing? No Uploaded via: twine/7.0.0 CPython/3.14.6 File hashes Hashes for

cryptofeed-2.5.0.tar.gz Algorithm Hash digest SHA256 18d2f1e5d8d68854246925a989e21d2e9ee230fccbe0ff9906714ffcaf7153ee

Copy MD5 774bac524d1537ba5365cf51de932134 Copy BLAKE2b-256

3f9e2e49b5d1d3b5ee3b02ac90b5e98cc06d905a841cf27d5b4208c08ef17242 Copy See more details on using hashes here. File

details Details for the file

cryptofeed-2.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl. File metadata

Download URL: cryptofeed-2.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl Upload

date: Aug 9, 2026 Size: 1.8 MB Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.34+ x86-64 Uploaded

using Trusted Publishing? No Uploaded via: twine/7.0.0 CPython/3.14.6 File hashes Hashes for

cryptofeed-2.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl Algorithm Hash digest

SHA256 32a5adee9fefcbb957b7a6ca53864c16ad6ab2d278a223d0fd7ed573ec7a2c1e Copy MD5 52187f7474bfd4c2c23f493c61a6dabf Copy

BLAKE2b-256 6743a989b6d45e26d673b6d5eefbdfcb0c5f12a236a0327b6460d8464a83e643 Copy See more details on using hashes here.

File details Details for the file

cryptofeed-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl. File metadata

Download URL: cryptofeed-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl Upload

date: Aug 9, 2026 Size: 1.9 MB Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.34+ x86-64 Uploaded

using Trusted Publishing? No Uploaded via: twine/7.0.0 CPython/3.14.6 File hashes Hashes for

cryptofeed-2.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_34_x86_64.whl Algorithm Hash digest

SHA256 f535bfeb39b9fc316e367625772ae7f64164e3dc08d152e791090abdb28f82b5 Copy MD5 5c01f656bdc08e527b7524cafa63b946 Copy

BLAKE2b-256 1fbdcdb858c4bcd5f3e0f15cf83c4912ef3fcda8f4635fca354782b06f876862 Copy See more details on using hashes here.

Release history Release notifications | RSS feed This release 2.5.0 Aug 9, 2026 2.4.1 Feb 8, 2025 2.4.0 Jan 7, 2024

2.3.2 May 27, 2023 2.3.1 Oct 31, 2022 2.3.0 Sep 4, 2022 2.2.3 May 29, 2022 2.2.2 Apr 17, 2022 2.2.1 Feb 27, 2022 2.2.0

Feb 17, 2022 2.1.2 Dec 23, 2021 2.1.1 Nov 29, 2021 2.1.0 Nov 14, 2021 2.0.3 Oct 26, 2021 2.0.2 Oct 12, 2021 2.0.1 Sep

22, 2021 2.0.0 Sep 11, 2021 1.9.3 Aug 5, 2021 1.9.2 Jul 14, 2021 1.9.1 Jun 11, 2021 1.9.0 Apr 25, 2021 1.8.2 Apr 2, 2021

1.8.1 Apr 2, 2021 1.8.0 yanked Apr 2, 2021 Reason this release was yanked: wont install 1.7.0 Feb 16, 2021 1.6.2 Dec 26,

2020 1.6.1 Nov 13, 2020 1.6.0 Sep 29, 2020 1.5.1 Aug 26, 2020 1.5.0 Aug 1, 2020 1.4.1 May 22, 2020 1.3.1 Mar 17, 2020

1.3.0 Feb 12, 2020 1.2.0 Jan 18, 2020 1.1.0 Nov 15, 2019 1.0.1 Sep 30, 2019 1.0.0 Aug 18, 2019 0.25.0 Jul 6, 2019 0.24.0

Jun 20, 2019 0.23.0 Jun 3, 2019 0.22.2 May 23, 2019 0.22.1 May 19, 2019 0.22.0 May 4, 2019 0.21.1 Apr 28, 2019 0.21.0

Apr 7, 2019 0.20.2 Mar 19, 2019 0.20.1 Feb 16, 2019 0.20.0 Feb 5, 2019 0.19.2 Jan 21, 2019 0.19.1 Jan 12, 2019 0.19.0

Jan 10, 2019 0.18.0 Dec 15, 2018 0.17.4 Nov 17, 2018 0.17.3 Nov 17, 2018 0.17.2 Nov 3, 2018 0.17.1 Oct 20, 2018 0.17.0

Oct 13, 2018 0.16.0 Oct 4, 2018 0.15.0 Sep 29, 2018 0.14.1 Sep 14, 2018 0.14.0 Sep 4, 2018 0.13.3 Aug 31, 2018 0.13.2

Aug 31, 2018 0.13.1 Aug 31, 2018 0.13.0 Aug 22, 2018 0.12.0 Aug 20, 2018 0.11.1 Aug 18, 2018 0.11.0 Aug 5, 2018 0.10.1

May 12, 2018 0.10.0 Mar 18, 2018 0.9.2 Mar 13, 2018 0.9.1 Jan 27, 2018 0.8.0 Jan 7, 2018 0.7.0 Jan 3, 2018 0.6.0 Jan 2,

2018 0.5.0 Jan 2, 2018 0.0.1 Dec 22, 2017 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 Status: all systems operational Developed and

maintained by the Python community, for the Python community. Donate today! "PyPI", "Python Package Index", and the

blocks logos are registered trademarks of the Python Software Foundation. © 2026 Python Software Foundation Site map

Deployed from bd8ccde Switch to desktop version English español français 日本語 português (Brasil)

українська Ελληνικά Deutsch 中文 (简体) 中文 (繁體) русский עברית Esperanto

한국어 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

Source: pypi.org