Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
The following examples demonstrate how Http and Websocket requests are made. Just enter your public key and you can run the examples.
Get your api key by logging in here: https://pro.bitcoinaverage.com/
Official documentation: https://apiv2.bitcoinaverage.com
More examples on Github: https://github.com/bitcoinaverage/api-integration-examples/
from bitcoinaverage import RestfulClient
if __name__ == '__main__':
public_key = 'your_public_key'
restful_client = RestfulClient(public_key)
ticker_global_per_symbol = restful_client.ticker_global_per_symbol('BTCUSD')
print('Global Ticker for BTCUSD:')
print(ticker_global_per_symbol)
from bitcoinaverage import TickerWebsocketClient
if __name__ == '__main__':
public_key = 'your_public_key'
print('Connecting to the ticker websocket...')
ws = TickerWebsocketClient(public_key)
ws.ticker_data('local', 'BTCUSD')
Version 2 the websocket clients accept a list of cryptocurrencies and a list of exchange respectively. They also use new optimized algorithm for quicker updates.
from bitcoinaverage import TickerWebsocketClientV2
if __name__ == '__main__':
public_key = 'your_public_key'
print('Connecting to the ticker websocket...')
ws = TickerWebsocketClientV2(public_key)
ws.ticker_data('local', ['BTCUSD', 'ETHUSD'])
from bitcoinaverage import ExchangeWebsocketClientV2
if __name__ == '__main__':
public_key = 'your_public_key'
print('Connecting to the exchange websocket...')
ws = ExchangeWebsocketClientV2(public_key)
ws.exchange_data(['bitstamp', 'coinbasepro'])
FAQs
Library to integrate with the BitcoinAverage API
We found that bitcoinaverage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.