
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Node.js library for the B2Trader's API.
npm install b2trader
import { PublicClient } from "B2Trader";
const url = "https://api.b2bx.exchange:8443/trading"; // B2Trader's url
const client = new PublicClient({ url });
.getInstruments()
const instruments = await client.getInstruments();
.getAssets()
const assets = await client.getAssets();
.getListOfInstruments()
const instruments = await client.getListOfInstruments();
.getOrderBookSnapshot()
const instrument = "btc_usd";
const snapshot = await client.getOrderBookSnapshot({ instrument });
.getCandles()
const instrument = "btc_usd";
const startDate = "2020-01-24T07:26:04";
const endDate = "2020-09-29T07:26:04";
const type = "1m";
const count = 2;
const candles = await client.getCandles({
instrument,
startDate,
endDate,
type,
count,
});
.getRootAsset()
const asset = await client.getRootAsset();
.getTiers()
const tiers = await client.getTiers();
npm test
FAQs
Node.js client for the B2Trader
We found that b2trader 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.