License
MetaPortAPI works free on demo accounts. A paid license (Retail, Professional or Unlimited — see pricing) unlocks live accounts and higher limits.
Install your license
Section titled “Install your license”- After purchase you receive a file named
MetaPortAPI.licby email. - In MetaTrader 5 open File → Open Data Folder and go to MQL5 → Files.
- Copy
MetaPortAPI.licinto that folder (keep the exact name). - Within a minute the EA picks it up — the Experts tab shows
MetaPortAPI license: PROFESSIONAL license for account 12345678, valid until 2027.10.28.
The file is encrypted and signed; editing it makes it invalid. It is tied to the MetaTrader account number on your order (Unlimited licenses work for every account), not to a computer, so you can move the account to any PC or VPS.
Check your license
Section titled “Check your license”curl "http://127.0.0.1:81/v1/license"{"MSG":"LICENSE_INFO","PLAN":"PROFESSIONAL","STATUS":"PROFESSIONAL license for account 12345678, valid until 2027.10.28", "LICENSED_TO":"Your Name","LICENSE_LOGIN":"12345678","EXPIRES":"2027.10.28","ACCOUNT":12345678,"DEMO_ACCOUNT":false, "LIVE_ALLOWED":true,"REMOTE_ALLOWED":true,"SESSION_SECONDS_LEFT":null, "ERROR_ID":0,"ERROR_DESCRIPTION":"The operation completed successfully"}Legacy TCP: {"MSG":"LICENSE_INFO"}.
| Free | Retail | Professional | Unlimited | |
|---|---|---|---|---|
| Demo accounts | ✓ | ✓ | ✓ | ✓ |
| Live accounts | – | 1 | 1 | all |
| All API features | ✓ | ✓ | ✓ | ✓ |
| Session length | 7 hours | no limit | no limit | no limit |
| Remote connections | – | – | ✓ | ✓ |
- Free works on demo accounts only. Each session runs for 7 hours; after that every command returns
ERROR_ID 9002and streams stop. Restart MetaTrader 5 (or re-attach the EA) to start a new session.SESSION_SECONDS_LEFTin/v1/licenseshows the time remaining. - On a live account without a valid license every command returns
ERROR_ID 9001(License required). - An expired license falls back to the Free plan.
Renewal
Section titled “Renewal”Subscriptions renew automatically and you receive a new license file each period; cancel any time before the renewal date. [CUSTOMER PORTAL LINK]