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)

Download files

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

Source Distribution

langchain_chain_near_defi_arbitrage-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file langchain_chain_near_defi_arbitrage-1.0.0.tar.gz.

File metadata

File hashes

Hashes for langchain_chain_near_defi_arbitrage-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3117d1e4cb47e23662b7f2117d4bdc88691c519af6415e25ad25341843f6edb7
MD5 d46639b10879f6f512072ad910e49172
BLAKE2b-256 449bddae825ce7173a166b4f202665f2a00c3fc109036f26d3383c45e2cc433a

See more details on using hashes here.

File details

Details for the file langchain_chain_near_defi_arbitrage-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_chain_near_defi_arbitrage-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb627f01dc3fe0f0f5a27ac5e05a8a0a306b485ff20b9a2e90a9356b57c8e61
MD5 dec6d25b8225ddf98b2fb404b407c7cc
BLAKE2b-256 a23fa3df000cc15dac79fec6e167d81d65ea36a832f29e6d2caf449a33ba6e62

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

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