Deploying and undeploying your algorithm
Once the metadata file has been created, you can then deploy it using the Python script named deploy.py that is provided as part of the TT Core SDK as follows:
-f <metadata xml file> -s <appkey:secret> -e <environment>
where the appkey:secret parameter correspond to your TT appkey secret credential. For example:
python deploy.py -f C:\algos\XTrailingSDKAlgoMetadata.xml -s 00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000 -e ext-uat-cert

You can undeploy a previously deployed algo using the Python script named undeploy.py that is provided as part of the TT Core SDK as follows:
-a <algo id> -s <appkey:secret> -e <environment>
where the appkey:secret parameter correspond to your TT appkey secret credential. For example:
python undeploy.py -a 14003993766928758006 -s 00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000 -e ext-uat-cert

The user running the TT Core SDK sdkalgo application needs access to the algos that is supports so it is likely the algo will need to be deployed
but that user and then shared to the users who will be placing the algo orders via TTW. To share an SDK Algo, use the share.py script as follows:
-a <algo id> -s <appkey:secret> -e <environment> -m <email>
where the appkey:secret parameter correspond to your TT appkey secret credential and email is the email address of the user with whom you want to share the algo. For example:
python share.py -a 14003993766928758006 -s 00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000 -e ext-uat-cert  -m share.WithUser@mycompany.com

To unshare an SDK Algo, use the unshare.py script as follows:
-a <algo id> -s <appkey:secret> -e <environment> -m <email>
where the appkey:secret parameter correspond to your TT appkey secret credential and email is the email address of the user with whom you no longer wish to share the algo. For example:
python unshare.py -a 14003993766928758006 -s 00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000 -e ext-uat-cert  -m share.WithUser@mycompany.com

