Skip to main content

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

Release files for langcoin 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langcoin 0.2.1
File Size Uploaded
langcoin-0.2.1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langcoin 0.2.1
File Interpreter ABI Platform
langcoin-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / langcoin-0.2.1.tar.gz

Download URL langcoin-0.2.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
437ff9b1440e225cd881371916647bf08cc4b40fc463b93c9b294fa3e1fdda87
BLAKE2b-256 checksum
How to use checksums
83d708ae12d2820c9a4998c8c7ad90ac0ad92fab4216165b4074f44df3855be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / langcoin-0.2.1-py3-none-any.whl

Download URL langcoin-0.2.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0313c43a86592fd66683407997307749838b8c786a3fe9cce23e61c34b05c567
BLAKE2b-256 checksum
How to use checksums
ff902e562c50c73ec7fbe523a7ae5d7ea45871634ab24aba306d2ee88f5f7435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page