Skip to content

Licensing

The EA and the SDK are two products with their own license: a license file for the EA and a license key for the SDK. Every plan includes both, for MetaTrader 4 and MetaTrader 5: the plans, the accounts and the limits are the same on both platforms.

Without a license: demo mode

The SDK works without a license key with demo accounts, so that you can test it with your broker before you buy:

  • up to 1 lot per order,
  • up to 5 symbols per subscription,
  • the last 30 days of history and candles,
  • the last 30 days of the economic calendar, without future events.

Plans

Free Retail Professional Unlimited
Demo accounts Yes Yes Yes Yes
Live accounts No 1 1 Many, at the same time
Lot size 1 lot max 1 lot max Unlimited Unlimited
Symbols per subscription 5 5 Unlimited Unlimited
History and candles Last 30 days Last 30 days Unlimited Unlimited
Economic calendar Last 30 days Unlimited Unlimited Unlimited

The Unlimited plan is designed for the SDK: one program with as many live accounts as you need, on a limited number of computers. Contact us to adjust it to your case.

Using your license key

You receive the key by email after the payment. The same key works with MetaTrader 4 and MetaTrader 5. Pass it when you create the client:

var client = new MT5WebClient(url, new MT5WebClientOptions { LicenseKey = "YOUR-LICENSE-KEY" });
var client4 = new MT4WebClient(server, new MT4WebClientOptions { LicenseKey = "YOUR-LICENSE-KEY" });
client = MT5WebClient(url, MT5WebClientOptions(license_key="YOUR-LICENSE-KEY"))
client4 = MT4WebClient(server, MT4WebClientOptions(license_key="YOUR-LICENSE-KEY"))

For the other languages, see the line with the license key in the example of the package: licenseKey(...) in Java, license_key in C++ and Rust.

  • The first run needs an internet connection to activate the key. After that, the SDK checks the license when it starts and periodically while it runs.
  • The key renews automatically with your subscription: you do not have to change it.
  • client.license tells you the plan, the authorised accounts and the limits that apply to the current session.

What is sent in a license check is described in the Privacy Policy.

Each version works for three years

Each version of the SDK works for 3 years from its release, so that everyone runs an up-to-date, supported version. Your program warns you 60 days before. Then download the latest version from the download page, free with your subscription. Your code does not need to change.

Your responsibility

MTsocketAPI is a tool for developers. Test your programs with a demo account before you use them with real money: you are responsible for the orders that your programs send. See the Terms of Service.