Is there any SonarCloud API that can retrieve historical trend of issue by severity? - sonarcloud

I am looking to retrieve SonarCloud historical trend data of Vulnerabilities, Bugs and Security Hotspot with Severity of BLOCKER and CRITICAL only.
I have used this API https://sonarcloud.io/api/issues/search?componentKeys={project_key}&types=BUG,VULNERABILITY,SECURITY_HOTSPOT&severities=CRITICAL,BLOCKER which only shows me latest issue with BLOCKER and CRITICAL severity.
I am more interested for a historical trend like this API https://sonarcloud.io/api/measures/search_history?metrics=critical_violations&from=2020-01-01&ps=100&component={project_key} but this violations include CODE_SMELLS which is something I do not want to track. If I swap the metrics for Vulnerabilities, Bugs and Security Hotspot, it wont shows severity.

No, according to one of the SonarSourcer response. There is no API that can search historical trend on issue by severity only.
Reference: https://community.sonarsource.com/t/is-there-an-api-to-retrieve-historical-trend-of-issue-by-certain-severity-only/31930

Related

Is there an API that gives you near realtime stock portfolio holdings?

I am trying to find an API similar to https://plaid.com/ that allows users to connect to multiple brokerages and return security holding information. The issue with Plaid seems to be that they only provide updates once a day and I am looking for something more "real time."
Has anyone come across another service like this that provides up-to-date information on your portfolio?

How to get a rout information with trafic flow information included for a past date?

I am trying to use Azure Maps API. It will be nice to have route information which should include the locations of course and a speed profile. As you can understand speed profile is not an east one. Free flow speed profile is ok. But we want to simulate real-world conditions meaning that we want to select date and time of departure to get accurate speed information as close to as possible to a real world traffic influence.
Is there any feature that Azure provide this? If not, which API can provide this
I don't have any code at this moment to show since ı don't know which API to use.
Historical traffic data is not currently available in Azure Maps but is being investigated as a potential future feature.

Calculating Front end performance metrics via Web API's ( navigation API and performance timeline API)

In order to calculate the first contentful paint , i used the below command in my browser console.
window.performance.getEntriesByType('paint') -> From that , i fetched the start time of first contentful paint which is : startTime: 710.1449999972829 ms.
Reference
But if i audit the same page via lighthouse(from chrome dev tools), the first contentful paint calculated by lighthouse is '1.5 s'
I am trying to understand why there is a wide difference between the two data. Tried running the audit couple of times via lighthouse, still the data hardy matches with web api data.
Can anyone explain me as to why there is huge difference. Should i go ahead with the data from web api's or should i consider lighthouse data as valid one?
Thank you for the great question, I learned something today because of it.
It appears that even on desktop view there is some throttling applied to the CPU, this didn't used to be the case as far as I am aware.
I found this article that explains the current throttling policy.
The key part here is as follows:
Starting with Chrome 80, the Audits panel is simplifying the throttling configuration:
Simulated throttling remains the default setting. This matches the setup of PageSpeed Insights and the Lighthouse CLI default, so this provides cross-tool consistency.
No throttling is removed as it leads to inaccurate scoring and misleading metric results.
Within the Audits panel settings, you can uncheck the Simulated throttling checkbox to use Applied throttling. For the moment, we are keeping this Applied throttling option available for users of the View Trace button. Under applied throttling, the trace matches the metrics values, whereas under Simulated things do not currently match up.
Point 3 is the main part. Basically the throttling is still applied to the CPU on desktop. Also note they say "for the moment" so this is obviously something they are considering removing in the future.
This is actually a really good idea, most developers are running powerful hardware, most consumers are running cheap off the shelf laptops with i3 processors (or equivalent...or worse!).
As Google spend a lot of time refining Lighthouse I would leave Simulated throttling ON and use their results as they will be more indicative of what an end user might see.
Switching off simulated throttling
If you want your trace results (or console performance API results) to match then uncheck "simulated throttling" at the top of the page.

YouTube API Services Compliance Review

I have a project where I need to have the API quota increased significantly from the 10,000 daily hits, and I think this is being processed by Google as part of a YouTube API Services Compliance Review.
However, I have not had any response in over a week and the delay is putting the project at risk of a delayed launch and additional costs.
Does anyone know if this is normal and if there is a way to expedite the review, or speak to someone? Even pay for a higher tier of support?
Thanks in advance.
If you’ve filled the audit form https://support.google.com/youtube/contact/yt_api_form?hl=en properly, you should get a response within two weeks (Google reviews thousands of these, among other things to prevent abuse this is one of the processes that isn’t fully automated).
I recommend if your in a rush since your paying for credits you might as well open a second account and load balance between two or even three accounts; in your code you can create counters and swap before capping out the 24 hour term; not sure what data you’re looking to extract but depends on what data you may be able to even use other services to supplement.
They will get back to you about your application; just requires massive patience.

Broker that supports both ISA accounts and API access?

I'm looking for a stockbroker but can't seem to find one that 'ticks all the right boxes' - can anyone help please?!
The essential requirements are:
Supports Shares ISA accounts
Access to ETFs on the LSE, especially iShares
Real-time price info/trading (with as low latency as possible)
Low fees/charges (preferably with a heavy discount for say 10+ trades per week)
Available to individuals, not just institutions
Execution-only is fine, don't need anything fancy. The ISA requirement probably restricts it to UK brokers I guess. There are loads of brokers that do all of the above, so then it comes down to my key additional requirement:
API access, e.g. FIX (for automated/algorithmic trading)
But I can't find any brokers that have both ISA support and API access. I guess it mustn't be a common requirement for individual investors in the UK but it seems commonly available from US brokers. I can probably live without API access if I really have to. (As long as there's a web interface, which they all seem to do nowadays. And I have no requirement for desktop/mobile trading platform software.)
My 'would really like but can be flexible on' requirements are:
Existing (open source/cheap) connector for Marketcetera or similar
Real-time level 2 price info at a reasonable price
DMA (Direct Market Access) on the LSE at a reasonable price (preferably without a massive 'professional client' process to have to go through)
Then the optional/'nice to have's are:
Demo/'monopoly money' account for testing
Ultra low latency pricing/trades
Can switch into CFDs/spreadbetting
Also supports SIPPs
So, does anyone know of any brokers that meet some/all these requirements?
The cheapest ones I've found that meet my essential requirements are x-o.co.uk and hl.co.uk, both currently charging £5.95. There's also share.com whose Premium account might be useful in the future but rather pricey up front - £3000 per year for unlimited trades with no other major charges. E*TRADE might have done the job but they're no longer trading in the UK. Interactive Brokers seems to be the only choice for API access in the UK (?) but they don't support ISAs. (They've said "After reviewing this we have decided not to support ISA's at this time." so it won't happen anytime soon.) There are some nice-looking platforms like Marketcetera/JBookTrader/tradelink/ActiveQuant - but if they can't connect to a broker that does ISAs they're skuppered for my purposes.
And some additional questions while I'm thinking:
Anyone know how much latency there actually is on a normal UK retail broker's web interface's "real-time" prices/trades?
Are stock prices pretty much the same across different brokers? I read in a review somewhere that one broker didn't offer as good a stock prices as others?! Is this down to the RSPs they use maybe?
Is it even possible to get DMA on the LSE at a reasonable price without a massive 'professional client' process to have to go through?
It seems that IG brokers may have both ISAs and and an API... Can't seem to find any others.