![]() ![]() You can donate via GitHub Sponsors, or via the addresses below: Support and donations are appreciated but not required. ContributingĬryptofeed wouldn't be possible without the help of many contributors! I owe them and all other contributors my thanks! Donations / Support There are a lot of planned features, new exchanges, etc planned! If you'd like to discuss ongoing development, please join the slack or open a thread in the discussions in GitHub. For more information see the documentation. 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. You can view the supported methods by calling the info() method on any exchange. These are integrated into the exchange classes directly. Rest APIĬryptofeed supports some REST interfaces for retrieving real-time and historical data, as well as order placement and account management. See more discussion of package installation in INSTALL.md. python setup.py installĪlternatively, you can install in 'edit' mode (also called development mode): python setup.py develop If you wish to clone the repository and install from source, run this command from the root of the cloned repository. To install Cryptofeed along with all its optional dependencies in one bundle: pip install cryptofeed You can install them individually, or all at once. pip install cryptofeedĬryptofeed has optional dependencies, depending on the backends used. (It's recommended that you install in a virtual environment of your choosing). TRANSACTIONS - Real-time updates on account deposits and withdrawalsĬryptofeed supports backend callbacks that will write directly to storage or other interfaces.Ĭryptofeed can be installed from PyPi.TRADES - Note this reports the taker's side, even for exchanges that report the maker side.Like the L2 book, some exchanges may only provide partial depth. Some exchanges provide the entire depth, some provide a subset. run () Supported ChannelsĬryptofeed supports the following channels from exchanges: Market Data Channels (Public) 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 = ' ) def main (): f = FeedHandler () f. 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. ![]() ![]() Supported exchangesĬreate a FeedHandler object and add subscriptions. Utilizes websockets when possible, but can also poll data via REST endpoints if a websocket is not provided. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |