Inspect Trading Accounts and Positions

Select a trading session and ask AI to organize the account’s open positions and recent executed deals.

What to Ask Leina to Do with MetaTraderAPI

Copy a prompt, add your details, and send it to Leina in your connected team chat.

Read open positions and executed deals over a chosen period.

For MetaTraderAPI session [ID], read account information, open positions, and executed deals from [start date] to [end date]. Summarize available balances, exposures, and realized deal results.

Get Started with MetaTraderAPI

  1. Connect Your Account

    Connect a MetaTraderAPI API key. Account reads require an active trading session.

  2. Try a Task

    Tell Leina what you need in your team chat. Include the source, destination, and expected result.

    Set Up Leina in Your Chat →
  3. Check the Result

    Review the result and any changes in the connected app.

Supported MetaTraderAPI Capabilities

The connection starts and stops MT4 or MT5 sessions and reads account data, positions, pending orders, history, and symbols. It does not place trades.

Account and trading records

Read account information, equity, margin, positions, pending orders, and historical deals.

View All 15 Actions
  • List Sessions
  • Start Session
  • Stop Session
  • Close All Sessions
  • Get Account Info
  • Get Equity
  • List Deals
  • List History Orders
  • Get Margin
  • List Orders
  • Ping Session
  • List Positions
  • Get Session Status
  • List Symbols
  • Get Symbol

Visit Provider Website ↗

Frequently Asked Questions

How do I obtain a session ID?

List active sessions or start one using the trading account login, password, broker server, and MT4 or MT5 platform.

Are pending orders the same as executed deals?

No. Pending orders are current orders; executed deals come from account history. Historical orders also include canceled and expired orders.

Can this connection open or close trades?

The exposed operations read trading records and manage sessions; trade placement and closure are not included.

Your AI employee for MetaTraderAPI

Tell Leina what you need in your team chat. Include the source, destination, and expected result.