Skip to content
Reference

Security and Privacy

How VarianTrade handles credentials, encryption, scoped access, and user privacy.

Full documentation context

Overview

VarianTrade is built with a user-owned model integration architecture. This design ensures that you retain ownership of your API credentials, subscription accounts, and trading decisions.

Credential Handling and Encryption

  • Broker passwords are passed to MetaCopier to log in to your MT5 account. VarianTrade does not keep them. The bot deletes your login and password messages from the chat as soon as it reads them.
  • AI provider keys (OpenAI, Anthropic, DeepSeek, Gemini) are sent in your private chat with the bot when it asks for one. The bot deletes the message immediately, checks the key with the provider, and stores only an encrypted copy. You see the last four characters; nothing reads a key back out.
  • Never paste a password, key or cookie into an ordinary chat message, a group, or a support ticket.

Granular Scopes and Approvals

External integrations operate under a permission model called scopes. These scopes ensure that an AI application is only granted the minimum permissions necessary:

  • account.read: Grants access to non-sensitive account metadata.
  • portfolio.read: Grants access to open positions and realized P&L metrics.
  • risk.read: Grants access to configured risk settings and sizing rules.
  • signals.read: Grants access to recent trading recommendations.
  • market.read: Grants access to fetch live price snapshots.
  • trade.propose: Grants permission to suggest a trade proposal.

Every permission request must be approved by the user through a Telegram confirmation step before any tokens or access codes are issued.

Immediate Revocation

You retain absolute authority to terminate any connection or device.

  • Immediate Expiration: Revoking a connection via /ai_connections deletes the associated secret reference, revokes active OAuth tokens, and replaces local bridge device secrets with randomized, unusable placeholder hashes.
  • Open Job Cancellation: Revoking a device instantly cancels any running or queued AI jobs associated with it.

Messaging Security

To protect your accounts from credential harvesting or accidental leakage:

  • Immediate Message Deletion: When you enroll an API key in a private Telegram chat, the bot is programmed to delete your message from the chat history immediately before validating the credential.
  • No Plaintext Prompts: VarianTrade will never prompt you to paste broker passwords, API keys, or browser session cookies into a public group chat, support ticket, or ordinary message. All key registrations are restricted to private chats during an active configuration flow.

Unlinking and Data Control

If you wish to disconnect your Telegram account from VarianTrade:

  • The /unlink Command: You can run /unlink in Telegram to request unlinking.
  • Notification Cessation: Confirming the request deletes the link between your Telegram account and the database, immediately halting all alerts, signal notifications, and chat actions.