post
https://api-sit.privemanagers.com/assets/1//graphql
Usage Details
It supports 3 types of operations: getAssetsMasterData, searchAssetIdsByCriteria and dynamicSearchAssetsByCriteria
In the request body, only "query" field is required. "operationName" and "variables" are optional.
Operation 1: getAssetsMasterData (example)
This is how the GraphQL query would look like:
query {
getAssetsMasterData(
codes: [
{ scheme: "ISIN", value: "XS9900000008", currency: "USD" }
{ scheme: "citi", value: "JDBAE" }
]
) {
id
name
}
}
Place the above query as a string to the "query" field of the request body:
{
"query": "{getAssetsMasterData(codes: [{ scheme: \"ISIN\", value: \"XS9900000008\", currency: \"USD\" }{ scheme: \"citi\", value: \"JDBAE\" }]) {id name}}"
}
Operation 2: searchAssetIdsByCriteria (example)
This is how the GraphQL query would look like:
query {
searchAssetIdsByCriteria(
AssetSearchGraphQLRequest: {
currencies: ["EUR"]
assetTypes: ["MUTUAL_FUNDS"]
sortCriteria: [{ sortBy: "ISIN", sortDirection: ASC }]
activeOnly: false
pageSize: 10
pageNumber: 0
}
)
}
Place the above query as a string to the "query" field of the request body:
{
"query": "{ searchAssetIdsByCriteria( AssetSearchGraphQLRequest: { currencies: [\"EUR\"] assetTypes: [\"MUTUAL_FUNDS\"] sortCriteria: [{ sortBy: \"ISIN\", sortDirection: ASC }] activeOnly: false pageSize: 10 pageNumber: 0 } ) }"
}
Operation 3: dynamicSearchAssetsByCriteria (example)
This is how the GraphQL query would look like:
query {
dynamicSearchAssetsByCriteria(
AssetDynamicSearchGraphQLRequest: {
criteria: [
{ fieldName: "currency", operand: IN, value: ["USD", "EUR"] }
{ fieldName: "mirrorFund", operand: EQUAL, value: true }
{ fieldName: "type", operand: EQUAL, value: "MUTUAL_FUNDS" }
{ fieldName: "min-investment", operand: EQUAL, value: 0.0 }
]
sortCriteria: [{ sortBy: "ISIN", sortDirection: ASC }]
pageSize: 10
pageNumber: 0
}
) {
id
name
}
}
Place the above query as a string to the "query" field of the request body:
{
"query": "{dynamicSearchAssetsByCriteria(AssetDynamicSearchGraphQLRequest: {criteria: [ { fieldName: \"currency\", operand: IN, value: [\"USD\", \"EUR\"] } { fieldName: \"mirrorFund\", operand: EQUAL, value: true } { fieldName: \"type\", operand: EQUAL, value: \"MUTUAL_FUNDS\" } { fieldName: \"min-investment\", operand: EQUAL, value: 0.0 }]sortCriteria: [{ sortBy: \"ISIN\", sortDirection: ASC }]pageSize: 10pageNumber: 0}) {id name}}"
}
