npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openwhaleorg/crossex

v0.1.0

Published

Gate CrossEx venue plugin for OpenWhale — one cross-exchange account over Binance, OKX, Bybit, Gate, Kraken, Hyperliquid and Deribit, with margin shared between them

Downloads

130

Readme

@openwhaleorg/crossex

OpenWhale 的 Gate CrossEx 交易平台插件。

CrossEx 把 Binance、OKX、Bybit、Gate、Kraken、Hyperliquid、Deribit 接入同一个账户,保证金在这些 交易所之间共享。两条腿分处不同交易所的对冲不需要划转,也不需要在每个平台各备一份资金。

建模

一个 venue:crossex。交易所写在符号里:

BINANCE_FUTURE_BTC_USDT     交易所 _ 业务 _ 基础币 _ 计价币
KRAKEN_FUTURE_BTC_USD       Kraken 以 USD 结算
HYPERLIQUID_FUTURE_ETH_USDC Hyperliquid 与 Deribit 以 USDC 结算
GATE_SPOT_ETH_USDT

按交易所拆成多个 venue 会暗示保证金彼此独立——那恰恰在爆仓边缘是错的。品种以 GET /crossex/rule/symbols 为准,不做静态推断。

安装

Dashboard → Plugins → Install → @openwhaleorg/crossex(或本目录绝对路径)。 随后:Credentials(crossex:Gate APIv4 key + secret)→ Account → 策略实例。

填充的矩阵格

| Kind | Venue | 凭证 | |---|---|---| | exchange/perp | crossex | crossex |

REST 覆盖品种、行情、资费、风险限额、余额、持仓、订单、成交与杠杆。最优买卖价只在 WebSocket 上 (market/tickers 不含盘口),所以价差类策略读的是 watchTicker;watchOrderBook、watchTrades、 watchOrders、watchMyTrades、watchPositions 同样接在流上。

盘口深度、K 线、公开成交没有 REST 路由。这些方法会直接报错并给出原交易所的免密符号 (binance:BTC/USDT:USDT),而不是返回编造的数据。

限制

  • 没有测试网,每一单都是实盘。
  • 限频:下单 100 次 / 10s,查询 200 次 / 10s,全平仓 100 次 / 天。
  • 保证金天然全仓,setMarginMode('isolated') 会被拒绝。

开发

pnpm install && pnpm build && pnpm test

MIT。