Skip to main content

No project description provided

Project description

Cuckoo

Cuckoo is a price alarm tool for assets. It can track the price of the asset you desire using various data sources such as Coingecko and Geckoterminal. Once an asset you are monitoring reaches the target price you set, Cuckoo will send you a message.

Setup

Ensure you have Python 3.10 or above installed. You can download and install (or update to) the latest release of Cuckoo with the following command:

pip install t2og-cuckoo

Configuration

There are two types of configuration: environment variables to configure Cuckoo, and a watchlist config where you can specify what assets you want to track the price of when using Config-based usage.

For sending messages, you have the flexibility to either use your own email server or leverage the Gmail API.

To use your own email server, set the following environment variables:

SMTP_SERVER=mail.yourdomain.com
SMTP_PORT=587
SMTP_USER=info
SMTP_PASSWORD=password
SMTP_EMAIL=info@yourdomain.com

Alternatively, if you prefer to use the Gmail API, set the following environment variables:

GMAIL_TOKEN=token.json
GMAIL_FROM=yourname@gmail.com

The default refresh time is 6 minutes; however, you can modify this interval through the following environment variables. For instance, setting it to refresh the data every 30 seconds can be done as shown below:

REFRESH_MINUTES=0.5

[!NOTE] Setting the refresh interval too low may result in an Error 429 due to rate limits imposed by CoinGecko or other data sources.

Command-line usage

For instance, if you want to track the price of Bitcoin and ETH, and receive a message when ETH's price hits 3800, you can input the following command:

cuckoo --watch_tokens bitcoin,ethereum --check_token ethereum --checker higher --target_price 3800 --send_mail yourname@domainname.com

Config-based usage

You can create a YAML config file like the following:

tokens: 
  - symbol: 
      id: bitcoin
  - symbol: 
      id: bonk
      gt: 0.000030
      lte: 0.000028
  - pool: 
      network: eth
      address: "0x971add32ea87f10bd192671630be3be8a11b8623"
      name: CRV / cvxCRV
      attribute: quote_token_price_base_token
      gte: 0.92
      lte: 0.89
  - pool:
      network: solana
      address: 3ne4mWqdYuNiYrYZC9TrA3FcfuFdErghH97vNPbjicr1
      name: BONK / SOL
      attribute: base_token_price_usd
      gte: 0.000030
      lte: 0.000028

displays: 
    - console:

messengers:
    - console:
    - mail: [yourname@domainname.com]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t2og-cuckoo-0.0.4b4.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t2og_cuckoo-0.0.4b4-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file t2og-cuckoo-0.0.4b4.tar.gz.

File metadata

  • Download URL: t2og-cuckoo-0.0.4b4.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for t2og-cuckoo-0.0.4b4.tar.gz
Algorithm Hash digest
SHA256 c3a9ef7d1f9deda4619df74a1b0ecb580450fa23929e0ff19ebdcdb9900fd260
MD5 928f114d685e9a58a850a2d75f209dde
BLAKE2b-256 a3490d2831f7327466e24c76fd546f9e05119eaa722bf7c5a2f413ac1029663e

See more details on using hashes here.

File details

Details for the file t2og_cuckoo-0.0.4b4-py3-none-any.whl.

File metadata

  • Download URL: t2og_cuckoo-0.0.4b4-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for t2og_cuckoo-0.0.4b4-py3-none-any.whl
Algorithm Hash digest
SHA256 66516fd42c07a24c6b1ae548f304a266dff82124a11c8ed6e1a16f49e16358c7
MD5 58e7d4df3866d1e7881567790ad3d69e
BLAKE2b-256 d61b00e11838e678d9bed5498a4545a302d747f92b276a68936ee1838f47fe61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page