Skip to main content

Automatic LCOIN trading signals in your LangChain and Web3 workflows

Project description

LangCoin

PyPI version Python Versions

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:

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.0.tar.gz (5.6 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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langcoin-0.2.0.tar.gz
  • Upload date:
  • Size: 5.6 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.0.tar.gz
Algorithm Hash digest
SHA256 52d7a96ee0d41ee08fdf0dc1af85a48e984a66f48dd663730e3a0cb9c5d88581
MD5 64d48820c76bd8f6596df01705938d98
BLAKE2b-256 c5736b5354d95fa5c9a2a42aa83554b796f592b5450f4fb8628a8bc1d499f95e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: langcoin-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd14c618776d3d52abe74779cccb772e01df67360e25fbacd8635d345000680e
MD5 e40cb8ab90b6856f957f020088ceb46d
BLAKE2b-256 bd71e7ba26f078323fa2b6e7187cac4d7e63304a10dc063e0ad46fa2f53aeb0c

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