
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
A JavaScript library for cryptocurrency trading.
We aim to easily link multiple exchanges with one strategy code.
npm install smxt
//cjs
var smxt = require('smxt')
console.log(smxt) // print all available exchanges
var smxt = require('smxt')
let binance = new smxt.Binance(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT"
)
let bitget = new smxt.Bitget(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT",
passphrase = "YOUR_PASSPHRASE"
)
let bybit = new smxt.Bybit(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT"
)
let okx = new smxt.Okx(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT",
passphrase = "YOUR_PASSPHRASE"
)
let gateIo = new smxt.GateIo(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT"
)
let orderly = new smxt.Orderly(
accountId = "YOUR_ACCOUNT_ID",
apiSecret = "YOUR_API_SECERT"
)
let blofin = new smxt.Blofin(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT",
passphrase = "YOUR_PASSPHRASE"
)
let upbit = new smxt.Upbit(
apiKey = "YOUR_API_KEY",
apiSecret = "YOUR_API_SECERT"
)
let totalEquity = await bybit.getTotalEquity()
console.log(totalEquity) // 1000.0
let symbolBalance = await bybit.getSymbolBalance("USDT")
console.log(symbolBalance) // 700.0
let allBalance = await bybit.getAllBalance()
console.log(allBalance) // {USDT: { amount: 3000 }, BTC: { amount: 0.1 }}
// init symbol info (tick step, qty step, min qty)
await bybit.initSymbolInfo()
console.log(bybit.symbolInfo)
// {
// BTCUSDT: { amountTick: 0.001, priceTick: 0.1, minValue: 0.001, maxOrderSize: 100, contractValue: 1}
// ETHUSDT: { amountTick: 1, priceTick: 0.0001, minValue: 1, maxOrderSize: 10000, contractValue: 1}
// }
let timeframe = "1d" // or 4h, 1h, 30m, 15m, 5m, 1m
let kline = await bybit.getKline("ETHUSDT", timeframe)
console.log(kline)
// [
// {
// open: 3138.75,
// high: 3169.63,
// low: 3126.45,
// close: 3135.52,
// volume: 10228.3683,
// timestamp: 1714003200000
// },
// {
// open: 3219.37,
// high: 3292.7,
// low: 3103.04,
// close: 3138.74,
// volume: 53623.2576,
// timestamp: 1713916800000
// }
// ]
let orderType = "limit" // or market
let side = "buy" // or sell
let amount = 10
let price = 0.4
let orderId = await bybit.postOrder(
"XRPUSDT",
orderType,
side,
amount,
price
)
console.log(orderId)
let position = await bybit.getPosition("XRPUSDT")
console.log(position) // 10.0(long) or -10.0(short)
await bybit.cancelAllOrders("XRPUSDT")
For business inquiries: dev@tradingtau.com
FAQs
A JavaScript library for cryptocurrency trading.
The npm package smxt receives a total of 0 weekly downloads. As such, smxt popularity was classified as not popular.
We found that smxt 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.