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.
RTCBX uses the Coinbase Pro (formerly GDAX and Coinbase Exchange) Exchange websocket feed to provide immediate access to the current state of the exchange without repeatedly polling parts of the RESTful API. It can:
RTCBX::Orderbook
RTCBX::Candles
RTCBX::Trader
Each type of RTCBX object will supports defining callbacks to run when:
Orderbook
changes.Add this line to your application's Gemfile:
gem 'rtcbx'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rtcbx
require 'rtcbx'
RTCBX objects share a common interface:
#
# :product_id
# sets the currency (defaults to 'BTC-USD')
#
# :start
# run #start! at creation? (defaults to true)
#
rtcbx = RTCBX.new({product_id: 'BTC-GPB', start: false}) do |change|
# check some values, do some stuff
end
rtcbx.start! # Starts the websocket feed and tracking/update threads.
rtcbx.stop! # Stops the websocket feed and any tracking/update threads.
rtcbx.reset! # Calls #stop! then calls #start!.
ob = RTCBX::Orderbook.new
ob = RTCBX::Orderbook.new(start: false)
# When you want it to go live:
ob.start!
# When you want to stop it:
ob.stop!
# Reset the orderbook by fetching a fresh orderbook snapshot. This just calls
# `stop!` and then `start!` again:
ob.reset!
ob = RTCBX::Orderbook.new(product_id: "BTC-GBP")
ob = RTCBX::Orderbook.new do |message|
if message.fetch 'type' == 'match'
puts ob.spread.to_f('s')
end
end
ob.on_message do |message|
puts ob.count
end
ob.bids
ob.asks
ob.snapshot_sequence
ob.last_sequence
ob.last_pong
ob.aggregate_bids(10)
ob.aggregate_asks(10)
# Will perform the aggregation on each call. Avoid abusing this function since it may degrade performance.
ob.aggregate(10)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that rtcbx demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.