Skip to main content

LangChain Agent - NEAR Liquidator

Build a LangChain agent template for liquidator on NEAR.

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

Deliverables:

  1. Complete LangChain agent with t

Install

pip install -r requirements.txt

Tools

  • NEARAccountTool — see near_tool.py
  • NEARViewFunctionTool — see near_tool.py
  • ScanLiquidatablePositionsTool — see near_tool.py
  • EstimateLiquidationProfitTool — see near_tool.py

Usage

from near_tool import NEARAccountTool, NEARViewFunctionTool, ScanLiquidatablePositionsTool, EstimateLiquidationProfitTool

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

Metadata

Release files for langchain-near-liquidator 1.0.98930

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-near-liquidator 1.0.98930
File Size Uploaded
langchain_near_liquidator-1.0.98930.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-near-liquidator 1.0.98930
File Interpreter ABI Platform
langchain_near_liquidator-1.0.98930-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / langchain_near_liquidator-1.0.98930.tar.gz

Download URL langchain_near_liquidator-1.0.98930.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
40bdb64fc1a8f61e3e7b1e2a1c7b6e6b3b67a918c93fec33c600dd4f1d34e22e
BLAKE2b-256 checksum
How to use checksums
6589320f2e80d7f66776878901460b19c08fe3a8806d946c6b6fa8afa37a88c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / langchain_near_liquidator-1.0.98930-py3-none-any.whl

Download URL langchain_near_liquidator-1.0.98930-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27cdff0113987949c0cf272c31c670cdcb75ecf52b96e8fdcf9f7724490a7336
BLAKE2b-256 checksum
How to use checksums
bb865117227da5ab4f4eb2a72288888967c852cc7f9cd4a0e0db706c296b12b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.0.98930 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