Headers
Query Parameters
Body
Type: text/plain
Example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 //EN">
<html>
<body>
EUR~USD:CUR ECB C 2017052300000000000000000000
</body>
</html>
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"minItems": 1,
"items": {
"additionalProperties": false,
"type": "object",
"properties": {
"marketDataType": {
"type": "string",
"pattern": "^(Currencies)$",
"description": "Represents the type of market data that you can request."
},
"marketDataSource": {
"type": "string",
"pattern": "^(ECB)$",
"description": "Represents the source of market data that you can request."
},
"marketDataId": {
"type": "string",
"maxLength": 20,
"description": "An ID that filters the fetched data. For example, :EUR~INR"
},
"marketDataTypeProperty": {
"type": "string",
"maxLength": 15,
"description": "Defines the data type required. For example, CMID."
},
"fromDate": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"description": "The start date required if you request market data for a specific date range. For example, 2012-06-06."
},
"fromTime": {
"type": "string",
"pattern": "^[0-9]{2}:[0-9]{2}:[0-9]{2}$",
"description": "The required start time. For example, 13:20:00."
},
"toDate": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"description": "The end date required if you request market data for a specific date range. For example, 2012-06-10."
},
"toTime": {
"type": "string",
"pattern": "^[0-9]{2}:[0-9]{2}:[0-9]{2}$",
"description": "The required end time. For example, 13:20:00."
}
},
"required": [
"marketDataType",
"marketDataId"
]
}
}
Example:
[
{
"marketDataType": "Currencies",
"marketDataSource": "ECB",
"marketDataId": "EUR~INR",
"marketDataTypeProperty": "C",
"fromDate": "2017-02-01",
"fromTime": "13:30:40",
"toDate": "2017-03-01",
"toTime": "22:40:59"
}
]
HTTP status code 200
Body
Type: text/plain
Example:
EUR~USD:CUR ECB C 201705230000001.11835
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"marketDataType": {
"enum": "^(Currencies)$",
"description": "Represents the type of market data that you can request."
},
"marketDataSource": {
"pattern": "^(ECB)$",
"description": "Represents the source of market data that you can request."
},
"marketDataId": {
"type": "string",
"maxLength": 20,
"description": "The market data ID of the data item. For example, EUR~INR."
},
"marketDataTypeProperty": {
"type": "string",
"maxLength": 15,
"description": "The data type of the returned value. For example, CMID."
},
"validFromDate": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"description": "The valid start date for the requested date range. For example, 2012-06-06."
},
"validFromTime": {
"type": "string",
"pattern": "^[0-9]{2}:[0-9]{2}:[0-9]{2}$",
"description": "The valid start time for the requested time range. For example, 13:20:00."
},
"marketDataValue": {
"type": "number",
"description": "The market data value returned for the specified data type. For example, 70.6645."
},
"messageType": {
"enum": [
"E",
""
],
"description": "Indicates whether the response is successful. Shows '' for a successful response, but shows 'E' when there is an error."
},
"messageText": {
"type": "string",
"description": "Contains the error description if the messageType is 'E'."
},
"relatedProperties": {
"items": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"minItems": 0,
"type": "array"
}
},
"required": [
"marketDataType",
"marketDataId",
"validFromDate",
"validFromTime",
"marketDataValue"
]
}
}
Example:
[
{
"marketDataType": "Currencies",
"marketDataSource": "ECB",
"marketDataId": "EUR~INR",
"marketDataTypeProperty": "C",
"validFromDate": "2017-02-01",
"validFromTime": "13:30:50",
"marketDataValue": 70.6645,
"messageType": "",
"messageText": "",
"relatedProperties": [
{
"name": "noOfDays",
"value": "5"
},
{
"name": "currFromFactor",
"value": "0"
},
{
"name": "currToFactor",
"value": "0"
},
{
"name": "marketIndicator",
"value": "5"
}
]
}
]
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}