diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 09:51:31 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 09:51:31 +0000 |
commit | ac8bdea6990c84a407a2dfd786b649034ce88fcd (patch) | |
tree | a28f99104120542403cc5830be39c64a9f84ce18 | |
parent | b2f47f62373326012d57642b2e0bc5f7517aaefc (diff) |
automatic import of python-trading-api-wrappersopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-trading-api-wrappers.spec | 685 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 687 insertions, 0 deletions
@@ -0,0 +1 @@ +/trading-api-wrappers-0.18.1.tar.gz diff --git a/python-trading-api-wrappers.spec b/python-trading-api-wrappers.spec new file mode 100644 index 0000000..2e747aa --- /dev/null +++ b/python-trading-api-wrappers.spec @@ -0,0 +1,685 @@ +%global _empty_manifest_terminate_build 0 +Name: python-trading-api-wrappers +Version: 0.18.1 +Release: 1 +Summary: Clients for popular Crypto Exchanges and other useful services +License: MIT +URL: https://github.com/snake575/trading-bots +Source0: https://mirrors.aliyun.com/pypi/web/packages/e2/f7/b1f36f38370f888c884d2559514f74d8ce622553881e9b1338ef453f0a4a/trading-api-wrappers-0.18.1.tar.gz +BuildArch: noarch + +Requires: python3-backoff +Requires: python3-importlib-metadata +Requires: python3-requests +Requires: python3-requests-toolbelt + +%description +# Trading API Wrappers + +> Python 3.6+ clients for popular **Crypto Exchanges** and other useful services. + +> **Disclaimer:** Still at an early stage of development. Rapidly evolving APIs. + +[](https://opensource.org/licenses/MIT) + +[](https://pypi.org/project/trading-api-wrappers/) + +[](https://pyup.io/repos/github/delta575/trading-api-wrappers/) + +Supported APIs: + +- [Buda](https://www.buda.com) +- [Bitfinex](https://www.bitfinex.com) +- [Bitstamp](https://www.bitstamp.net) +- [CoinDesk](https://www.coindesk.com) +- [CoinMarketCap](https://coinmarketcap.com) +- [CryptoMKT](https://www.cryptomkt.com) +- [Kraken](https://www.kraken.com) +- [OpenExchangeRates](https://openexchangerates.org) + +## Installation + +### Requirements + +- Python 3.6+ + +To install, simply use `poetry` (or `pip`, of course): + +```bash +$ poetry add trading-api-wrappers +``` + +### Dev setup + +```bash +$ poetry install +``` + +Rename `.env.example` to `.env` and configure your credentials (for tests) + +## Usage + +### Buda + +Public API: + +```python +from trading_api_wrappers import Buda +client = Buda.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Buda +client = Buda.Auth(API_KEY, API_SECRET) +``` + +Buda API Doc: +https://api.buda.com + +### Bitfinex + +Public API: + +```python +from trading_api_wrappers import Bitfinex +client = Bitfinex.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Bitfinex +client = Bitfinex.Auth(API_KEY, API_SECRET) +``` + +Bitfinex API Doc: +https://bitfinex.readme.io/v1/docs + +### Bitstamp + +Public API: + +```python +from trading_api_wrappers import Bitstamp +client = Bitstamp.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Bitstamp +client = Bitstamp.Auth(API_KEY, API_SECRET, CUSTOMER_ID) +``` + +Bitstamp API Doc: +https://www.bitstamp.net/api + +### Kraken + +Public API: + +```python +from trading_api_wrappers import Kraken +client = Kraken.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Kraken +client = Kraken.Auth(API_KEY, API_SECRET) +``` + +Kraken API Doc: +https://www.kraken.com/help/api + +### CoinDesk + +```python +from trading_api_wrappers import CoinDesk +client = CoinDesk() +``` + +CoinDesk API Doc: +https://www.coindesk.com/api + +### CoinMarketCap + +```python +from trading_api_wrappers import CoinMarketCap +client = CoinMarketCap() +``` + +CoinMarketCap API Doc: +https://coinmarketcap.com/api + +### CryptoMKT + +Public API: + +```python +from trading_api_wrappers import CryptoMKT +client = CryptoMKT.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import CryptoMKT +client = CryptoMKT.Auth(API_KEY, API_SECRET) +``` + +CryptoMKT API Doc: +https://developers.cryptomkt.com + +### OpenExchangeRates + +```python +from trading_api_wrappers import OXR +client = OXR(APP_ID) +``` + +OpenExchangeRates API Doc: +https://docs.openexchangerates.org + +### CurrencyLayer + +```python +from trading_api_wrappers import CurrencyLayer +client = CurrencyLayer(ACCESS_KEY) +``` + +CurrencyLayer API Doc: +https://currencylayer.com/documentation + +## Licence + +[](https://opensource.org/licenses/MIT) +[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdelta575%2Ftrading-api-wrappers?ref=badge_shield) + +The MIT License + +Copyright © 2017 +[Felipe Aránguiz](mailto://faranguiz575@gmail.com) | [Sebastián Aránguiz](mailto://sarang575@gmail.com) + +See [LICENSE](LICENSE) + +[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdelta575%2Ftrading-api-wrappers?ref=badge_large) + +## Donations + +Bitcoin: + + 186kDw9LFcPvup17YSrWZbFqdZzELUFad3 + +Ether: + + 0xeF38fA6c0a37A1BdB60CADd7f6e71F351F6d2583 + + +%package -n python3-trading-api-wrappers +Summary: Clients for popular Crypto Exchanges and other useful services +Provides: python-trading-api-wrappers +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-trading-api-wrappers +# Trading API Wrappers + +> Python 3.6+ clients for popular **Crypto Exchanges** and other useful services. + +> **Disclaimer:** Still at an early stage of development. Rapidly evolving APIs. + +[](https://opensource.org/licenses/MIT) + +[](https://pypi.org/project/trading-api-wrappers/) + +[](https://pyup.io/repos/github/delta575/trading-api-wrappers/) + +Supported APIs: + +- [Buda](https://www.buda.com) +- [Bitfinex](https://www.bitfinex.com) +- [Bitstamp](https://www.bitstamp.net) +- [CoinDesk](https://www.coindesk.com) +- [CoinMarketCap](https://coinmarketcap.com) +- [CryptoMKT](https://www.cryptomkt.com) +- [Kraken](https://www.kraken.com) +- [OpenExchangeRates](https://openexchangerates.org) + +## Installation + +### Requirements + +- Python 3.6+ + +To install, simply use `poetry` (or `pip`, of course): + +```bash +$ poetry add trading-api-wrappers +``` + +### Dev setup + +```bash +$ poetry install +``` + +Rename `.env.example` to `.env` and configure your credentials (for tests) + +## Usage + +### Buda + +Public API: + +```python +from trading_api_wrappers import Buda +client = Buda.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Buda +client = Buda.Auth(API_KEY, API_SECRET) +``` + +Buda API Doc: +https://api.buda.com + +### Bitfinex + +Public API: + +```python +from trading_api_wrappers import Bitfinex +client = Bitfinex.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Bitfinex +client = Bitfinex.Auth(API_KEY, API_SECRET) +``` + +Bitfinex API Doc: +https://bitfinex.readme.io/v1/docs + +### Bitstamp + +Public API: + +```python +from trading_api_wrappers import Bitstamp +client = Bitstamp.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Bitstamp +client = Bitstamp.Auth(API_KEY, API_SECRET, CUSTOMER_ID) +``` + +Bitstamp API Doc: +https://www.bitstamp.net/api + +### Kraken + +Public API: + +```python +from trading_api_wrappers import Kraken +client = Kraken.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Kraken +client = Kraken.Auth(API_KEY, API_SECRET) +``` + +Kraken API Doc: +https://www.kraken.com/help/api + +### CoinDesk + +```python +from trading_api_wrappers import CoinDesk +client = CoinDesk() +``` + +CoinDesk API Doc: +https://www.coindesk.com/api + +### CoinMarketCap + +```python +from trading_api_wrappers import CoinMarketCap +client = CoinMarketCap() +``` + +CoinMarketCap API Doc: +https://coinmarketcap.com/api + +### CryptoMKT + +Public API: + +```python +from trading_api_wrappers import CryptoMKT +client = CryptoMKT.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import CryptoMKT +client = CryptoMKT.Auth(API_KEY, API_SECRET) +``` + +CryptoMKT API Doc: +https://developers.cryptomkt.com + +### OpenExchangeRates + +```python +from trading_api_wrappers import OXR +client = OXR(APP_ID) +``` + +OpenExchangeRates API Doc: +https://docs.openexchangerates.org + +### CurrencyLayer + +```python +from trading_api_wrappers import CurrencyLayer +client = CurrencyLayer(ACCESS_KEY) +``` + +CurrencyLayer API Doc: +https://currencylayer.com/documentation + +## Licence + +[](https://opensource.org/licenses/MIT) +[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdelta575%2Ftrading-api-wrappers?ref=badge_shield) + +The MIT License + +Copyright © 2017 +[Felipe Aránguiz](mailto://faranguiz575@gmail.com) | [Sebastián Aránguiz](mailto://sarang575@gmail.com) + +See [LICENSE](LICENSE) + +[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdelta575%2Ftrading-api-wrappers?ref=badge_large) + +## Donations + +Bitcoin: + + 186kDw9LFcPvup17YSrWZbFqdZzELUFad3 + +Ether: + + 0xeF38fA6c0a37A1BdB60CADd7f6e71F351F6d2583 + + +%package help +Summary: Development documents and examples for trading-api-wrappers +Provides: python3-trading-api-wrappers-doc +%description help +# Trading API Wrappers + +> Python 3.6+ clients for popular **Crypto Exchanges** and other useful services. + +> **Disclaimer:** Still at an early stage of development. Rapidly evolving APIs. + +[](https://opensource.org/licenses/MIT) + +[](https://pypi.org/project/trading-api-wrappers/) + +[](https://pyup.io/repos/github/delta575/trading-api-wrappers/) + +Supported APIs: + +- [Buda](https://www.buda.com) +- [Bitfinex](https://www.bitfinex.com) +- [Bitstamp](https://www.bitstamp.net) +- [CoinDesk](https://www.coindesk.com) +- [CoinMarketCap](https://coinmarketcap.com) +- [CryptoMKT](https://www.cryptomkt.com) +- [Kraken](https://www.kraken.com) +- [OpenExchangeRates](https://openexchangerates.org) + +## Installation + +### Requirements + +- Python 3.6+ + +To install, simply use `poetry` (or `pip`, of course): + +```bash +$ poetry add trading-api-wrappers +``` + +### Dev setup + +```bash +$ poetry install +``` + +Rename `.env.example` to `.env` and configure your credentials (for tests) + +## Usage + +### Buda + +Public API: + +```python +from trading_api_wrappers import Buda +client = Buda.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Buda +client = Buda.Auth(API_KEY, API_SECRET) +``` + +Buda API Doc: +https://api.buda.com + +### Bitfinex + +Public API: + +```python +from trading_api_wrappers import Bitfinex +client = Bitfinex.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Bitfinex +client = Bitfinex.Auth(API_KEY, API_SECRET) +``` + +Bitfinex API Doc: +https://bitfinex.readme.io/v1/docs + +### Bitstamp + +Public API: + +```python +from trading_api_wrappers import Bitstamp +client = Bitstamp.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Bitstamp +client = Bitstamp.Auth(API_KEY, API_SECRET, CUSTOMER_ID) +``` + +Bitstamp API Doc: +https://www.bitstamp.net/api + +### Kraken + +Public API: + +```python +from trading_api_wrappers import Kraken +client = Kraken.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import Kraken +client = Kraken.Auth(API_KEY, API_SECRET) +``` + +Kraken API Doc: +https://www.kraken.com/help/api + +### CoinDesk + +```python +from trading_api_wrappers import CoinDesk +client = CoinDesk() +``` + +CoinDesk API Doc: +https://www.coindesk.com/api + +### CoinMarketCap + +```python +from trading_api_wrappers import CoinMarketCap +client = CoinMarketCap() +``` + +CoinMarketCap API Doc: +https://coinmarketcap.com/api + +### CryptoMKT + +Public API: + +```python +from trading_api_wrappers import CryptoMKT +client = CryptoMKT.Public() +``` + +Authenticated API: + +```python +from trading_api_wrappers import CryptoMKT +client = CryptoMKT.Auth(API_KEY, API_SECRET) +``` + +CryptoMKT API Doc: +https://developers.cryptomkt.com + +### OpenExchangeRates + +```python +from trading_api_wrappers import OXR +client = OXR(APP_ID) +``` + +OpenExchangeRates API Doc: +https://docs.openexchangerates.org + +### CurrencyLayer + +```python +from trading_api_wrappers import CurrencyLayer +client = CurrencyLayer(ACCESS_KEY) +``` + +CurrencyLayer API Doc: +https://currencylayer.com/documentation + +## Licence + +[](https://opensource.org/licenses/MIT) +[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdelta575%2Ftrading-api-wrappers?ref=badge_shield) + +The MIT License + +Copyright © 2017 +[Felipe Aránguiz](mailto://faranguiz575@gmail.com) | [Sebastián Aránguiz](mailto://sarang575@gmail.com) + +See [LICENSE](LICENSE) + +[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdelta575%2Ftrading-api-wrappers?ref=badge_large) + +## Donations + +Bitcoin: + + 186kDw9LFcPvup17YSrWZbFqdZzELUFad3 + +Ether: + + 0xeF38fA6c0a37A1BdB60CADd7f6e71F351F6d2583 + + +%prep +%autosetup -n trading-api-wrappers-0.18.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-trading-api-wrappers -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.18.1-1 +- Package Spec generated @@ -0,0 +1 @@ +9f4484026f50c7f29c8662762fb0e3c3 trading-api-wrappers-0.18.1.tar.gz |