Skip to main content

LangChain Chain - NEAR DeFi arbitrage

Build a LangChain chain for DeFi arbitrage on NEAR.

Deliverables:

  1. LangChain chain with multiple tools
  2. Orchestration logic
  3. Examples
  4. Published to PyPI

Success Metric: 20+ downloads

Install

pip install -r requirements.txt

Tools

  • NEARAccountTool — see near_tool.py
  • NEARViewFunctionTool — see near_tool.py
  • ArbitrageOpportunityTool — see near_tool.py
  • RefFinanceSwapTxTool — see near_tool.py

Usage

from near_tool import NEARAccountTool, NEARViewFunctionTool, ArbitrageOpportunityTool, RefFinanceSwapTxTool

tool = NEARAccountTool()
result = tool._run(account_id='example.near')
print(result)

Metadata

Release files for langchain-chain-near-defi-arbitrage 1.0.0

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

Source distribution (sdist)

Source distribution for langchain-chain-near-defi-arbitrage 1.0.0
File Size Uploaded
langchain_chain_near_defi_arbitrage-1.0.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-chain-near-defi-arbitrage 1.0.0
File Interpreter ABI Platform
langchain_chain_near_defi_arbitrage-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / langchain_chain_near_defi_arbitrage-1.0.0.tar.gz

Download URL langchain_chain_near_defi_arbitrage-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3117d1e4cb47e23662b7f2117d4bdc88691c519af6415e25ad25341843f6edb7
BLAKE2b-256 checksum
How to use checksums
449bddae825ce7173a166b4f202665f2a00c3fc109036f26d3383c45e2cc433a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / langchain_chain_near_defi_arbitrage-1.0.0-py3-none-any.whl

Download URL langchain_chain_near_defi_arbitrage-1.0.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cb627f01dc3fe0f0f5a27ac5e05a8a0a306b485ff20b9a2e90a9356b57c8e61
BLAKE2b-256 checksum
How to use checksums
a23fa3df000cc15dac79fec6e167d81d65ea36a832f29e6d2caf449a33ba6e62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

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