Skip to main content

Build LangChain Tool: NEAR Price & Market Data

Overview

Create a LangChain tool that provides real-time NEAR price data, market metrics, and historical trends for agent applications.

Why This Matters

Agents need market data to make informed

Install

pip install -r requirements.txt

Tools

  • NEARAccountTool — see near_tool.py
  • NEARViewFunctionTool — see near_tool.py
  • NEARPriceTool — see near_tool.py
  • NEARPriceAlertTool — see near_tool.py

Usage

from near_tool import NEARAccountTool, NEARViewFunctionTool, NEARPriceTool, NEARPriceAlertTool

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_price-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

langchain_near_price-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_near_price-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for langchain_near_price-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f89978feb5ede273d36543ac70ddbd8719c80492230133af66fb16eadd9233a4
MD5 8687c1ff365fd751e193dd3f96fa92a6
BLAKE2b-256 f8f03627911909ab9efc49850cb680af45e34e85c726d00334f64115a69b44f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_near_price-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df28380cfe1b7ffa2893b7b881529f506911b4538e24904181ef5cf60d303427
MD5 84c294db62e043c46ac11da3c4e88a30
BLAKE2b-256 42c4810c0fa9ea3dc079ca6cf7947fd488c05c4c5c831e4a9d9f32146fcb580e

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