TradingMotionAPI


Click here for a complete list of operations.

GetAvailableProducts

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
SID:

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/GetAvailableProducts"

<?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>
    <GetAvailableProducts xmlns="http://www.tradingmotion.com/">
      <SID>string</SID>
    </GetAvailableProducts>
  </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>
    <GetAvailableProductsResponse xmlns="http://www.tradingmotion.com/">
      <GetAvailableProductsResult>
        <Result>string</Result>
        <ErrorMessage>string</ErrorMessage>
        <ResponseData>
          <ProductList>
            <Product xsi:nil="true" />
            <Product xsi:nil="true" />
          </ProductList>
        </ResponseData>
      </GetAvailableProductsResult>
    </GetAvailableProductsResponse>
  </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>
    <GetAvailableProducts xmlns="http://www.tradingmotion.com/">
      <SID>string</SID>
    </GetAvailableProducts>
  </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>
    <GetAvailableProductsResponse xmlns="http://www.tradingmotion.com/">
      <GetAvailableProductsResult>
        <Result>string</Result>
        <ErrorMessage>string</ErrorMessage>
        <ResponseData>
          <ProductList>
            <Product xsi:nil="true" />
            <Product xsi:nil="true" />
          </ProductList>
        </ResponseData>
      </GetAvailableProductsResult>
    </GetAvailableProductsResponse>
  </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/GetAvailableProducts?SID=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"?>
<SystemResponseOfProducts xmlns="http://www.tradingmotion.com/">
  <Result>string</Result>
  <ErrorMessage>string</ErrorMessage>
  <ResponseData>
    <ProductList>
      <Product>
        <ProductID>string</ProductID>
        <Name>string</Name>
        <Market>string</Market>
        <Currency>string</Currency>
        <PointValue>decimal</PointValue>
        <CurrentFrontContractExpiry>string</CurrentFrontContractExpiry>
        <VCSymbol>string</VCSymbol>
        <TSSymbol>string</TSSymbol>
        <ExchangeMarginRequirent>decimal</ExchangeMarginRequirent>
        <AvailableStrategyVersions>int</AvailableStrategyVersions>
        <InternalProductID>int</InternalProductID>
        <Slippage_Roll50>decimal</Slippage_Roll50>
        <Slippage_HistoricalAvg>decimal</Slippage_HistoricalAvg>
        <DefaultCommission>decimal</DefaultCommission>
        <TickSize>decimal</TickSize>
        <ExchangeTime_Zone>string</ExchangeTime_Zone>
        <ExchangeTime_StartTrading>string</ExchangeTime_StartTrading>
        <ExchangeTime_EndTrading>string</ExchangeTime_EndTrading>
        <PriceMask>string</PriceMask>
        <MarketDataStartTime_Local>string</MarketDataStartTime_Local>
        <MarketDataEndTime_Local>string</MarketDataEndTime_Local>
      </Product>
      <Product>
        <ProductID>string</ProductID>
        <Name>string</Name>
        <Market>string</Market>
        <Currency>string</Currency>
        <PointValue>decimal</PointValue>
        <CurrentFrontContractExpiry>string</CurrentFrontContractExpiry>
        <VCSymbol>string</VCSymbol>
        <TSSymbol>string</TSSymbol>
        <ExchangeMarginRequirent>decimal</ExchangeMarginRequirent>
        <AvailableStrategyVersions>int</AvailableStrategyVersions>
        <InternalProductID>int</InternalProductID>
        <Slippage_Roll50>decimal</Slippage_Roll50>
        <Slippage_HistoricalAvg>decimal</Slippage_HistoricalAvg>
        <DefaultCommission>decimal</DefaultCommission>
        <TickSize>decimal</TickSize>
        <ExchangeTime_Zone>string</ExchangeTime_Zone>
        <ExchangeTime_StartTrading>string</ExchangeTime_StartTrading>
        <ExchangeTime_EndTrading>string</ExchangeTime_EndTrading>
        <PriceMask>string</PriceMask>
        <MarketDataStartTime_Local>string</MarketDataStartTime_Local>
        <MarketDataEndTime_Local>string</MarketDataEndTime_Local>
      </Product>
    </ProductList>
  </ResponseData>
</SystemResponseOfProducts>

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/GetAvailableProducts HTTP/1.1
Host: www.tradingmotion.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

SID=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<SystemResponseOfProducts xmlns="http://www.tradingmotion.com/">
  <Result>string</Result>
  <ErrorMessage>string</ErrorMessage>
  <ResponseData>
    <ProductList>
      <Product>
        <ProductID>string</ProductID>
        <Name>string</Name>
        <Market>string</Market>
        <Currency>string</Currency>
        <PointValue>decimal</PointValue>
        <CurrentFrontContractExpiry>string</CurrentFrontContractExpiry>
        <VCSymbol>string</VCSymbol>
        <TSSymbol>string</TSSymbol>
        <ExchangeMarginRequirent>decimal</ExchangeMarginRequirent>
        <AvailableStrategyVersions>int</AvailableStrategyVersions>
        <InternalProductID>int</InternalProductID>
        <Slippage_Roll50>decimal</Slippage_Roll50>
        <Slippage_HistoricalAvg>decimal</Slippage_HistoricalAvg>
        <DefaultCommission>decimal</DefaultCommission>
        <TickSize>decimal</TickSize>
        <ExchangeTime_Zone>string</ExchangeTime_Zone>
        <ExchangeTime_StartTrading>string</ExchangeTime_StartTrading>
        <ExchangeTime_EndTrading>string</ExchangeTime_EndTrading>
        <PriceMask>string</PriceMask>
        <MarketDataStartTime_Local>string</MarketDataStartTime_Local>
        <MarketDataEndTime_Local>string</MarketDataEndTime_Local>
      </Product>
      <Product>
        <ProductID>string</ProductID>
        <Name>string</Name>
        <Market>string</Market>
        <Currency>string</Currency>
        <PointValue>decimal</PointValue>
        <CurrentFrontContractExpiry>string</CurrentFrontContractExpiry>
        <VCSymbol>string</VCSymbol>
        <TSSymbol>string</TSSymbol>
        <ExchangeMarginRequirent>decimal</ExchangeMarginRequirent>
        <AvailableStrategyVersions>int</AvailableStrategyVersions>
        <InternalProductID>int</InternalProductID>
        <Slippage_Roll50>decimal</Slippage_Roll50>
        <Slippage_HistoricalAvg>decimal</Slippage_HistoricalAvg>
        <DefaultCommission>decimal</DefaultCommission>
        <TickSize>decimal</TickSize>
        <ExchangeTime_Zone>string</ExchangeTime_Zone>
        <ExchangeTime_StartTrading>string</ExchangeTime_StartTrading>
        <ExchangeTime_EndTrading>string</ExchangeTime_EndTrading>
        <PriceMask>string</PriceMask>
        <MarketDataStartTime_Local>string</MarketDataStartTime_Local>
        <MarketDataEndTime_Local>string</MarketDataEndTime_Local>
      </Product>
    </ProductList>
  </ResponseData>
</SystemResponseOfProducts>