SDK for MetaApi, a professional cloud forex API providing MetaTrader REST and websocket APIs for MT4/MT5. Includes CopyFactory copy trading API. Current version 29.1.1, released monthly.
pip install metaapi-cloud-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize MetaApi client and list MT4/MT5 accounts.
Use MetaApi(token='...', region='...') instead of MetaApi('...', '...').Replace 'from metaapi_cloud_sdk import MetaApiSDK' with 'from metaapi_cloud_sdk import MetaApi'.
try:
api = MetaApi(token=token)
except Exception as e:
print('Auth failed:', e)pip install metaapi-cloud-sdk and use import from metaapi_cloud_sdk.
Use keyword arguments: MetaApi(token='...', region='...').
Reinitialize the client or implement reconnection logic. Ensure your network allows outgoing WebSocket connections on port 443.
No dependency data recorded yet.