Skip to content
Docs
Open Legend

About

AboutGetting startedWhat is Legend?Why are we building this?Who is this for?

Platform

Web appiOSAndroidTelegram

Trading

TradingOrder typesDeposits and withdrawalsRanks

Capital

Legend CapitalCapital Affiliate Rewards

Autocopy

Copy tradingAutocopyLimits and safeguards

Social

SocialActivityFeedClansChat

Rewards

Referrals and rewards

API reference

Trading APIAuthentication and API keysAPI key actionsOrdersAccount, positions, and fillsLeverage, margin, and TWAPsRate limitsErrors and idempotency

Legend Research

Connect Legend to an AI assistantConnector permissionsMCP tools and order review

Fees

Fees

Support

FAQ
Trade onLEGEND

Trade where legends are made.

Download on theApp StoreGet it onGoogle Play
Product
TradeMobile app
Resources
BlogLearnFAQDocsCareers
© 2026 Legend. All rights reserved.
Privacy policyTerms of service
Ctrl K

Legend documentation

Connector permissions

Read and execution scopes, mainnet-only grants, OAuth credentials, and revoking access.

View Markdown ↗
Connect Legend to an AI assistantPreviousMCP tools and order reviewNext

Account and network

Legend connector grants are bound to a main account on hyperliquid_mainnet. The connector has no paper or testnet mode. Trading-enabled access can change real positions and incur losses, fees, funding, and liquidation risk.

Account access

Connectors are available to all Legend users. Sign in to Legend and approve access to your own account. The server checks account eligibility, OAuth scopes, and the associated API key on subsequent requests. Revoked or expired credentials cannot access the account. Direct Trading API access uses the same account eligibility rules.

Scopes

MCP scopePermission
legend:readRead account data and prepare a supported order review link
legend:read legend:tradeAlso invoke supported execution tools on the trading endpoint

These MCP scopes are distinct from the underlying Trading API key scopes, trading:read and trading:write. The server checks both the OAuth grant and its associated account credential. A read-only grant cannot acquire trading permission by calling the other endpoint.

Neither endpoint provides withdrawals or transfers. No tool accepts an arbitrary wallet signer or a caller-selected account override.

Consent and confirmation

The OAuth flow opens Legend for sign-in and permission approval. It uses authorization code flow with PKCE S256. Access tokens expire after one hour. Refresh tokens rotate, have a maximum lifetime of 30 days for the grant, and reuse of a consumed refresh token revokes that token family.

Approving execution permission authorizes subsequent supported tool calls. The MCP server does not enforce a separate on-site confirmation for every execution call. A host may provide additional confirmation UI; do not assume that UI exists in every integration.

The prepare_order tool is different: it creates a review link without submitting an order. You can open the link, inspect the values, and separately submit through Legend's trade form.

Revocation

Revoke the associated API key in Settings → Trading to stop future API and MCP use of that credential. Disconnecting the connector in an assistant is a separate host action. Revocation does not close existing positions, cancel resting orders, or reverse fills. Manage those separately in Legend.

Keep keys and OAuth tokens secret. Never provide a wallet private key to an assistant. See API authentication for key creation and revocation details.