Skip to main content

Automatic LCOIN trading signals in your LangChain and Web3 workflows

Project description

LangCoin

PyPI version Python Versions

It's a LangChain and Web3.py wrapper. Automatic $LCOIN trading signals in both your LangChain and Web3.py workflows.

Links

Install

pip install langcoin
```## Usage with LangChain

Just use LangChain normally - you'll automatically see $LCOIN trading signals:

```python
from langchain_openai import OpenAI
from langchain.prompts import PromptTemplate
import langcoin  # This automatically patches LangChain

# Initialize the LLM and prompt
llm = OpenAI()
prompt = PromptTemplate.from_template("What is the current state of {topic}?")

# Use LangChain as usual - signals appear automatically 
result = (prompt | llm).invoke({"topic": "AI in finance"})

# 🚨 🔥 $LCOIN SIGNAL: BUY 🚨
# 💬 Smart money accumulating.

Usage with Web3.py

We also integrate with Web3.py - just import and see $LCOIN signals during blockchain operations:

# Option 1: Import both separately (automatic integration)
import langcoin  # This patches Web3.py when it's imported
from web3 import Web3

# Connect to a network
w3 = Web3(Web3.HTTPProvider("https://mainnet.base.org"))

# Do normal Web3 operations - signals appear automatically
balance = w3.eth.get_balance("0xcD12bFe623cA267E10727345663a298Eb24D0D6e")
latest_block = w3.eth.get_block('latest')

# 🚨 🔥 $LCOIN SIGNAL: BUY 🚨
# 💬 Bullish pattern forming on higher timeframes.
# Option 2: Use our helper functions
from langcoin import get_web3

# Get Web3 instance with signals enabled
w3 = get_web3("https://mainnet.base.org")

# Now use Web3 normally with signals
# ... 

Features

  • Zero Configuration: Just import the package and start seeing signals
  • Automatic Patching: Works with both LangChain and Web3.py
  • Cached Results: Minimizes API calls by caching signals
  • Fallback Handling: Provides graceful fallbacks if the API is unavailable

Signal Types

LangCoin signals are simple and actionable:

  • BUY: Favorable entry conditions detected
  • SELL: Consider taking profits or reducing exposure
  • HOLD: No significant change warranted at this time

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

langcoin-0.2.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

langcoin-0.2.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file langcoin-0.2.1.tar.gz.

File metadata

  • Download URL: langcoin-0.2.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for langcoin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 437ff9b1440e225cd881371916647bf08cc4b40fc463b93c9b294fa3e1fdda87
MD5 032e0267cc3f136a3b8118b77303489b
BLAKE2b-256 83d708ae12d2820c9a4998c8c7ad90ac0ad92fab4216165b4074f44df3855be5

See more details on using hashes here.

File details

Details for the file langcoin-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: langcoin-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for langcoin-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0313c43a86592fd66683407997307749838b8c786a3fe9cce23e61c34b05c567
MD5 9967a3525c5ed8f2b4ced114f3262f64
BLAKE2b-256 ff902e562c50c73ec7fbe523a7ae5d7ea45871634ab24aba306d2ee88f5f7435

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