From nobody Tue Dec 27 03:00:22 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ngzsy56skz1J4xL; Tue, 27 Dec 2022 03:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ngzsy4fdhz3RGh; Tue, 27 Dec 2022 03:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672110022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QzQx4e45yIj5/RAj++d4n2mPTMKlAT0fD+jJZHd/Px0=; b=aiAwJ+71x5Xb1j4cdKEEzymK+A4JRo6mwjRmL0bWlYgW/BoCmW8VM2nztxVcRBJNAX3n6M rn7ZHxcFIdMRD408VciNeNsZjiVFaLpLl0Gn1Lz372bFYjON/tFPHP2sowGLlPhy020q+n jkrrzYFFyBnz4O42+ShbuC+9Y5uVOwskCmClT8W2uP7RoA0mYnN/hf5WCnTsPE/20Eo6yi +pArsjiu0VXj2fuVB0yiCwRvDVhHuyr2icXANFryCkkOfE48jX4QlryRI7SmkoWJW14dd9 TKRpnxjYEaDJs7FR2lIm2o4CC1b78iEttXUzcNQ5y7zOKrthLmdwPNiiSKXakw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672110022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QzQx4e45yIj5/RAj++d4n2mPTMKlAT0fD+jJZHd/Px0=; b=GWDqhCzbNzqi6Q7xMa21gibdcsYmFD4FWh76ZTKQ9Fp9WPwF684uGQhfYGMs96SwXOvdJG r/SyL1OrqQRUl0crsIh+trFYVCNJlF1PkhlKrcBVhxqp1jsQDpd9XQSswn5zeLulnWml46 w6tpUwTaX+/RzeqMHIcDhMUtERQu45Ijn6RURzBvOxVhTaU1kBuhA0UqzS01qYQtjngY7O uhSXL+qbZDCZrwK8a79B/jZPUdQfai9Gufsva32U+Ax43nSNMqPcxKzoEY2Lm9O/hRrUkX eEjF1gl58cfkWwfXiwUACWCOFpDBKPgSVMGPLjPYrEO30NOmjvajJ6zFb1DHMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672110022; a=rsa-sha256; cv=none; b=MFsI1SG0dB6Y855qK+cxqRl/axGLbZohWkcV1c9XshNZqPP07TDmsQ9Dx7a4pxP5VctXQK sxIiKCSFCwMeSYVHBHN6OlT43yg20x2Ji0LWYyc+Ljqdb8DDICgjqb7moMLZKEXxFeAns/ kniZ+0zYLunFpWqdBRH55rOseHVsP02JMA7vXja/RlujXgnKvyblhoPGGDI0JpM4MEhGiM N4sTierOlf/6DWa/4ONeo4zihN1isEKn4EVQKUQU/0xkbPPqjXAyVmxhVhlhpiVYFqvMV0 gK/cS1Uq89ubftJaditqWoYBcnuEekrVENRdL9zlgKEz3uJQ6cEi/EY8Nulptw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ngzsy3kWKztk0; Tue, 27 Dec 2022 03:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BR30MQU076942; Tue, 27 Dec 2022 03:00:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BR30MTp076941; Tue, 27 Dec 2022 03:00:22 GMT (envelope-from git) Date: Tue, 27 Dec 2022 03:00:22 GMT Message-Id: <202212270300.2BR30MTp076941@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 5dbd8aa4b02a - main - finance/py-ccxt: New port: Cryptocurrency trading API with support for 100+ exchanges List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5dbd8aa4b02a7ef3df62b3f199f867755c2594a3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5dbd8aa4b02a7ef3df62b3f199f867755c2594a3 commit 5dbd8aa4b02a7ef3df62b3f199f867755c2594a3 Author: Yuri Victorovich AuthorDate: 2022-12-27 02:59:58 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-27 02:59:58 +0000 finance/py-ccxt: New port: Cryptocurrency trading API with support for 100+ exchanges --- finance/Makefile | 1 + finance/py-ccxt/Makefile | 30 ++++++++++++++++++++++++++++++ finance/py-ccxt/distinfo | 3 +++ finance/py-ccxt/pkg-descr | 15 +++++++++++++++ 4 files changed, 49 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index d25938f7d402..a307eb77d3cb 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -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 diff --git a/finance/py-ccxt/Makefile b/finance/py-ccxt/Makefile new file mode 100644 index 000000000000..9f911fc6c15f --- /dev/null +++ b/finance/py-ccxt/Makefile @@ -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 diff --git a/finance/py-ccxt/distinfo b/finance/py-ccxt/distinfo new file mode 100644 index 000000000000..6cfff598e2b4 --- /dev/null +++ b/finance/py-ccxt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672109046 +SHA256 (ccxt-2.4.60.tar.gz) = a4a4b6520d5b940d0532675642d9a73479c3d0e5e2edf9e3e1f245aab753e9bb +SIZE (ccxt-2.4.60.tar.gz) = 3123924 diff --git a/finance/py-ccxt/pkg-descr b/finance/py-ccxt/pkg-descr new file mode 100644 index 000000000000..c64fb0dfb517 --- /dev/null +++ b/finance/py-ccxt/pkg-descr @@ -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