|
1 | 1 | { |
2 | 2 | "search": { |
3 | 3 | "templates": { |
4 | | - |
5 | 4 | "Equity": { |
6 | 5 | "description": "Search for Ordinary Shares of a particular exchange.", |
7 | 6 | "parameters": { |
|
10 | 9 | "default": "" |
11 | 10 | }, |
12 | 11 | "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 |
14 | 14 | } |
15 | 15 | }, |
16 | 16 | "request_body": { |
17 | 17 | "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'", |
19 | 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, |
| 20 | + "Top":10000, |
21 | 21 | "Skip":0, |
22 | 22 | "GroupCount":3, |
23 | 23 | "View":"EquityQuotes" |
24 | 24 | } |
25 | 25 | }, |
26 | | - |
27 | 26 | "Mines": { |
28 | 27 | "description": "Find coordinates of mines in a region.", |
29 | 28 | "parameters": { |
30 | 29 | "commodity": { |
31 | 30 | "description": "Commodity extracted from the mine. For example: 'Gold', 'Nickel', 'Zinc', 'Cooper', 'Palladium', 'Lead', etc.", |
32 | | - "default": "Gold" |
| 31 | + "optional":true |
33 | 32 | }, |
34 | 33 | "region": { |
35 | 34 | "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 |
37 | 36 | } |
38 | 37 | }, |
39 | 38 | "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, |
43 | 42 | "Skip":0, |
44 | 43 | "GroupCount":3, |
45 | 44 | "View":"PhysicalAssets" |
46 | 45 | } |
47 | 46 | }, |
48 | | - |
49 | 47 | "VesselsBoundFor": { |
50 | 48 | "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 | 49 | "parameters": { |
61 | 50 | "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 |
77 | 53 | } |
78 | 54 | }, |
79 | 55 | "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" |
83 | 63 | } |
84 | | - } |
85 | | - |
86 | | - |
| 64 | + } |
87 | 65 | } |
88 | 66 | } |
89 | 67 | } |
0 commit comments