We use API search function to retrieve data, but it returns unknown property 'ProviderSymbol'. Th...

...e field in Eikon Client is "PROV_SYMB"
df = rd.discovery.search(
view=rd.discovery.Views.COMMODITY_QUOTES,
top=10,
filter="(ProviderSymbol eq 'm2401')",
select="ProviderSymbol,RIC"
)
{
"return_code": 500,
"return_info": "Error code 400 | Invalid filter: unknown property 'ProviderSymbol'",
"result": {}
}
Best Answer
-
Thank you for reaching out to us.
This ProviderSymbol is not a valid field in the COMMODITY_QUOTES.
You can use the following code to the all available fields in the COMMODITY_QUOTES.
response = search.metadata.Definition(
view = search.Views.COMMODITY_QUOTES # Required parameter
).get_data()
response.data.dfI tried m2401 in Eikon and it doesn't show anything.
0
Answers
-
@Jirapongse thanks. I asked another question is related to this question. Could you have a look at it? (https://community.developers.refinitiv.com/questions/108440/how-to-use-eikon-api-to-get-commodities-ric-code-b.html) I got a reply to use search function to get the RIC code.
0 -
I assume that m2401 is from Ticker (M) and Expirate Date (Jan 24).
If my assumption is correct, the seach query should be:
{
"View": "CommodityQuotes",
"Filter": "TickerSymbol eq 'M' and ContractMonthYear eq 'Jan 24' and AssetStateName eq 'Active' and RCSAssetCategoryLeaf xeq 'Commodity Future' and ExpiryDateString ne null",
"Select": "DocumentTitle,RIC,AssetType,ContractMonthYear,Periodicity,RCSAssetCategoryLeaf,RCSAssetClass,RCSCurrencyLeaf,ExchangeCode,ExpiryDateString"
}The output is:
{
"Total": 1,
"Hits": [
{
"DocumentTitle": "DCE Soybean Meal Commodity Future Jan 2024, Commodity Future, Dalian Commodity Exchange",
"RIC": "DSMF4",
"AssetType": [
"DERIVATIVE"
],
"ContractMonthYear": "Jan 24",
"Periodicity": "Irregular",
"RCSAssetCategoryLeaf": "Commodity Future",
"RCSAssetClass": "FUT",
"RCSCurrencyLeaf": "Chinese Yuan",
"ExchangeCode": "DLC",
"ExpiryDateString": "15 Jan 2024"
}
]
}0 -
"TickerSymbol eq 'M' and ContractMonthYear eq 'Jan 24' and AssetStateName eq 'Active' and RCSAssetCategoryLeaf xeq 'Commodity Future' and ExpiryDateString ne null",
Hi , I want to replace 'TickerSymbol' with 'TradingSymbol’, but It's not valid.
What is the solution to solve it
0 -
@Jirapongse Can you help me solve this problem
0 -
I couldn't find this "TradingSymbol" field in the CommodityQuotes.
0 -
this is my code to get commodities ricCode
filter="TickerSymbol eq '" + code + "' and ContractMonthYear eq '" + date + "' and AssetStateName eq 'Active' and RCSAssetCategoryLeaf xeq 'Commodity Future' and ExpiryDateString ne null",
I use below param to get code , it will return error messges.
"code":"IF","date":"Mar 24"
but I use below params , it's right
"code":"TF","date":"Mar 24"
They are all commodities codes I found on the Internet, I can see price info in other web by IF2403,TF2403,
Why is using the first code problematic(IF2403)?
0 -
The accepted question will not be monitored.
Please create a new question for this new problem.
0 -
@Jirapongse https://community.developers.refinitiv.com/questions/112386/why-dont-get-commodities-riccode-by-if2403.html
this is my new question for this
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 622 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛