Skip to content

Commit 4f97f12

Browse files
author
Olivier Davant
committed
Create search-templates.config.json
1 parent 88e3a81 commit 4f97f12

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"search": {
3+
"templates": {
4+
5+
"Equity": {
6+
"description": "Search for Ordinary Shares of a particular exchange.",
7+
"parameters": {
8+
"what": {
9+
"description": "What to search for",
10+
"default": ""
11+
},
12+
"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."
14+
}
15+
},
16+
"request_body": {
17+
"Query":"#{what}",
18+
"Filter":"AssetState ne 'DC' and SearchAllCategoryv2 eq 'Equities' and ExchangeName xeq '#{exchange_name}' and RCSAssetCategoryGenealogy eq 'A:1L'",
19+
"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,
21+
"Skip":0,
22+
"GroupCount":3,
23+
"View":"EquityQuotes"
24+
}
25+
},
26+
27+
"Mines": {
28+
"description": "Find coordinates of mines in a region.",
29+
"parameters": {
30+
"commodity": {
31+
"description": "Commodity extracted from the mine. For example: 'Gold', 'Nickel', 'Zinc', 'Cooper', 'Palladium', 'Lead', etc.",
32+
"default": "Gold"
33+
},
34+
"region": {
35+
"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"
37+
}
38+
},
39+
"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,
43+
"Skip":0,
44+
"GroupCount":3,
45+
"View":"PhysicalAssets"
46+
}
47+
},
48+
49+
"VesselsBoundFor": {
50+
"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+
},
60+
"parameters": {
61+
"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": ""
77+
}
78+
},
79+
"request_body": {
80+
"Query": "#{name}",
81+
"View":"SearchAll",
82+
"Top":10
83+
}
84+
}
85+
86+
87+
}
88+
}
89+
}

0 commit comments

Comments
 (0)