TradingMotionAPI
Click here for a complete list of operations.
GetStrategyVersionDetails
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /api/webservice.asmx HTTP/1.1 Host: www.tradingmotion.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.tradingmotion.com/GetStrategyVersionDetails" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetStrategyVersionDetails xmlns="http://www.tradingmotion.com/"> <SID>string</SID> <IdStrategyVersion>int</IdStrategyVersion> <InitialDate>string</InitialDate> <EndDate>string</EndDate> <OutputCurrency>string</OutputCurrency> <CustomCommission>decimal</CustomCommission> <CustomSlippage>decimal</CustomSlippage> </GetStrategyVersionDetails> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetStrategyVersionDetailsResponse xmlns="http://www.tradingmotion.com/"> <GetStrategyVersionDetailsResult> <Result>string</Result> <ErrorMessage>string</ErrorMessage> <ResponseData> <IdStrategyVersion>int</IdStrategyVersion> <StrategyName>string</StrategyName> <StrategyVersionName>string</StrategyVersionName> <Intraday>string</Intraday> <BarType>string</BarType> <BarCompression>int</BarCompression> <CurrentPosition>int</CurrentPosition> <CurrentPositionTime>dateTime</CurrentPositionTime> <MaxOpenPosition>int</MaxOpenPosition> <ProductID>string</ProductID> <HasClients>string</HasClients> <ReleaseDate>string</ReleaseDate> <FirstBackTestedDate>string</FirstBackTestedDate> <FirstTradeDate>string</FirstTradeDate> <OutputCurrency>string</OutputCurrency> <RecommendedCapital>int</RecommendedCapital> <RequiredCapital>int</RequiredCapital> <TotalPL>decimal</TotalPL> <AnnualPL>decimal</AnnualPL> <PercentWinningSessions>decimal</PercentWinningSessions> <ProfitFactor>decimal</ProfitFactor> <WinLossRatio>decimal</WinLossRatio> <AnalyzedSessions>int</AnalyzedSessions> <AnalyzedSessions_SinceLive>int</AnalyzedSessions_SinceLive> <TotalPL_SinceLive>decimal</TotalPL_SinceLive> <AnnualPL_SinceLive>decimal</AnnualPL_SinceLive> <AnnualizedROI>decimal</AnnualizedROI> <AnnualizedROI_SinceLive>decimal</AnnualizedROI_SinceLive> <MaxDD>decimal</MaxDD> <MaxDD_EndDate>string</MaxDD_EndDate> <MaxDD_SinceLive>decimal</MaxDD_SinceLive> <CurrentDD>decimal</CurrentDD> <CurrentDD_StartDate>string</CurrentDD_StartDate> <WorstSession>decimal</WorstSession> <WorstSession_Date>string</WorstSession_Date> <WorstSessionPct>decimal</WorstSessionPct> <BestSession>decimal</BestSession> <BestSession_Date>string</BestSession_Date> <BestSessionPct>decimal</BestSessionPct> <WinningSessionAverage>decimal</WinningSessionAverage> <LosingSessionAverage>decimal</LosingSessionAverage> <CurrentRunUp>decimal</CurrentRunUp> <License_MonthlyCost>decimal</License_MonthlyCost> <License_nUnits>int</License_nUnits> <License_Currency>string</License_Currency> <License_FreeSessions>int</License_FreeSessions> <Commission>decimal</Commission> <SlippagePerContract>decimal</SlippagePerContract> <SlippagePerContract_MoneyValue>decimal</SlippagePerContract_MoneyValue> <SlippagePerContract_SinceLive>decimal</SlippagePerContract_SinceLive> <SlippagePerContract_MoneyValue_SinceLive>decimal</SlippagePerContract_MoneyValue_SinceLive> <PctTimeInMarket>decimal</PctTimeInMarket> <AvgTradeDuration>decimal</AvgTradeDuration> <AvgSlippageLast50SessionsWithLiveTrades>decimal</AvgSlippageLast50SessionsWithLiveTrades> <AvgSlippageLast50SessionsWithLiveTrades_Product>decimal</AvgSlippageLast50SessionsWithLiveTrades_Product> <SharpeRatio>decimal</SharpeRatio> <SortinoRatio>decimal</SortinoRatio> <SterlingRatio>decimal</SterlingRatio> <MARRatio>decimal</MARRatio> <TM_Score>decimal</TM_Score> <TM_Rating>int</TM_Rating> <StatsLastUpdated>dateTime</StatsLastUpdated> </ResponseData> </GetStrategyVersionDetailsResult> </GetStrategyVersionDetailsResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /api/webservice.asmx HTTP/1.1 Host: www.tradingmotion.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetStrategyVersionDetails xmlns="http://www.tradingmotion.com/"> <SID>string</SID> <IdStrategyVersion>int</IdStrategyVersion> <InitialDate>string</InitialDate> <EndDate>string</EndDate> <OutputCurrency>string</OutputCurrency> <CustomCommission>decimal</CustomCommission> <CustomSlippage>decimal</CustomSlippage> </GetStrategyVersionDetails> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetStrategyVersionDetailsResponse xmlns="http://www.tradingmotion.com/"> <GetStrategyVersionDetailsResult> <Result>string</Result> <ErrorMessage>string</ErrorMessage> <ResponseData> <IdStrategyVersion>int</IdStrategyVersion> <StrategyName>string</StrategyName> <StrategyVersionName>string</StrategyVersionName> <Intraday>string</Intraday> <BarType>string</BarType> <BarCompression>int</BarCompression> <CurrentPosition>int</CurrentPosition> <CurrentPositionTime>dateTime</CurrentPositionTime> <MaxOpenPosition>int</MaxOpenPosition> <ProductID>string</ProductID> <HasClients>string</HasClients> <ReleaseDate>string</ReleaseDate> <FirstBackTestedDate>string</FirstBackTestedDate> <FirstTradeDate>string</FirstTradeDate> <OutputCurrency>string</OutputCurrency> <RecommendedCapital>int</RecommendedCapital> <RequiredCapital>int</RequiredCapital> <TotalPL>decimal</TotalPL> <AnnualPL>decimal</AnnualPL> <PercentWinningSessions>decimal</PercentWinningSessions> <ProfitFactor>decimal</ProfitFactor> <WinLossRatio>decimal</WinLossRatio> <AnalyzedSessions>int</AnalyzedSessions> <AnalyzedSessions_SinceLive>int</AnalyzedSessions_SinceLive> <TotalPL_SinceLive>decimal</TotalPL_SinceLive> <AnnualPL_SinceLive>decimal</AnnualPL_SinceLive> <AnnualizedROI>decimal</AnnualizedROI> <AnnualizedROI_SinceLive>decimal</AnnualizedROI_SinceLive> <MaxDD>decimal</MaxDD> <MaxDD_EndDate>string</MaxDD_EndDate> <MaxDD_SinceLive>decimal</MaxDD_SinceLive> <CurrentDD>decimal</CurrentDD> <CurrentDD_StartDate>string</CurrentDD_StartDate> <WorstSession>decimal</WorstSession> <WorstSession_Date>string</WorstSession_Date> <WorstSessionPct>decimal</WorstSessionPct> <BestSession>decimal</BestSession> <BestSession_Date>string</BestSession_Date> <BestSessionPct>decimal</BestSessionPct> <WinningSessionAverage>decimal</WinningSessionAverage> <LosingSessionAverage>decimal</LosingSessionAverage> <CurrentRunUp>decimal</CurrentRunUp> <License_MonthlyCost>decimal</License_MonthlyCost> <License_nUnits>int</License_nUnits> <License_Currency>string</License_Currency> <License_FreeSessions>int</License_FreeSessions> <Commission>decimal</Commission> <SlippagePerContract>decimal</SlippagePerContract> <SlippagePerContract_MoneyValue>decimal</SlippagePerContract_MoneyValue> <SlippagePerContract_SinceLive>decimal</SlippagePerContract_SinceLive> <SlippagePerContract_MoneyValue_SinceLive>decimal</SlippagePerContract_MoneyValue_SinceLive> <PctTimeInMarket>decimal</PctTimeInMarket> <AvgTradeDuration>decimal</AvgTradeDuration> <AvgSlippageLast50SessionsWithLiveTrades>decimal</AvgSlippageLast50SessionsWithLiveTrades> <AvgSlippageLast50SessionsWithLiveTrades_Product>decimal</AvgSlippageLast50SessionsWithLiveTrades_Product> <SharpeRatio>decimal</SharpeRatio> <SortinoRatio>decimal</SortinoRatio> <SterlingRatio>decimal</SterlingRatio> <MARRatio>decimal</MARRatio> <TM_Score>decimal</TM_Score> <TM_Rating>int</TM_Rating> <StatsLastUpdated>dateTime</StatsLastUpdated> </ResponseData> </GetStrategyVersionDetailsResult> </GetStrategyVersionDetailsResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /api/webservice.asmx/GetStrategyVersionDetails?SID=string&IdStrategyVersion=string&InitialDate=string&EndDate=string&OutputCurrency=string&CustomCommission=string&CustomSlippage=string HTTP/1.1 Host: www.tradingmotion.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <SystemResponseOfStrategyVersionDetail xmlns="http://www.tradingmotion.com/"> <Result>string</Result> <ErrorMessage>string</ErrorMessage> <ResponseData> <IdStrategyVersion>int</IdStrategyVersion> <StrategyName>string</StrategyName> <StrategyVersionName>string</StrategyVersionName> <Intraday>string</Intraday> <BarType>string</BarType> <BarCompression>int</BarCompression> <CurrentPosition>int</CurrentPosition> <CurrentPositionTime>dateTime</CurrentPositionTime> <MaxOpenPosition>int</MaxOpenPosition> <ProductID>string</ProductID> <HasClients>string</HasClients> <ReleaseDate>string</ReleaseDate> <FirstBackTestedDate>string</FirstBackTestedDate> <FirstTradeDate>string</FirstTradeDate> <OutputCurrency>string</OutputCurrency> <RecommendedCapital>int</RecommendedCapital> <RequiredCapital>int</RequiredCapital> <TotalPL>decimal</TotalPL> <AnnualPL>decimal</AnnualPL> <PercentWinningSessions>decimal</PercentWinningSessions> <ProfitFactor>decimal</ProfitFactor> <WinLossRatio>decimal</WinLossRatio> <AnalyzedSessions>int</AnalyzedSessions> <AnalyzedSessions_SinceLive>int</AnalyzedSessions_SinceLive> <TotalPL_SinceLive>decimal</TotalPL_SinceLive> <AnnualPL_SinceLive>decimal</AnnualPL_SinceLive> <AnnualizedROI>decimal</AnnualizedROI> <AnnualizedROI_SinceLive>decimal</AnnualizedROI_SinceLive> <MaxDD>decimal</MaxDD> <MaxDD_EndDate>string</MaxDD_EndDate> <MaxDD_SinceLive>decimal</MaxDD_SinceLive> <CurrentDD>decimal</CurrentDD> <CurrentDD_StartDate>string</CurrentDD_StartDate> <WorstSession>decimal</WorstSession> <WorstSession_Date>string</WorstSession_Date> <WorstSessionPct>decimal</WorstSessionPct> <BestSession>decimal</BestSession> <BestSession_Date>string</BestSession_Date> <BestSessionPct>decimal</BestSessionPct> <WinningSessionAverage>decimal</WinningSessionAverage> <LosingSessionAverage>decimal</LosingSessionAverage> <CurrentRunUp>decimal</CurrentRunUp> <License_MonthlyCost>decimal</License_MonthlyCost> <License_nUnits>int</License_nUnits> <License_Currency>string</License_Currency> <License_FreeSessions>int</License_FreeSessions> <Commission>decimal</Commission> <SlippagePerContract>decimal</SlippagePerContract> <SlippagePerContract_MoneyValue>decimal</SlippagePerContract_MoneyValue> <SlippagePerContract_SinceLive>decimal</SlippagePerContract_SinceLive> <SlippagePerContract_MoneyValue_SinceLive>decimal</SlippagePerContract_MoneyValue_SinceLive> <PctTimeInMarket>decimal</PctTimeInMarket> <AvgTradeDuration>decimal</AvgTradeDuration> <AvgSlippageLast50SessionsWithLiveTrades>decimal</AvgSlippageLast50SessionsWithLiveTrades> <AvgSlippageLast50SessionsWithLiveTrades_Product>decimal</AvgSlippageLast50SessionsWithLiveTrades_Product> <SharpeRatio>decimal</SharpeRatio> <SortinoRatio>decimal</SortinoRatio> <SterlingRatio>decimal</SterlingRatio> <MARRatio>decimal</MARRatio> <TM_Score>decimal</TM_Score> <TM_Rating>int</TM_Rating> <StatsLastUpdated>dateTime</StatsLastUpdated> </ResponseData> </SystemResponseOfStrategyVersionDetail>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /api/webservice.asmx/GetStrategyVersionDetails HTTP/1.1 Host: www.tradingmotion.com Content-Type: application/x-www-form-urlencoded Content-Length: length SID=string&IdStrategyVersion=string&InitialDate=string&EndDate=string&OutputCurrency=string&CustomCommission=string&CustomSlippage=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <SystemResponseOfStrategyVersionDetail xmlns="http://www.tradingmotion.com/"> <Result>string</Result> <ErrorMessage>string</ErrorMessage> <ResponseData> <IdStrategyVersion>int</IdStrategyVersion> <StrategyName>string</StrategyName> <StrategyVersionName>string</StrategyVersionName> <Intraday>string</Intraday> <BarType>string</BarType> <BarCompression>int</BarCompression> <CurrentPosition>int</CurrentPosition> <CurrentPositionTime>dateTime</CurrentPositionTime> <MaxOpenPosition>int</MaxOpenPosition> <ProductID>string</ProductID> <HasClients>string</HasClients> <ReleaseDate>string</ReleaseDate> <FirstBackTestedDate>string</FirstBackTestedDate> <FirstTradeDate>string</FirstTradeDate> <OutputCurrency>string</OutputCurrency> <RecommendedCapital>int</RecommendedCapital> <RequiredCapital>int</RequiredCapital> <TotalPL>decimal</TotalPL> <AnnualPL>decimal</AnnualPL> <PercentWinningSessions>decimal</PercentWinningSessions> <ProfitFactor>decimal</ProfitFactor> <WinLossRatio>decimal</WinLossRatio> <AnalyzedSessions>int</AnalyzedSessions> <AnalyzedSessions_SinceLive>int</AnalyzedSessions_SinceLive> <TotalPL_SinceLive>decimal</TotalPL_SinceLive> <AnnualPL_SinceLive>decimal</AnnualPL_SinceLive> <AnnualizedROI>decimal</AnnualizedROI> <AnnualizedROI_SinceLive>decimal</AnnualizedROI_SinceLive> <MaxDD>decimal</MaxDD> <MaxDD_EndDate>string</MaxDD_EndDate> <MaxDD_SinceLive>decimal</MaxDD_SinceLive> <CurrentDD>decimal</CurrentDD> <CurrentDD_StartDate>string</CurrentDD_StartDate> <WorstSession>decimal</WorstSession> <WorstSession_Date>string</WorstSession_Date> <WorstSessionPct>decimal</WorstSessionPct> <BestSession>decimal</BestSession> <BestSession_Date>string</BestSession_Date> <BestSessionPct>decimal</BestSessionPct> <WinningSessionAverage>decimal</WinningSessionAverage> <LosingSessionAverage>decimal</LosingSessionAverage> <CurrentRunUp>decimal</CurrentRunUp> <License_MonthlyCost>decimal</License_MonthlyCost> <License_nUnits>int</License_nUnits> <License_Currency>string</License_Currency> <License_FreeSessions>int</License_FreeSessions> <Commission>decimal</Commission> <SlippagePerContract>decimal</SlippagePerContract> <SlippagePerContract_MoneyValue>decimal</SlippagePerContract_MoneyValue> <SlippagePerContract_SinceLive>decimal</SlippagePerContract_SinceLive> <SlippagePerContract_MoneyValue_SinceLive>decimal</SlippagePerContract_MoneyValue_SinceLive> <PctTimeInMarket>decimal</PctTimeInMarket> <AvgTradeDuration>decimal</AvgTradeDuration> <AvgSlippageLast50SessionsWithLiveTrades>decimal</AvgSlippageLast50SessionsWithLiveTrades> <AvgSlippageLast50SessionsWithLiveTrades_Product>decimal</AvgSlippageLast50SessionsWithLiveTrades_Product> <SharpeRatio>decimal</SharpeRatio> <SortinoRatio>decimal</SortinoRatio> <SterlingRatio>decimal</SterlingRatio> <MARRatio>decimal</MARRatio> <TM_Score>decimal</TM_Score> <TM_Rating>int</TM_Rating> <StatsLastUpdated>dateTime</StatsLastUpdated> </ResponseData> </SystemResponseOfStrategyVersionDetail>