FX cross in Turn Dates in API

Hi team,
Specialist here from Customer Support.
Related to this q&a
there is a specific parameter if you want to calculate CCy1 or CCy2 which is then discussed in this guide:
So if the pair is EURUSD, we use TurnsCcy1Array. If the pair is USDCZK, we use TurnsCcy2Array
IF the pair we want to use is EURGBP, the FWDS app in Workspace calculates the turn dates by EURUSD and GBPUSD (Separate tables). The question is, can we combine both TurnsCcy1Array and TurnsCcy2Array in a single code?
Answers
-
Thank you for reaching out to us.
Can you share the request message used in the https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts endpoint?
Then, I can convert it to the Python code.
0 -
Hi Jirapongse!
Sorry I only have this from Codebook
import refinitiv.data as rdp
from refinitiv.data.content.ipa.financial_contracts import cross
rdp.open_session()response = cross.Definition(
instrument_tag="Fx-Forward",
fx_cross_type=cross.FxCrossType.FX_FORWARD,
fx_cross_code="USDCZK",
legs=[
cross.LegDefinition(end_date="2026-10-01")
],
pricing_parameters=cross.PricingParameters(
valuation_date="2025-08-18"),
extended_params={
"marketData":{
"fxSwapPoints":[
{
"curveDefinition":{
"fxCrossCode":"USDCZK"
},
"curveParameters":
{
"turnsCalibration":"Month-ends",
"UserTurnDates":["2025-08-01"]
}
}
]
}
},
fields=[
"TurnsCcy2Array",]).get_data()
response.data.raw0 -
You need to contact the Instrument Pricing Analytics - Delivery Platform support team directly via LSEG Support to obtain the request message used with the financial-contracts endpoint to retrieve the required data.
0 -
Thank you Jirapongse, can you convert this one to API code then? I got a sample from the same endpoint you indicated, thanks!
0 -
The request message contains few pricing parameters which are not available in the cross.PricingParameters class.
Therefore, to use the request message with the EndPoint interface in the LSEG Data Library for Python. The code looks like this.
import lseg.data as ld from lseg.data.delivery import endpoint_request ld.open_session() financial_contracts_url = '/data/quantitative-analytics/v1/financial-contracts' request = { "fields": [ "InstrumentTag", "ValuationDate", "StartDate", "EndDate", "Tenor", "NonAdjustedStartDate", "NonAdjustedEndDate", "StartDateAdjustmentFlag", "EndDateAdjustmentFlag", "SpotDecimals", "SpotDecimalsCcy1", "SpotDecimalsCcy2", "FxSwapPointScalingFactor", "FxSpot_BidMidAsk", "FxSpotCcy1_BidMidAsk", "FxSpotCcy2_BidMidAsk", "FxSwapsCcy1_BidMidAsk", "FxSwapsCcy2_BidMidAsk", "FxSwapsCcy1Ccy2_BidMidAsk", "FxOutrightCcy1Ccy2_BidMidAsk", "TurnsCcy1Array", "TurnsCcy2Array", "Ccy1SpotDate", "Ccy2SpotDate", "ErrorMessage" ], "outputs": [ "Data", "Statuses", "Headers" ], "universe": [ { "instrumentType": "FxCross", "instrumentDefinition": { "instrumentTag": "standardperiods", "fxCrossCode": "EURGBP", "fxCrossType": "FxMultileg", "legs": [ { "tenor": "ON" }, { "tenor": "TN" }, { "tenor": "SN" }, { "tenor": "SW" }, { "tenor": "2W" }, { "tenor": "3W" }, { "tenor": "1M" }, { "tenor": "2M" }, { "tenor": "3M" }, { "tenor": "4M" }, { "tenor": "5M" }, { "tenor": "6M" }, { "tenor": "7M" }, { "tenor": "8M" }, { "tenor": "9M" }, { "tenor": "10M" }, { "tenor": "11M" }, { "tenor": "1Y" }, { "tenor": "15M" }, { "tenor": "18M" }, { "tenor": "21M" }, { "tenor": "2Y" } ] }, "pricingParameters": { "valuationDate": "2025-08-19" } }, { "instrumentType": "FxCross", "instrumentDefinition": { "fxCrossCode": "EURGBP", "fxCrossType": "FxForward", "legs": [ { "startTenor": "0D", "tenor": "1M15D" } ], "instrumentTag": "brokendates-0-fxSwap" }, "pricingParameters": { "valuationDate": "2025-08-19", "adjustAllSwapPointsToCrossCalendars": False } }, { "instrumentType": "FxCross", "instrumentDefinition": { "fxCrossCode": "EURGBP", "fxCrossType": "FxForward", "legs": [ { "startTenor": "0D", "tenor": "90D" } ], "instrumentTag": "brokendates-1-fxSwap" }, "pricingParameters": { "valuationDate": "2025-08-19", "adjustAllSwapPointsToCrossCalendars": False } }, { "instrumentType": "FxCross", "instrumentDefinition": { "fxCrossCode": "EURGBP", "fxCrossType": "FxForward", "legs": [ { "startTenor": "0D", "tenor": "3M" } ], "instrumentTag": "brokendates-2-fxSwap" }, "pricingParameters": { "valuationDate": "2025-08-19", "adjustAllSwapPointsToCrossCalendars": False } }, { "instrumentType": "FxCross", "instrumentDefinition": { "fxCrossCode": "EURGBP", "fxCrossType": "FxForward", "legs": [ { "startTenor": "0D", "tenor": "7M" } ], "instrumentTag": "brokendates-3-fxSwap" }, "pricingParameters": { "valuationDate": "2025-08-19", "adjustAllSwapPointsToCrossCalendars": False } }, { "instrumentType": "FxCross", "instrumentDefinition": { "fxCrossCode": "EURGBP", "fxCrossType": "FxForward", "legs": [ { "startTenor": "3M", "tenor": "6M" } ], "instrumentTag": "brokendates-4-fxSwap" }, "pricingParameters": { "valuationDate": "2025-08-19", "adjustAllSwapPointsToCrossCalendars": False, "preSpotEndTenorReferenceDate": "StartDate", "endTenorReferenceDate": "SpotDate" } } ], "marketData": { "fxSpots": [ { "spotDefinition": { "fxCrossCode": "EURUSD", "source": "Composite" } }, { "spotDefinition": { "fxCrossCode": "GBPUSD", "source": "Composite" } }, { "spotDefinition": { "fxCrossCode": "EURGBP", "source": "Calculated" } } ], "fxSwapPoints": [ { "curveDefinition": { "fxCrossCode": "EURUSD", "source": "Composite" }, "curveParameters": { "twoLayersTurnsCalculation": True, "excludeLongPeriods": True, "turnsCalibration": "Month-ends" } }, { "curveDefinition": { "fxCrossCode": "GBPUSD", "source": "Composite" }, "curveParameters": { "twoLayersTurnsCalculation": True, "excludeLongPeriods": True, "turnsCalibration": "Month-ends" } }, { "curveDefinition": { "fxCrossCode": "EURGBP" }, "curveParameters": { "excludeLongPeriods": True, "interpolationMode": "Linear" } } ] } } request_definition = endpoint_request.Definition( method = ld.delivery.endpoint_request.RequestMethod.POST, url = financial_contracts_url, body_parameters = request ) response = request_definition.get_data() response.data.raw
0 -
Hello,
I am working on this script. I am not having the good output.
Should I get EURGBP swap points for month ends ?
0 -
Please contact the owner of the submitted case to verify the output and request message.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 707 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 3K Elektron
- 1.5K EMA
- 259 ETA
- 570 WebSocket API
- 41 FX Venues
- 16 FX Market Data
- 2 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 26 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 25 RDMS
- 2.2K Refinitiv Data Platform
- 8 CFS Bulk File/TM3
- 901 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 125 Open DACS
- 1.1K RFA
- 108 UPA
- 196 TREP Infrastructure
- 232 TRKD
- 921 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 106 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛