semvec/pypi-packages huggingface dataset:
crypto-pair 2.3.11
Normalize cryptocurrency trading pairs
Requires Python: >=3.6
Keywords: blockchain,cryptocurrency,trading

# crypto-pair

Python bindings for the [crypto-pair](https://github.com/soulmachine/crypto-crawler-rs/tree/main/crypto-pair) library.

## Quickstart

Install,

```bash
pip3 install crypto-pair
```

```python
from crypto_pair import normalize_pair

assert normalize_pair('BTCUSDT', 'binance') == 'BTC/USDT'
```

## How to build

On Mac OS X,

```bash
conda install --file requirements-dev.txt

rm -rf build crypto-pair-ffi/target
python3 setup.py bdist_wheel

# Need to create a ~/.pypirc file first
twine upload --repository testpypi dist/*
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps crypto-pair

twine upload dist/*
```

For Linux,

```bash
docker run -it --rm -v $(pwd):/project soulmachine/rust:manylinux2014 bash

/opt/python/cp36-cp36m/bin/pip3 install -r requirements-dev.txt
rm -rf build crypto-pair-ffi/target
/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel
auditwheel repair dist/*linux*.whl --plat manylinux2014_x86_64
/opt/python/cp36-cp36m/bin/twine upload --repository testpypi wheelhouse/*
```

## Test

```bash
python3 setup.py develop
pytest -s
```
portfolio-balancer 0.1.0
A tool to balance a cryptocurrency portfolio

# Crypto Portfolio Balancer

Crypto Portfolio Balancer is a Python script that helps you balance your cryptocurrency portfolio between two specified currencies using the Binance API. It reads the target balance ratio and other settings from a configuration file and can handle three currencies with a specified base currency. It can also handle the case where the base currency is equal to one of the other currencies.

## Features

- Balances your virtual portfolio between two cryptocurrencies
- Reads configuration from a TOML file
- Supports three currencies with a specified base currency
- Can handle the case where the base currency is equal to one of the other currencies
- Shows the history of your portfolio
- Reports transaction details when executed

## Installation

1. Clone this repository or download the source code.
2. Install Python 3 if you haven't already.
3. Install the required packages using the following command:

```bash
pip install -r requirements.txt
poetry build
pip install -U dist/portfolio_balancer-0.1.0-py3-none-any.whl
```

## License
This project is licensed under the MIT License. See the LICENSE file for more information.