Morning Star

免费增值
通过 Api Dojo | 已更新 8 hours ago | Finance
人气

9.6 / 10

延迟

2,131ms

服务等级

99%

Health Check

N/A

返回所有讨论

market/v2/get-returns - list of performanceIds

Rapid account: Haraslay 620
haraslay620
8 months ago

Looking for the list of performanceIds that I can use for the market/v2/get-returns, or at least 50 ?

(would be great to have Endpoints for Reference Data with performanceIds list)

Rapid account: Apidojo
apidojo Commented 3 months ago

I am sorry that I cannot help you with coding. This API reproduces PUBLIC data and features of morningstar.COM version

Regards.

Rapid account: Mugcostanza
mugcostanza Commented 3 months ago

using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri(“https://morning-star.p.rapidapi.com/market/v2/auto-complete?q=TSLA”),
Headers =
{
{ “X-RapidAPI-Key”, “c276db9e1bmshb517603b1a8de5fp184c33jsne542522030aa” },
{ “X-RapidAPI-Host”, “morning-star.p.rapidapi.com” },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}

How do I change this if I want to search on the Canadian stock exchange TSX? I tried looking for XEI (an ETF). I tried various version such as XEI.TO, XEI.TSX, etc.

Rapid account: Apidojo
apidojo Commented 8 months ago

Well,

The endpoint is mapped to the search bar on top of MS; You may try and experience the same. You should try the followings instead.
querystring = {“q”: “Tesla"}
querystring = {“q”: “Alphabet"}
querystring = {“q”: “Meta"}

Regards.

Rapid account: Haraslay 620
haraslay620 Commented 8 months ago

Thanks I am using the market/v2/auto-complete endpoint - does the querystring actually allow for multiple values as I get this {‘count’: 0, ‘pages’: 0, ‘results’: []} when using the below :

querystring = {“q”: “Tesla, Alphabet, Meta”}

Rapid account: Apidojo
apidojo Commented 8 months ago

Hello,

You have to use …/market/v2/auto-complete endpoint to make your own mapping table for symbol/performanceId pair.

Regards.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论