Skip to main content

LangChain Agent - NEAR DeFi Trader

Build a LangChain agent template for defi trader on NEAR.

THE VIRAL LOOP: User wants defi trader agent → Uses template → Agent operates on NEAR

Deliverables:

  1. Complete LangChain agent with

Install

pip install -r requirements.txt

Tools

  • NEARAccountTool — see near_tool.py
  • NEARViewFunctionTool — see near_tool.py
  • DEXPoolInfoTool — see near_tool.py
  • DeFiPortfolioTool — see near_tool.py

Usage

from near_tool import NEARAccountTool, NEARViewFunctionTool, DEXPoolInfoTool, DeFiPortfolioTool

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_near_defi_trader-1.0.98982.tar.gz (4.1 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_near_defi_trader-1.0.98982.tar.gz.

File metadata

File hashes

Hashes for langchain_near_defi_trader-1.0.98982.tar.gz
Algorithm Hash digest
SHA256 de7c565a465f1c700237a63a4d754c814bbba85233f60da66c1a3c992bc4892e
MD5 8fa67a8138f97dbcfc6f0c33d1113f4e
BLAKE2b-256 4318fde7d8b492c3091e2ac7159d76034fb88f9b9de20ec60fabf08dd1d8d331

See more details on using hashes here.

File details

Details for the file langchain_near_defi_trader-1.0.98982-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_near_defi_trader-1.0.98982-py3-none-any.whl
Algorithm Hash digest
SHA256 181168b509b228afc721897c883f39dfc1901931be142275d7cc7120f3a0ec90
MD5 f8ec88f4e9e6f12c2cf24dbeb8ec4864
BLAKE2b-256 fb0a35fe7c8226948bc5b7265b8204a7f5737dadcd2be1807891a93ca8dac76b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.98982 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