Skip to content

Commit

Permalink
Update search-templates.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Davant committed Jan 6, 2023
1 parent 45e2215 commit 04ab9fd
Showing 1 changed file with 19 additions and 41 deletions.
60 changes: 19 additions & 41 deletions Examples/1-Access/search-templates.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"search": {
"templates": {

"Equity": {
"description": "Search for Ordinary Shares of a particular exchange.",
"parameters": {
Expand All @@ -10,80 +9,59 @@
"default": ""
},
"exchange_name": {
"description": "Name of the exchange where this equity is traded. For example: 'London Stock Exchange', 'Euronext Paris', 'Shanghai Stock Exchange', 'The Toronto Stock Exchange', 'NYSE Consolidated', etc."
"description": "Name of the exchange where this equity is traded. For example: 'London Stock Exchange', 'Euronext Paris', 'Shanghai Stock Exchange', 'The Toronto Stock Exchange', 'NYSE Consolidated', etc.",
"optional":true
}
},
"request_body": {
"Query":"#{what}",
"Filter":"AssetState ne 'DC' and SearchAllCategoryv2 eq 'Equities' and ExchangeName xeq '#{exchange_name}' and RCSAssetCategoryGenealogy eq 'A:1L'",
"Filter":"AssetState ne 'DC' and SearchAllCategoryv2 eq 'Equities' {{if exchange_name is defined}} and ExchangeName xeq '#{exchange_name}'{{endif}} and RCSAssetCategoryGenealogy eq 'A:1L'",
"Select": "DTSubjectName,ExchangeName,RIC,MktCapCompanyUsd,ShareholdersEquityUsd,Pe,DebtToAssets,Beta,Eps,Gics,EpsGrowth5Y,RevenueGrowth5Y,DivYld,EstDivYldFy1,EstDivYldFy2,TotalAssetsUsd,TotalLiabilitiesUsd,PretaxProfitMargin,Roe,PeRelIndex,DivYldHigh,DivYldRelIndex,SolvencyMargin,PricePctChg3MRelIndex,PricePctChgYtdRelIndex,Volatility30D,Volatility200D,EstEpsFy1,EstEpsFy2,ExDividendDate,RCSIssuerCountryLeaf,RCSIssuerCountryGenealogy,RCSAssetCategoryGenealogy,SearchAllCategoryv3,SearchAllCategoryv2,SearchAllCategory,RCSAssetCategory,RCSCurrencyLeaf,AssetState,BusinessEntity,PI,IssueISIN,CUSIP,CinCUSIP,SEDOL",
"Top":5000,
"Top":10000,
"Skip":0,
"GroupCount":3,
"View":"EquityQuotes"
}
},

"Mines": {
"description": "Find coordinates of mines in a region.",
"parameters": {
"commodity": {
"description": "Commodity extracted from the mine. For example: 'Gold', 'Nickel', 'Zinc', 'Cooper', 'Palladium', 'Lead', etc.",
"default": "Gold"
"optional":true
},
"region": {
"description": "Region to search in. For example: 'Botswana', 'Brazil', 'Canada', 'Chile', 'Costa Rica', 'Cuba', 'United States', 'Guyana', 'Peru', 'South Africa', etc",
"default": "South Africa"
"optional":true
}
},
"request_body": {
"Filter":"RCSAssetTypeLeaf eq 'Mine' and RCSCommodityTypeLeaf xeq '#{commodity}' and RCSRegionLeaf eq '#{region}'",
"Select":"RIC,DTSubjectName,Latitude,Longitude,PhysicalAssetStatus",
"Top":100,
"Filter":"RCSAssetTypeLeaf eq 'Mine' {{if commodity is defined}} and RCSCommodityTypeLeaf xeq '#{commodity}'{{endif}} {{if region is defined}} and RCSRegionLeaf eq '#{region}'{{endif}}",
"Select":"RIC,RCSRegionLeaf,RCSCommodityTypeLeaf,DTSubjectName,PhysicalAssetStatus,Latitude,Longitude",
"Top":10000,
"Skip":0,
"GroupCount":3,
"View":"PhysicalAssets"
}
},

"VesselsBoundFor": {
"description": "Search for vessels heading to a destination.",
"request_body": {
"Filter":"DestinationPort eq '#{destination}' and AISStatus ne null and AISStatus ne 'Moored' and AISStatus ne '*defined*'",
"OrderBy":"GrossTonnage desc",
"Select":"RIC,DTSubjectName,DTSimpleType,Latitude,Longitude,AISStatus,GrossTonnage",
"Top":200,
"Skip":0,
"GroupCount":3,
"View":"VesselPhysicalAssets"
},
"parameters": {
"destination": {
"default": "Le Havre",
"description": "Vessel's destination"
}
}
},




"Exchanges": {
"description": "Search for exchanges.",
"parameters": {
"name": {
"description": "Name of the exchange to search for.",
"default": ""
"description": "Vessel's destination",
"optional":true
}
},
"request_body": {
"Query": "#{name}",
"View":"SearchAll",
"Top":10
"Filter":"AISStatus ne null and AISStatus ne 'Moored' and AISStatus ne '*defined*' {{if destination is defined}} and DestinationPort eq '#{destination}'{{endif}}",
"OrderBy":"GrossTonnage desc",
"Select":"RIC,DestinationPort,DTSubjectName,DTSimpleType,AISStatus,GrossTonnage,Latitude,Longitude",
"Top":500,
"Skip":0,
"GroupCount":3,
"View":"VesselPhysicalAssets"
}
}


}
}
}
}

0 comments on commit 04ab9fd

Please sign in to comment.