
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
github.com/moonwoods/currency_api
Advanced tools
Golang API to check currency details and exchange rates.
At this time, 200 currencies are available and include cryptocoins.
localhost:8080/health
Just returns a 200 indicating that the api is live.
localhost:8080/all
Returns a JSON dictionary of available currencies in the format:
<currency-code>:<currency-common-name>
Ex:
{
...
"btc": "Bitcoin",
"usd": "US Dollar",
"mxn": "Mexican Peso",
...
}
localhost:8080/exchange/<currency-code>
Returns an object that includes the date and a list of exchange with all currencies based off the requested one:
{
"date": "2025-02-18",
"eur": {
"1inch": 3.9004839,
"aave": 0.0040031729,
"ada": 1.35441158,
"aed": 3.84382391,
...
}
}
Ensure you have built your binary:
go build -o currency_api .
and then run it with:
./currency_api
Or just run it with:
go run .
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.