Skip to content

Commit 04ab9fd

Browse files
author
Olivier Davant
committed
Update search-templates.config.json
1 parent 45e2215 commit 04ab9fd

File tree

1 file changed

+19
-41
lines changed

1 file changed

+19
-41
lines changed
Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"search": {
33
"templates": {
4-
54
"Equity": {
65
"description": "Search for Ordinary Shares of a particular exchange.",
76
"parameters": {
@@ -10,80 +9,59 @@
109
"default": ""
1110
},
1211
"exchange_name": {
13-
"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."
12+
"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.",
13+
"optional":true
1414
}
1515
},
1616
"request_body": {
1717
"Query":"#{what}",
18-
"Filter":"AssetState ne 'DC' and SearchAllCategoryv2 eq 'Equities' and ExchangeName xeq '#{exchange_name}' and RCSAssetCategoryGenealogy eq 'A:1L'",
18+
"Filter":"AssetState ne 'DC' and SearchAllCategoryv2 eq 'Equities' {{if exchange_name is defined}} and ExchangeName xeq '#{exchange_name}'{{endif}} and RCSAssetCategoryGenealogy eq 'A:1L'",
1919
"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",
20-
"Top":5000,
20+
"Top":10000,
2121
"Skip":0,
2222
"GroupCount":3,
2323
"View":"EquityQuotes"
2424
}
2525
},
26-
2726
"Mines": {
2827
"description": "Find coordinates of mines in a region.",
2928
"parameters": {
3029
"commodity": {
3130
"description": "Commodity extracted from the mine. For example: 'Gold', 'Nickel', 'Zinc', 'Cooper', 'Palladium', 'Lead', etc.",
32-
"default": "Gold"
31+
"optional":true
3332
},
3433
"region": {
3534
"description": "Region to search in. For example: 'Botswana', 'Brazil', 'Canada', 'Chile', 'Costa Rica', 'Cuba', 'United States', 'Guyana', 'Peru', 'South Africa', etc",
36-
"default": "South Africa"
35+
"optional":true
3736
}
3837
},
3938
"request_body": {
40-
"Filter":"RCSAssetTypeLeaf eq 'Mine' and RCSCommodityTypeLeaf xeq '#{commodity}' and RCSRegionLeaf eq '#{region}'",
41-
"Select":"RIC,DTSubjectName,Latitude,Longitude,PhysicalAssetStatus",
42-
"Top":100,
39+
"Filter":"RCSAssetTypeLeaf eq 'Mine' {{if commodity is defined}} and RCSCommodityTypeLeaf xeq '#{commodity}'{{endif}} {{if region is defined}} and RCSRegionLeaf eq '#{region}'{{endif}}",
40+
"Select":"RIC,RCSRegionLeaf,RCSCommodityTypeLeaf,DTSubjectName,PhysicalAssetStatus,Latitude,Longitude",
41+
"Top":10000,
4342
"Skip":0,
4443
"GroupCount":3,
4544
"View":"PhysicalAssets"
4645
}
4746
},
48-
4947
"VesselsBoundFor": {
5048
"description": "Search for vessels heading to a destination.",
51-
"request_body": {
52-
"Filter":"DestinationPort eq '#{destination}' and AISStatus ne null and AISStatus ne 'Moored' and AISStatus ne '*defined*'",
53-
"OrderBy":"GrossTonnage desc",
54-
"Select":"RIC,DTSubjectName,DTSimpleType,Latitude,Longitude,AISStatus,GrossTonnage",
55-
"Top":200,
56-
"Skip":0,
57-
"GroupCount":3,
58-
"View":"VesselPhysicalAssets"
59-
},
6049
"parameters": {
6150
"destination": {
62-
"default": "Le Havre",
63-
"description": "Vessel's destination"
64-
}
65-
}
66-
},
67-
68-
69-
70-
71-
"Exchanges": {
72-
"description": "Search for exchanges.",
73-
"parameters": {
74-
"name": {
75-
"description": "Name of the exchange to search for.",
76-
"default": ""
51+
"description": "Vessel's destination",
52+
"optional":true
7753
}
7854
},
7955
"request_body": {
80-
"Query": "#{name}",
81-
"View":"SearchAll",
82-
"Top":10
56+
"Filter":"AISStatus ne null and AISStatus ne 'Moored' and AISStatus ne '*defined*' {{if destination is defined}} and DestinationPort eq '#{destination}'{{endif}}",
57+
"OrderBy":"GrossTonnage desc",
58+
"Select":"RIC,DestinationPort,DTSubjectName,DTSimpleType,AISStatus,GrossTonnage,Latitude,Longitude",
59+
"Top":500,
60+
"Skip":0,
61+
"GroupCount":3,
62+
"View":"VesselPhysicalAssets"
8363
}
84-
}
85-
86-
64+
}
8765
}
8866
}
8967
}

0 commit comments

Comments
 (0)