A visually enhanced terminal application for real-time cryptocurrency price checks, K-line charts, and monitoring the total value of all virtual assets.
Project description
🚀 cpc_py 🚀
Crypto Price Command
A visually enhanced terminal application for real-time cryptocurrency price tracking, K-line charts, and monitoring the total value of all virtual assets.
It also supports tracking multiple user accounts, recording their crypto holdings and quantities for convenient real-time portfolio valuation.
All data comes from the APIs of Mexc SDK.
✅ Getting Started ✅
cpc_py requires Python 3.9+
pip install cpc_py
📌 Commands Overview 📌
Commands like users, user, favorite, and asset require user-provided data before they can be used.
| Command | Requires user |
Description |
|---|---|---|
symbols |
❌ No | View available crypto currency symbols. |
price |
❌ No | Check real-time crypto currency prices |
kline |
❌ No | Display K-line (candlestick) charts |
users |
✅ Yes | Display the user list, default value is inserted on first use |
user |
✅ Yes | A user must be created first, but a default value is inserted on first use |
favorite |
✅ Yes | Edit favorite list by using option command |
asset |
✅ Yes | Edit asset list by using option command |
🔍 Documents 🔍
-
cpc symbols [--option]-
Description:
Use the
symbolscommand to search for valid cryptocurrency symbols. -
Usage:
cpc symbols [--option]
-
Behavior:
-
If no
optionis provided, the command will return all available symbols sorted inA-Zorder. -
If an
optionis provided, it will return similar available symbols based on the input. -
Example
cpc symbolscpc symbols xr
-
-
-
cpc price [symbol list]-
Description:
Use the
pricecommand to search real-time price. -
Usage:
cpc price [symbol list]
-
Behavior:
-
Example
cpc price btcusdt ethusdt solusdt
-
-
-
cpc kline [symbol] [--interval] [--limit]-
Description:
Use the
klinecommand to display K-line charts. -
Usage:
cpc kline [symbol] [--interval] [--limit]
-
Behavior:
-
intervalonly accepts the following values['1m', '5m', '15m', '30m', '60m', '4h', '8h', '1d', '1W', '1M']
-
Example
cpc kline btcusdt --interval 1W
-
-
-
cpc users-
Description:
Use the
userscommand to display user list and show which user is targeted. -
Usage:
cpc users -
Behavior:
-
Example
cpc users
-
-
Extension:
-
cpc switch_user [user_id]Use the
switch_usercommand to switch the target.-
example
cpc switch_user 3
-
-
-
-
cpc user-
Description:
Use the
usercommand to display the detail infomation of the targeted user. -
Usage:
cpc user -
Behavior:
-
Example
cpc user
-
-
Extension:
-
cpc create_user [name]Use the
create_usercommand to create a new user, and that will be targeted immediately.-
example
cpc create_user Tom's Bitget account
-
-
cpc update_user [user_id] [name]Use the
update_usercommand to update user's name by user_id.-
example
cpc update_user 2 Binance wallet
-
-
cpc remove_user [user_id]Use the
remove_usercommand to remove user by user_id.-
example
cpc remove_user 2
-
-
-
-
cpc favorite-
Description:
Use the
favoritecommand to fetch price details for all crypto currencies in the targeted user's favorite list. -
Usage:
cpc favorite -
Behavior:
-
Example
cpc favorite
-
-
Extension:
-
cpc add_favorite [symbol list]Use the
add_favoritecommand to add new symbols to the favorite list.-
example
cpc add_favorite btcusdt ethusdt
-
-
cpc remove_favorite [symbol list]Use the
remove_favoritecommand to remove symbols from the targeted user's favorite list.-
example
cpc remove_favorite btcusdt ethusdt
-
-
-
-
cpc asset-
Description:
Use the
assetcommand to calculate market value for all crypto currencies in the targeted user's asset list. -
Usage:
cpc asset -
Behavior:
-
Example
cpc asset
-
-
Extension:
-
cpc add_asset [asset list]Use the
add_assetcommand to add new symbols to the asset list.-
example
cpc add_asset btcusdt 0.001 ethusdt 0.25
-
-
cpc update_asset[asset list]User the
update_assetcommand to update amount of the asset.-
example
cpc update_asset btcusdt 0.002 ethusdt 0.35
-
-
cpc remove_asset [asset list]Use the
remove_assetcommand to remove symbols from the targeted user's asset list.-
example
cpc remove_asset btcusdt ethusdt
-
-
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cpc_py-1.0.1.tar.gz.
File metadata
- Download URL: cpc_py-1.0.1.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8380370a12a3a80c7ca136bf7149cd47f2cf0d60970216ab153d239770942b2
|
|
| MD5 |
be6431f07c7c06368ca83041a6df00e4
|
|
| BLAKE2b-256 |
23fc9da00df51215df747d1710b2e738c41e7ddc034f6e6cc5c373135ea22a42
|
File details
Details for the file cpc_py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: cpc_py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e495e12360a44668b81c3af765f29246de2116b82dbb949c3c4860ac88bfae90
|
|
| MD5 |
4930ac236f19efd1b84eebd618c9952d
|
|
| BLAKE2b-256 |
5e06ea47c75fb99da96d4118ddb06d2a25c828222c214576cfedb15a5e812894
|