For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
5 0 0 3

Extract the adjusted tick price with TickHistoryTimeAndSalesExtractionRequest

Hello guys,

I am using the DSS API to extract the tick price of stocks, but given the stock split, is it possible to extract the split ratio adjusted price? Below I pasted my sample JSON.

Thanks for your time and support!

{
    "ExtractionRequest": {
        "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest",
        "ContentFieldNames": [
            "Trade - Price","Trade - Volume"],
        "IdentifierList": {
            "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
            "InstrumentIdentifiers": [
                {"Identifier": "AAPL.OQ", "IdentifierType": "Ric"}

            ],
            "ValidationOptions": {"AllowHistoricalInstruments": "True"},
            "UseUserPreferencesForValidationOptions" : "False"
        },
        "Condition": {
            "MessageTimeStampIn": "LocalExchangeTime",
            "DateRangeTimeZone": "Local Exchange Time Zone",
            "ReportDateRangeType": "Range",
            "QueryStartDate": "2020-03-09T09:30:00.000Z",
            "QueryEndDate":   "2020-03-09T16:00:00.000Z",
            "DisplaySourceRIC": "True",
            "TimeRangeMode": "Window"
        }
    }
}

dss-rest-apitick-history-rest-apiprice-history
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi @lideng ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text on the left side of the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

1 Answer

· Write an Answer
Upvote
Accepted
79.2k 251 52 74

@lideng

You can use the CorporateActionsStandardExtractionRequest to extract stock split description. For example, send the following request to the Extractions/ExtractWithNotes endpoint.

{
  "ExtractionRequest": {
    "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.CorporateActionsStandardExtractionRequest",
    "ContentFieldNames": [
      "Corporate Actions Type",
      "Capital Change Event Type",
      "Capital Change Event Type Description",
      "Actual Adjustment Type",
      "Actual Adjustment Type Description",
      "Adjustment Factor",
      "Currency Code",
      "Exchange Code",
      "Effective Date",
      "Dividend Pay Date",
      "Dividend Rate",
      "Nominal Value",
      "Nominal Value Currency",
      "Nominal Value Date"
    ],
    "IdentifierList": {
      "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
      "InstrumentIdentifiers": [
      
        { "Identifier": "AAPL.O", "IdentifierType": "Ric" }
      ]
    },
    "Condition": {
      "ReportDateRangeType": "Last",
      "PreviousDays": 30,
      "ExcludeDeletedEvents": true,
      "IncludeCapitalChangeEvents": true,
      "IncludeDividendEvents": true,
      "IncludeEarningsEvents": true,
      "IncludeMergersAndAcquisitionsEvents": true,
      "IncludeNominalValueEvents": true,
      "IncludePublicEquityOfferingsEvents": true,
      "IncludeSharesOutstandingEvents": true,
      "IncludeVotingRightsEvents": true,
      "CorporateActionsCapitalChangeType": "CapitalChangeExDate",
      "CorporateActionsDividendsType": "DividendPayDate",
      "CorporateActionsEarningsType": "PeriodEndDate",
      "ShareAmountTypes": [
      ]
    }
  }
}

The output contains:

    "Contents": [
        {
            "IdentifierType": "Ric",
            "Identifier": "AAPL.O",
            "Corporate Actions Type": "CAP",
            "Capital Change Event Type": 21,
            "Capital Change Event Type Description": "Stock split",
            "Actual Adjustment Type": "CCH",
            "Actual Adjustment Type Description": "Capital Change - Adjusts Dividend and Earnings per Share, Pricing and Volume",
            "Adjustment Factor": 0.25,
            "Currency Code": "USD",
            "Exchange Code": "NSQ",
            "Effective Date": "2020-08-28",
            "Dividend Pay Date": null,
            "Dividend Rate": null,
            "Nominal Value": null,
            "Nominal Value Currency": null,
            "Nominal Value Date": null
        },

For more information, please refer to the REST API Tutorial 9: On Demand corporate actions extraction tutorial.

You can also refer to the REST API Reference Tree for all available parameters.

1662110052414.png



1662110052414.png (79.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.