
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Simple REST API wrapper for fetching Bitcoin market price data via multiple backends.
Simple REST API wrapper for fetching Bitcoin market price data via multiple backends.
pip install btcget
btcget init
init will create a config file (.btcget) in your home directory, defaulting to (defaulting to "coinmarket" backend and "USD" currency). If these defaults are good for you, then you can simply add your API token for the backend:
btcget config --key <api key>
Otherwise, update your backend and currency converter:
btcget config --backend <api backend>
btcget config --currency <currency converter>
btcget
import btcget
config = btcget.load_config()
api_backend = btcget.ApiBackendFactory.create_backend(config["backend"],
config["key"],
config["currency"])
btc_market_price = api_backend.get_btc_price()
Steps 1 and 2 can be skipped and you can simply supply your arguments in your app to the backend creator. If using multiple apps, then steps 1 and 2 can help for having a common configuration.
FAQs
Simple REST API wrapper for fetching Bitcoin market price data via multiple backends.
We found that btcget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.