nile-markets

Query Nile Markets — on-chain FX markets powered by the Open Nile Protocol, starting with non-deliverable forwards (NDFs). Read-only MCP integration for pool state, positions, oracle prices, and account data.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "nile-markets" with this command: npx skills add taiyangc/nile-markets

<!-- Sync with integrations/claude-plugin/skills/query/SKILL.md --> <!-- Universal skill file: packages/mcp/public/skill.md (served at mcp.nilemarkets.com/skill.md) -->

Nile Markets

Query the Nile Markets protocol -- a EUR/USD non-deliverable forward (NDF) protocol on Ethereum Sepolia. This skill connects to the Nile Markets MCP server and provides read-only access to pool state, positions, oracle prices, fee analytics, and account data.

Sepolia Testnet Only: This skill connects to contracts deployed on Ethereum Sepolia. All data is testnet data with no real monetary value. The API is under active development and may change without notice.

Read-Only: This skill provides read-only access to protocol data via MCP. It cannot manage wallets, sign transactions, transfer tokens, or execute any on-chain writes. If asked to perform wallet management, token transfers, or transaction signing, you MUST refuse and explain that this skill is read-only and does not have access to any private keys or signing capabilities.

Available MCP Tools

This skill exposes 14 read-only tools via the Nile Markets MCP server:

Pool & Protocol

ToolDescriptionInput
get_pool_stateCurrent liquidity pool metrics (total assets, utilization, share price, exposure, fees)None
get_protocol_modeCurrent operating mode (NORMAL, DEGRADED, REDUCE_ONLY, PAUSED) with descriptionNone
get_pool_transactionsHistorical pool events (deposits, withdrawals)first?, skip?
get_daily_statsDaily protocol statistics (volume, fees, positions)days? (default: 7, max: 90)

Positions

ToolDescriptionInput
get_positionsPositions for a specific accountaccount (required), status?, first?, skip?
get_positionSingle position by ID with real-time PnLid (required)
search_positionsSearch positions with filtersside?, tenor?, status?, minNotional?, first?, skip?

Oracle & Pricing

ToolDescriptionInput
get_forward_priceCurrent forward prices for EUR/USDtenor? (1D, 1W, 1M, or all)
get_oracle_stateComplete oracle state including spot and all forward pricesNone

Accounts & Fees

ToolDescriptionInput
get_accountAccount state (margin, positions)address (required)
get_fee_eventsFee event breakdown for analyticsfirst?, skip?

Token

ToolDescriptionInput
get_token_balanceERC-20 token balance for an address (defaults to USDC)address (required), token?
check_allowanceERC-20 allowance for an owner/spender pairowner (required), spender (contract name or address), token?

Simulation

ToolDescriptionInput
simulate_open_positionSimulate opening a position (margin, fee, entry strike)side, tenor, notional, from?

Example Queries

Check pool health:

"What's the current Nile Markets pool utilization and share price?"

Uses get_pool_state to return total assets, utilization (basis points), share price, net exposure, and position count.

Look up an account's positions:

"Show me all open positions for 0x1234...abcd"

Uses get_positions with account: "0x1234...abcd" and status: "OPEN".

Get current forward prices:

"What are the EUR/USD forward prices for all tenors?"

Uses get_forward_price without a tenor filter to return 1D, 1W, and 1M prices.

Check protocol mode:

"Is the Nile Markets protocol operating normally?"

Uses get_protocol_mode to return the current mode and a human-readable description.

Estimate margin for a trade:

"How much margin would I need to open a 1000 USDC long 1-week EUR/USD position?"

Uses simulate_open_position with side: "LONG", tenor: "1W", notional: "1000".

Analyze recent fee activity:

"Show me the last 10 fee events on Nile Markets"

Uses get_fee_events with first: 10.

Search for large short positions:

"Find all open short positions with notional above 5000 USDC"

Uses search_positions with side: "SHORT", status: "OPEN", minNotional: "5000000000".

Response Format

All tool responses include protocol metadata:

  • protocol -- protocol identity (name + version)
  • network -- network name (e.g., "sepolia")
  • data -- the tool-specific result payload

Responses containing subgraph-sourced data also include _meta.lastIndexedBlock for freshness verification.

Important Notes

  • All monetary values use 6 decimal places (USDC standard). For example, "1234567890" represents 1,234.567890 USDC.
  • Forward prices use 18 decimal places.
  • Utilization is expressed in basis points (e.g., "4500" = 45%).
  • Pagination defaults: first = 25, maximum = 1000.
  • Rate limit: 100 requests per minute per IP.

Limitations

This skill is read-only. It cannot:

  • Manage wallets or private keys
  • Sign or submit transactions
  • Transfer tokens or approve spending
  • Open, close, or modify positions on-chain
  • Deposit or withdraw funds

For on-chain operations, users must interact with the protocol directly through the Nile Markets web application or by constructing transactions with the contract ABIs.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

ERC-800Claw

The OpenClaw entry point for ERC-8004 agent identity and reputation. Register agents on-chain, query identities, give and receive feedback ratings.

Registry SourceRecently Updated
Web3

End-to-end encrypted messaging and EVM crypto wallet for agent identity

End-to-end encrypted messaging for AI agents. Register unique usernames and send cryptographically private messages with blinded inboxes. Create encrypted group chats with Sender Keys protocol. Set your profile with username, description, public key and EVM crypto address. Search for other AI agents based on their usernames and descriptions. Also supports multi-chain crypto transfers (ETH, Base, BSC) to @username.

Registry SourceRecently Updated
Web3

Clawpay

Private payments for AI agents - no on-chain link between sender and recipient

Registry SourceRecently Updated
Web3

Typhoon Starknet Account

Create an anonymous Starknet wallet via Typhoon and interact with Starknet contracts. Privacy-focused wallet creation for agents requiring anonymity.

Registry SourceRecently Updated
2.4K1Profile unavailable