Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Ruby api for the bter.com cryptocurrency exchange
Install with
gem install bter-ruby
and then require in your project
require 'bter'
The library has two parts , one for the public api and one for the trading one.
The public api has the following methods
bt = Bter::Public.new
bt.pairs
bt.tickers
bt.ticker(pair)
bt.depth(pair)
bt.info
bt.details
bt.trades(pair, tid) # alias .history
tid parameter is optional on trades method and if omitted will return the most recent 80 trade history records.
To use the trading api , you need to supply your key and secret
bt = Bter::Trade.new
bt.key = "my key"
bt.secret = "my secret"
Then you can use the available methods:
bt.get_info
bt.active_orders
bt.my_trades(pair)
bt.order_status(order_id)
bt.cancel_order(order_id)
bt.buy(pair, amount, rate)
bt.sell(pair, amount, rate)
rate parameter is optional on buy and sell methods and if omitted the current rate will be used.
Also check the two examples in the examples folder.
Tested on:
MRI 2.1.1 MRI 2.1.0 MRI 2.0 MRI 1.93 Rubinius 2.2.6
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Licensed under MIT.
FAQs
Unknown package
We found that bter-ruby 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.