Saravanan666/pypi-org huggingface dataset:
Package: binalyzer-rest
Binalyzer RESTThis repository implements Binalyzer's REST interface. It is part of the overallBinalyzerproject and comes with its installation.InstallationBinalyzer is published onPyPIand can be installed from there:~$pip3install--upgradebinalyzerIf you wish to installBinalyzerfor development purposes, refer tothe
developer's guide.DocumentationDocumentation is available frombinalyzer.readthedocs.io.Get in touchReport bugs, suggest features or view the source codeon GitHub.For contributions refer tothe contributor's guide.LicenseLicensed under the MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT).
Package: binalyzer-template-provider
Binalyzer Template ProviderThis repository implements template providers. It is part of the overallBinalyzerproject and comes with its installation.InstallationBinalyzer is published onPyPIand can be installed from there:~$pip3install--upgradebinalyzerIf you wish to installBinalyzerfor development purposes, refer tothe
developer's guide.DocumentationDocumentation is available frombinalyzer.readthedocs.io.Get in touchReport bugs, suggest features or view the source codeon GitHub.For contributions refer tothe contributor's guide.LicenseLicensed under the MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT).
Package: binalyzer-vmf
Binalyzer VMF ExtensionThis repository provides the VMF extension for [Binalyzer]. It implements
converters from binary data to the VMF format that is used byMicron's flash
simulation model.InstallationBinalyzer VMF is published onPyPIand can be installed from there:~$pip3installbinalyzer-vmfGet in touchReport bugs, suggest features or view the source codeon GitHub.For contributions refer tothe contributor's guide.LicenseLicensed under the MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT).
Package: binalyzer-wasm
Binalyzer WebAssembly ExtensionThis repository provides the WebAssembly extension forBinalyzer. It implements
value providers (e.g. for LEB128) that are used to parse WebAssembly's
binary module format. It is part of the overallBinalyzerproject and comes with
its installation.InstallationBinalyzer is published onPyPIand can be installed from there:~$pip3install--upgradebinalyzerIf you wish to installBinalyzerfor development purposes, refer tothe
developer's guide.DocumentationDocumentation is available frombinalyzer.readthedocs.io.Get in touchReport bugs, suggest features or view the source codeon GitHub.For contributions refer tothe contributor's guide.LicenseLicensed under the MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT).
Package: binance4py
This is an asynchronous Python wrapper for Binance exchange API.FeaturesImplementation of all general, market, spot and websocket endpointsEasy to contribute and useFully typedInstallationpipinstall-Ubinance4pyQuick Startimportasynciofrombinance4pyimportBinanceasyncdefhandle_kline(k):print(k)asyncdefmain():client=Binance("<API_KEY>","<API_SECRET>",testnet=True)asyncwithclient:print(awaitclient.general.server_time())awaitclient.ws.start()awaitclient.ws.kline(handle_kline,"btcbusd","1m")print(awaitclient.ws.subscriptions())awaitclient.ws.wait_stop()asyncio.run(main())Using a different TLD and ClusterThis example will change all binance urls that support this fromhttps://api.binance.comtohttps://api2.binance.jpclient = Binance(
    tld="jp",
    cluster=2
)Using a different json dumper/loaderimport ujson


client = Binance(
    json_dumps=ujson.dumps,
    json_loads=ujson.loads
)
Package: binance-aiohttp
asynchronous_binance_client(asyncio and aiohttp)This is an asynchronous library that is written for using binance services.You need aiohttp and asyncio for delealing with methods and properties.1- First instantiate from BinanceFuturesClient:from binance_aiohttp.client import BinanceFuturesClient
binance_client = BinanceFuturesClient(api_key, secret_key, testnet=False)2 - Then from aiohttp.ClientSession:async with aiohttp.ClientSession(json_serialize=ujson.dumps) as session:3- Finally await methods:await binance_client.candlestick_data(session, 'BTCUSDT', interval='4h', limit=300)Example:import asyncio
import aiohttp
import ujson
from binance_aiohttp.client import BinanceFuturesClient
binance_client = BinanceFuturesClient(api_key, secret_key, testnet=False)


async def fetch():
  async with aiohttp.ClientSession(json_serialize=ujson.dumps) as session:
    result = await asyncio.create_task(binance_client.candlestick_data(session, 'BTCUSDT', interval='4h', limit=300))
    print(result)


asyncio.run(fetch())
Package: binance-api-ancous
ТРЕБУЕМЫЕ ОБНОВЛЕНИЯ И ДАТА ПОСЛЕДНЕЙ СВЕРКИ С BINANCE APIFUTURESMARKET DATA ENDPOINTS FUTURES...MARKET DATA STREAMS FUTURES...TRADING ENDPOINTS FUTURES...USER DATA STREAM FUTURES...SPOTMARKET DATA ENDPOINTS SPOT...MARKET DATA STREAM SPOT...Последний просмотр Futures 2024-01-24Последний просмотр Spot 2024-01-24
Package: binance-asyncio
Welcome to binance-asyncioThis is an unofficial wrapper for the Binance API, as per the license, its provided with no guarantee, so use it at your own risk.Quick startInstall withpip install binance-asyncioAnd have a look at theexamplesdirectory, to get you startedCurrent statusThis is very much work-in-process, I made it for some personal projects, where I needed to be able to interact with binance in an asyncio
context. And its been working well for me, so I thought I'd share it.Status of documentationI got a very early version of the documentation ready here at:binance-asyncio.readthedocs.ioIts still a WIP, but should prove helpful regardless. Also, as mentioned, you can also look in theexamplesdirectory to get started.Coverage of APIGeneral endpoints (full coverage)Market Data endpoints (full coverage)Account endpoints (order and test order implemented)Stream coverageAggregate Trade StreamsTrade StreamsKline/Candlestick StreamsIndividual Symbol Mini Ticker StreamAll Market Mini Tickers StreamIndividual Symbol Ticker StreamsAll Market Tickers StreamIndividual Symbol Book Ticker StreamsAll Book Tickers StreamPartial Book Depth StreamsDiff. Depth Stream
Package: binance-data-exporter
Binance API Data ExporterThis Python script allows you to retrieve historical data from Binance API and export it to a JSON file. The data can be retrieved for any specified symbol (e.g. BTCUSDT) and interval (e.g. 1m, 1h, 1d) for a given period of time.InstallationInstall it via pip by running the following command in your terminal:pipinstallbinance-data-exporterCheck out the project on PyPI athttps://pypi.org/project/binance-data-exporter/.Clone the project repository from GitHub by running the following command in your terminal:gitclonegit@github.com:zestones/Binance-Data-Exporter.gitUsageTo run the script, use the following command:pythonbinance_data_exporter.py[OPTIONS]Bellow the list of available options you can use to customize the request to the Binance API:OptionDescriptionPossible ValuesDefault Value-h,--helpShow the help message and exit-i,--intervalThe interval of the data1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M1d-p,--pairThe pair of coin (refer to the binance symbol list)BTCUSDT, ETHUSDT, etcBTCUSDT-l,--limitThe limit of the data per request1, 2, ..., 1000 (Should be integer)500-s,--start-timeThe start time of the dataYYYY_MM_DDNone-e,--end-timeThe end time of the dataYYYY_MM_DDTODAY-o,--output-folderThe folder where the data will be exportedPath./dataNOTEIf you don't specify a start time for your request, it will use the earliest available data for the requested time interval.If the end-time is not specified the date of the day will be choosed by default.If you dont provide parameters, the script will use the default values specified.ExamplesTo retrieve data for ETHUSDT from 2018-01-15 to 2018-01-16 with an interval of 1 hour, a limit of 10, and export the data to./data/eth_usdt/, use the following command:pythonbinance_data_exporter.py-l10-i1h-pETHUSDT-s2018_01_15-e2018_01_16-o./data/eth_usdt/You can customize the parameters to retrieve data as you wish.DependenciesThe script requires the following dependencies:requestscoloramatabulateYou can install the dependencies using the following command:pipinstall-rrequirements.txtOutputThe script exports the retrieved data as a JSON file in theOUTPUT_FOLDERspecified in the configuration. The filename of the JSON file is in the following format:symbol_start-date_to_end-date_interval.jsonwherestart_dateandend_dateare the start and end dates of the data retrieved, respectively andintervalis the interval between each data point.API Limits and Maximum Number of RequestsPlease note that Binance API has certain limits on the number of requests that can be made within a specific time frame.It is important to be mindful of these limits when making requests to avoid being disconnected or banned. Make sure to not exceed the number of requests allowed by the API, when configuring thelimitandintervalparameters in the script.Binance API DocumentationFor more information on the Binance API, you can refer to the official documentation at:https://binance-docs.github.io/apidocs/spot/en/
Package: binance-db
# Binance DBA local cache for Binance data, stored in Postgres## Setup### ServerOn the server you wish to run the Postgres DB on.```bashgit clone https://github.com/StoicPerlman/binance-db.gitexport BDB_POSTGRES_PASS=supersecretdocker-compose up -d```This will pull all available 1 minute candles from Binance and store them in a Postgres DB container. This container has a persistant volume configured for the data, meaning it can be deleted and restarted as much as you want.When started it will check if there is any existing data in the DB. If not it will fetch all. This takes less than 15 mintes and takes up about 250 MB at the time of this writing. If there is existing data it will pull just the data starting from the newest entry in the DB.A thread is started and connected to the Binance web socket. This will add new data as it is available. If you do not want continuously updating data you can run both containers then just kill the binance-db one.### ClientYou can pip install this package to connect to DB and have a sqlalchemy session started for use in your own app.```bashpip3 install binance-db``````python# if you did not override any settings on the server# all you have to supply is url and passwordfrom binance_db.db import BinanceDBfrom binance_db.candle import Candlebdb = BinanceDB(user=pguser, password=pgpass, url=pgurl, port=pgport, db=pgdb)# this is a normal sqlalchemy session# see binance_db.candle.Candle for schemadb = bdb.get_session()new = db.query(Candle).filter_by(pair='BTCUSDT').order_by(Candle.close_time.desc()).first()print(new.pair)print(new.open_time)print(new.close_time)print(new.open_price)print(new.close_price)print(new.high)print(new.low)print(new.volume)print(new.qav) # Quote asset volumeprint(new.trades) # Number of tradesprint(new.tbbav) # Taker buy base asset volumeprint(new.tbqav) # Taker buy quote asset volume```
Package: binance-decoder
binance-decoderMotivationBinance Chain using Amino logic in the transaction encoding, I have looked for decoder in Python but can't find properly solution for that and I made this Python package usinghttps://github.com/bnb-chain/node-binary/issues/53Github discussion.Pre-InstallationPlease make sure you have up-to-date pip and setuptoolspython-mpipinstall--upgradepip
python-mpipinstall--upgradesetuptoolsInstall PackageYou can usePyPito getbinance-decoderpackage.pipinstallbinance-decoderUsagefrombinance_decoderimportbinance_decoderimportjsonencoded_tx="6wHwYl3uCnHObcBDChSIhrF81iDjeLmz0sHwkVU0WIR5xRIwODg4NkIxN0NENjIwRTM3OEI5QjNEMkMxRjA5MTU1MzQ1ODg0NzlDNS0xOTE2MDI1GhFCQUtFLTVFMF9CVVNELUJEMSACKAEwlNqqEDiAjI7jgB5AARJyCibrWumHIQOhYvTqdPrZQxXuEW4VhRdTqhAHi1kbnJUagWQGVOCqqxJAvLXcvsQuGGOfnS+aw9+6/DBpn7ptHU3Tgz406JelZetV4P0icmXOlu530maz7+VlwFtoTuQKZTQ2rjac57a1OxjCjwEg+Ph0"decoded_tx_str=binance_decoder(encoded_tx)# Decode transaction, return type will be `str`decoded_tx_json=json.loads(decoded_tx_str)AboutFirst version of project was just use binance-tx-decoder binary from Python writen by Golang. But here we got some issue related on OS arg parse limitations.Examplewe hadbinance-tx-decoderbinary file writen by Golangpackagemainimport("crypto/sha256""encoding/base64""encoding/hex""encoding/json""fmt""github.com/binance-chain/go-sdk/types""github.com/binance-chain/go-sdk/types/tx""os")typeTransactionstruct{Hashstring`json:"hash"`Datatx.StdTx`json:"data"`}funcmain(){txs:=os.Args[1:]codec:=types.NewCodec()parsedTxs:=make([]Transaction,len(txs))fori:=rangetxs{decodeTx64,err:=base64.StdEncoding.DecodeString(txs[i])iferr!=nil{fmt.Println("error:",err)}decodeTxStr:=string(decodeTx64)h:=sha256.New()h.Write(decodeTx64)parsedTxs[i].Hash=hex.EncodeToString(h.Sum(nil))err=codec.UnmarshalBinaryLengthPrefixed([]byte(decodeTxStr),&parsedTxs[i].Data)iferr!=nil{fmt.Println("Error - codec unmarshal")}}bz,err:=json.Marshal(parsedTxs)iferr!=nil{fmt.Println("Error - json marshal")}fmt.Println(string(bz))}used following code to callbinance-tx-decoderfrom Python codeimportosimportjsontxs=["2AHwYl3uCl4WbmgbChTXj1deyGieL/2pir/GvjCJzzoRZRIRUlVORS1CMUFfQlVTRC1CRDEaL0Q3OEY1NzVFQzg2ODlFMkZGREE5OEFCRkM2QkUzMDg5Q0YzQTExNjUtMjc3MzM4EnIKJuta6YchAof/uuUFK7rjP6j+XolHCm6iwEI6OL9pay27Td50xFE8EkAry+YVeHb/KYo6ptBKcxmFv5uIZtpTHw4QrajK3dntKAZ1UkpV62jfUVNPVj01fUQdrAe5QBrSLRjRL4nwJn8GGIqeJyDb9hA=","7AHwYl3uCnHObcBDChRlmTns6WEaqmu7vqLF/cM5jKgDmBIwNjU5OTM5RUNFOTYxMUFBQTZCQkJCRUEyQzVGREMzMzk4Q0E4MDM5OC0zODk4MjQzGhFBVE9NLTU5Nl9CVVNELUJEMSACKAEwuIjOsgM4gJK4rCJAARJzCibrWumHIQPzxSPM0ZHrLoHz0G83k77S+g0WlS/14u2TT9Oj9IrCAxJAU+D1OiN9DbULcOqAdZ//sXq3ZIgdZ4DrL9N883JOpr9EN2IXe5tvwyPzbi6XtvsQo5chI2vzp/jULs1dQhkzoBiEgy8ggvftAQ==",]cmd=f'./binance-tx-decoder{" ".join(txs)}'withos.popen(cmd)asproc:transactions=json.loads(proc.read())print(ransactions)Finally, I had some idea to check is there way to make Python Package by Golang.
This is Open source Python Package and everyone can take to use.
Package: binance-downloader
Binance DownloaderPython tool to download Binance Candlestick (k-line) data from REST APIOriginally forked frombullsignals/binance-downloader,
that project does not seem to be maintained any longer and I wanted to actually make use
of this project and allow others to contribute. At this point, I have re-written almost
all the code from scratch, but would like to thank the original authors for their ideas
that got me started.InstallationPrerequisitesYou will need Poetry installed in order to install this package and run from the command line.
Poetry is a Python package and dependency manager that makes installation and distribution
really easy. Installation instructionscan be found herefor macOS/Linux/WindowsVerify Poetry installation$poetry--versionPoetry 0.12.10Download and installClone the repository$gitclonehttps://github.com/anson-vandoren/binance-downloader.git$cdbinance-downloaderActivate your virtual environmentPoetry will try to automatically enable a virtual environment for you if it detects
you are not already using one.If you already use virtualenvwrapper (or similar), go ahead and make (or switch to)
your working environment beforehand:$mkvirtualenvbinance-downloaderor$workonbinance-downloaderInstall dependencies$poetryinstallInstalling dependencies from lock filePackage operations: 12 installs, 0 updates, 0 removals- Installing six (1.12.0)- Installing certifi (2008.11.29)- Installing chardet (3.0.4)- Installing idna (2.8)- Installing numpy (1.15.4)- Installing python-dateutil (2.7.5)- Installing pytz (2018.7)- Installing urllib3 (1.22)- Installing logbook (1.4.1)- Installing pandas (0.23.4)- Installing requests (2.21.0)- Installing tqdm (4.28.1)- Installing binance-downloader (0.2.0)Using the Command Line InterfaceShow available options$kline-binance--helpusage: kline-binance [-h] [--start START] [--end END] [--dtfmt DATE_FORMAT]symbol intervalCLI for downloading Binance Candlestick (k-line) data in bulkpositional arguments:symbol               (Required) Binance symbol pair, e.g. ETHBTCinterval             (Required) Frequency interval in minutes(m); hours(h);days(d); weeks(w); months(M); All possibles values: 1m3m 5m 15m 30m 1h 2h 4h 6h 8h 12h 1d 3d 1w 1Moptional arguments:-h, --help           show this help message and exit--start START        Start date to get data (inclusive). Format: yyyy/mm/dd--end END            End date to get data (exclusive). Format: yyyy/mm/dd--dtfmt DATE_FORMAT  Format to use for dates (DMY, MDY, YMD, etc). Default:YMDDownloading data$kline-binanceXRPBTC1m--start2016-01-01--endnow[2019-01-02 05:12:40.941301] NOTICE: api: First available kline starts on {from_ms_utc(period_start)}[2019-01-02 05:12:40.941867] NOTICE: api: Downloading 620 chunks...Download : 100%|█████████████████████████████████████████████████| 620/620 [00:48<00:00, 12.73 chunk/s]Write CSV: 100%|███████████████████████████████████████████████████| 100/100 [00:14<00:00,  7.04 pct/s][2019-01-02 05:13:44.784379] NOTICE: db: Done writing ./downloaded/2019-01-01_211330_XRPBTC_1m.csv for 612794 linesLicenseThis code is made available under the MIT License. See LICENSE file for detail.
Package: binance_history_downloader
Binance DownloaderOverviewBinance Downloader is a Python package for efficiently downloading cryptocurrency data from the Binance API. It supports downloading various types of data including trading klines, aggregate trades, ticker data, and more, with a focus on futures market data.FeaturesDownload data from Binance Futures market.Supports various data types like klines, aggregate trades, book tickers, etc.Parallel downloading for faster data retrieval.Progress bar to track download status.Easy to use with a simple Python API.InstallationTo install Binance Downloader, you will need Python 3.10 or later. The package can be installed via pip. Run the following command:pipinstallbinance_history_downloaderUsageHere is a basic example of how to use Binance Downloader:frombinance_history_downloaderimportdownloadfrombinance_history_downloaderimportDataType# Example: Downloading premium index klines for SOLUSDTdata,errors=download('SOLUSDT',DataType.PREMIUM_INDEX_KLINES,'2023-01-01','2023-01-31')# Example usage# df, errors  = download('SOLUSDT', DataType.PREMIUM_INDEX_KLINES', '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.INDEX_PRICE_KLINES, '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.MARK_PRICE_KLINES, '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.KLINES, '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.AGG_TRADES, '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.BOOK_TICKER, '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.METRICS, '2023-10-20', '2023-11-16')# df = download('SOLUSDT', DataType.LIQUIDATION_SNAPSHOT, '2023-10-20', '2023-11-16')# Check for errorsiferrors:print("Errors occurred:",errors)# Work with the dataprint(data.head())RequirementsPython 3.10+pandastqdmContributingContributions to Binance Downloader are welcome! Please read our contributing guidelines for details on how to contribute.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: binance-interface
Binance_interface 2.0.5安装：pip3 install binance_interface==2.0.3使用教程请参考examples1.1 Binance_Interface安装与介绍1.2 API函数接口总览1.3 API 现货行情接口.ipynb1.4 API U本位合约行情.ipynb1.5 API 币本位合约行情.ipynb1.6 API 现货交易账户.ipynb1.7 API U本位合约交易账户.ipynb1.8 API 币本位合约交易账户.ipynb2.1 APP 现货交易账户.ipynb2.2 APP 现货行情-交易规则信息.ipynb2.3 APP 现货行情-实时行情.ipynb2.4 APP 现货行情-历史K线.ipynb2.5 APP 现货交易-基础订单.ipynb2.6 APP 现货交易-价格与数量.ipynb2.7 APP 现货交易-限价单开仓.ipynb2.8 APP 现货交易-市价单开仓.ipynb2.9 APP 现货交易-限单价平仓.ipynb2.10 APP 现货交易-市单价平仓.ipynb3.1 APP U本位合约交易账户.ipynb3.2 APP U本位合约行情-交易规则信息.ipynb3.3 APP U本位合约行情-实时行情.ipynb3.4 APP U本位合约行情-历史K线.ipynb3.5 APP U本位合约交易-基础订单.ipynb3.6 APP U本位合约交易-价格与数量.ipynb3.7 APP U本位合约交易-限价单开仓.ipynb3.8 APP U本位合约交易-市价单开仓.ipynb3.9 APP U本位合约交易-限单价平仓.ipynb3.10 APP U本位合约交易-市单价平仓.ipynb4.1 APP 币本位合约交易账户.ipynb4.2 APP 币本位合约行情-交易规则信息.ipynb4.3 APP 币本位合约行情-实时行情.ipynb4.4 APP 币本位合约行情-历史K线.ipynb4.5 APP 币本位合约交易-基础订单.ipynb4.6 APP 币本位合约交易-价格与数量.ipynb4.7 APP 币本位合约交易-限价单开仓.ipynb4.8 APP 币本位合约交易-市价单开仓.ipynb4.9 APP 币本位合约交易-限单价平仓.ipynb4.10 APP 币本位合约交易-市单价平仓.ipynb5.1 APP K线服务 下载历史K线.ipynb5.2 APP K线服务 每日定时下载昨日历史K线.ipynb5.3 APP K线服务 维护实时历史K线.ipynbv2.0.3更新日期：2024-02-08同步官方文档全部Rest接口添加代理IP与代理服务器转发功能v2.0.5修正candle_map实时K线服务因各个产品的最新K线数据更新时间的不同而造成的candle验证误删。
Package: binance-klines
BinanceKlines downloaderBinanceKlines downloader is a simple command line tool and Python library used to download OHLCV k-lines from Binance. It works asynchronously to download candlestick market data from multiple symbols concurrently.Installation$gitclonegit@github.com:fievelk/binance-klines.git# Clone the project$cdbinance-klines/$pipinstall.UsageBinanceKlines can be used both as command line tool and Python module. The tool fetches data from Binance'sGET /api/v3/klinesendpoint.From command lineYou can check all the available options usingbinance-klines --help.$binance-klines--helpusage: binance-klines [-h] [-v] --start-date START_DATE [--end-date END_DATE] [-o OUTPUT_DIR][--timeframe {1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M}]symbols [symbols ...]positional arguments:symbols               The list of currencies whose OHLCV will be fetched.options:-h, --help            show this help message and exit-v, --verbose         Increase output verbosity. -v: INFO, -vv: DEBUG.Default: WARNING.--start-date START_DATE(Required) Start downloading data from this date. E.g.: 2019-01-24 00:00:00--end-date END_DATE   Download data up to this date. E.g.: 2020-05-30 00:00:00.Default: now.-o OUTPUT_DIR, --output-dir OUTPUT_DIRThe data directory to store the output CSV files.Default: the current directory.--timeframe {1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M}The frequency of the OHLCV data to be downloaded.Default: 1h.Here is an example of how to download 1-minutes candlestick data for BTC/USDT and ETH/USDT from 18th July 2022 to 20th July 2022:$binance-klines--start-date"2022-07-18 00:00:00"\--end-date"2022-07-20 23:59:00"--timeframe'1m'--output-dir.data/\--symbolsBTC/USDTETH/USDTAs a Python moduleimportasyncioimportdatetimeimportpytzfrombinance_klines.downloaderimportBinanceKLinesDownloaderasyncdefmain():downloader=BinanceKLinesDownloader()start_date=datetime.datetime(2020,9,1).replace(tzinfo=pytz.utc)end_date=datetime.datetime(2020,9,2).replace(tzinfo=pytz.utc)# Download data for a single symbol. Data is downloaded in batches.results=awaitdownloader.fetch_klines(symbols=["BTC/USDT","ETH/USDT"],start_date=start_date,end_date=end_date,timeframe="30m",)# Results contain the klines for each symbol, in the order that was passed to the# `symbols` argument.btc_batches=results[0]eth_batches=results[1]if__name__=="__main__":asyncio.run(main())TestsTests are written usingpytest. To test compatibility among several Python versions, install the dev dependencies using Poetry and run tests using tox:$poetryinstall--withdev# Install dependencies$poetryshell# Activate Poetry environment$toxContributingYou are welcome to contribute by opening a PR with your improvements. Please make sure to run the Black linter before you do. You can usetoxfor this:$tox-elintTODOChange logging of utils.timeit to DEBUGRemove ccxt and use aiohttp directly