We have users requesting fxSpot values using today's date as the end/maturity date. Typical request looks like this:
{
"instrumentDefinition": {
"fxCrossType": "FxForward",
"fxCrossCode": "USDMYR",
"legs": [
{
"endDate": "2020-06-17T00:00:00"
}
]
},
"instrumentType": "FxCross"
}
We are seeing this error: The calculated EndDate : 06/17/2020 cannot be prior to the StartDate : 06/19/2020, please modify the input dates or tenors accordingly.
It looks like the default startDate is always the non-USD currency's local time + 1 day. Is that correct? Does it make sense to provide a startDate?
Thanks.
Adam