tradernet-mcp-server

v1.0.2
io.github.verbart/tradernet-mcp-server Checked 1 day ago Published 9 months ago

MCP server for Tradernet/Freedom24 trading API — portfolio, orders, quotes, and more

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_user_data

Get initial user data (account info, portfolio summary, open positions). This is the primary command to check your account status.

get_user_info

Get user profile information by user ID

ParameterTypeDescription
user_id *numberUser ID to look up

get_portfolio

Get current portfolio positions and account balances. Returns account funds, open positions with P&L, market values, and settlement info.

place_order

Place a new trading order (buy, sell, short, margin). Returns order_id on success.

ParameterTypeDescription
action *stringOrder action
instrument *stringTicker symbol, e.g. "AAPL.US", "SBER", "SIE.EU"
order_type *stringOrder type
quantity *integerNumber of shares/lots
expirationstringOrder expiration: day, day+extended, or good-till-cancelled
limit_pricenumberLimit price (for limit and stop_limit orders)
stop_pricenumberStop price (for stop and stop_limit orders)

cancel_order

Cancel an active order by its ID

ParameterTypeDescription
order_id *numberOrder ID to cancel

set_stop_loss_take_profit

Set stop-loss and/or take-profit for a position. Pass null to leave unchanged.

ParameterTypeDescription
instrument *stringTicker symbol, e.g. "AAPL.US"
stop_loss *number | nullStop-loss price, or null to skip
take_profit *number | nullTake-profit price, or null to skip
trailing_stop_percentnumber | nullTrailing stop-loss percentage, or null to skip

get_security_info

Get detailed information about a security/ticker (name, currency, exchange, min step, etc.)

ParameterTypeDescription
ticker *stringTicker symbol, e.g. "AAPL.US", "SBER"

get_quotes_history

Get historical candlestick (OHLCV) data for a ticker. Returns arrays of high/low/open/close prices with timestamps.

ParameterTypeDescription
date_from *stringStart date in format "DD.MM.YYYY hh:mm", e.g. "01.01.2025 00:00"
date_to *stringEnd date in format "DD.MM.YYYY hh:mm", e.g. "31.01.2025 23:59"
ticker *stringTicker symbol, e.g. "AAPL.US"
timeframe *stringCandle interval in minutes: 1, 5, 15, 60 (1h), or 1440 (1d)
countintegerExtra candlesticks beyond the date range (0 = none)

search_tickers

Search for securities/tickers by name or symbol. Supports market filter with @ syntax, e.g. "AAPL@FIX" for NYSE/NASDAQ.

ParameterTypeDescription
query *stringSearch text. Use "TICKER@MARKET" to filter by market. Markets: MCX (MICEX), FORTS (derivatives), FIX (NYSE/NASDAQ), EU (Europe), KASE (Kazakhstan)

add_price_alert

Set a price alert for a ticker. You'll be notified when the price condition is met.

ParameterTypeDescription
price *stringTarget price for the alert
ticker *stringTicker symbol in Tradernet format, e.g. "AAPL.US"
trigger_type *stringWhen to trigger the alert
alert_periodstringRe-alert frequency in seconds (0 = once)
notification_typestringHow to notify: email, sms, push, or all
quote_typestringPrice basis: ltp (last trade), bap (best bid), bbp (best ask), op (open), pp (close)

delete_price_alert

Delete an existing price alert by its ID

ParameterTypeDescription
alert_id *numberAlert ID to delete

get_security_sessions

Get list of currently open security sessions (for two-factor authentication operations)

get_safety_types

Get available security session types (SMS, token, etc.)

get_best_traders

Get the ranking of best traders on the platform

get_profit_list

Get achievement/profit ranking list

get_invest_ideas

Get investment ideas/feed for a specific ticker

ParameterTypeDescription
ticker *stringTicker symbol, e.g. "AAPL.US"

get_blog_feed

Get user subscription blog feed (investment posts and ideas)

ParameterTypeDescription
pageintegerPage number for pagination

raw_api_call

Make a raw API call to any Tradernet command. Use this for commands not covered by other tools.

ParameterTypeDescription
command *stringAPI command name
paramsstringJSON string of parameters
use_v2booleanUse API v2 endpoint (/api/v2/cmd/) instead of v1