finance/py-ccxt: New port: Cryptocurrency trading API with support for 100+ exchanges

This commit is contained in:
Yuri Victorovich 2022-12-26 18:59:58 -08:00
parent 808d0facae
commit 5dbd8aa4b0
4 changed files with 49 additions and 0 deletions

View File

@ -101,6 +101,7 @@
SUBDIR += py-backtrader
SUBDIR += py-bitcoin
SUBDIR += py-bt
SUBDIR += py-ccxt
SUBDIR += py-ebaysdk
SUBDIR += py-exchange-calendars
SUBDIR += py-ffn

30
finance/py-ccxt/Makefile Normal file
View File

@ -0,0 +1,30 @@
PORTNAME= ccxt
DISTVERSION= 2.4.60
CATEGORIES= finance python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Cryptocurrency trading API with support for 100+ exchanges
WWW= https://github.com/ccxt/ccxt
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=2018.1.18:security/py-certifi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cryptography>=2.6.1:security/py-cryptography@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.18.4:www/py-requests@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
USES= python:3.6+
USE_PYTHON= distutils autoplist pytest # 2 tests fail, see https://github.com/ccxt/ccxt/issues/16221
NO_ARCH= yes
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-extract: # workaround for https://github.com/ccxt/ccxt/issues/16220
@${TOUCH} ${WRKSRC}/README.md
.include <bsd.port.mk>

3
finance/py-ccxt/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1672109046
SHA256 (ccxt-2.4.60.tar.gz) = a4a4b6520d5b940d0532675642d9a73479c3d0e5e2edf9e3e1f245aab753e9bb
SIZE (ccxt-2.4.60.tar.gz) = 3123924

15
finance/py-ccxt/pkg-descr Normal file
View File

@ -0,0 +1,15 @@
The CCXT library is used to connect and trade with cryptocurrency exchanges and
payment processing services worldwide. It provides quick access to market data
for storage, analysis, visualization, indicator development, algorithmic
trading, strategy backtesting, bot programming, and related software
engineering.
It is intended to be used by coders, developers, technically-skilled traders,
data-scientists and financial analysts for building trading algorithms.
Current feature list:
* support for many cryptocurrency exchanges - more coming soon
* fully implemented public and private APIs
* optional normalized data for cross-exchange analytics and arbitrage
* an out of the box unified API that is extremely easy to integrate
* works in Node 10.4+, Python 3, PHP 7.0+, and web browsers