@xapy/orderbook 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/exchanges/aster/index.d.cts +1 -1
- package/dist/exchanges/aster/index.d.ts +1 -1
- package/dist/exchanges/binance/index.d.cts +1 -1
- package/dist/exchanges/binance/index.d.ts +1 -1
- package/dist/exchanges/bingx/index.d.cts +1 -1
- package/dist/exchanges/bingx/index.d.ts +1 -1
- package/dist/exchanges/bitget/index.d.cts +1 -1
- package/dist/exchanges/bitget/index.d.ts +1 -1
- package/dist/exchanges/bybit/index.d.cts +1 -1
- package/dist/exchanges/bybit/index.d.ts +1 -1
- package/dist/exchanges/coinex/index.d.cts +1 -1
- package/dist/exchanges/coinex/index.d.ts +1 -1
- package/dist/exchanges/deribit/index.d.cts +1 -1
- package/dist/exchanges/deribit/index.d.ts +1 -1
- package/dist/exchanges/edgex/index.d.cts +1 -1
- package/dist/exchanges/edgex/index.d.ts +1 -1
- package/dist/exchanges/gate/index.d.cts +1 -1
- package/dist/exchanges/gate/index.d.ts +1 -1
- package/dist/exchanges/hyperliquid/index.d.cts +1 -1
- package/dist/exchanges/hyperliquid/index.d.ts +1 -1
- package/dist/exchanges/kucoin/index.d.cts +1 -1
- package/dist/exchanges/kucoin/index.d.ts +1 -1
- package/dist/exchanges/lighter/index.d.cts +1 -1
- package/dist/exchanges/lighter/index.d.ts +1 -1
- package/dist/exchanges/mexc/index.cjs +729 -0
- package/dist/exchanges/mexc/index.cjs.map +1 -0
- package/dist/exchanges/mexc/index.d.cts +57 -0
- package/dist/exchanges/mexc/index.d.ts +57 -0
- package/dist/exchanges/mexc/index.js +721 -0
- package/dist/exchanges/mexc/index.js.map +1 -0
- package/dist/exchanges/okx/index.d.cts +1 -1
- package/dist/exchanges/okx/index.d.ts +1 -1
- package/dist/exchanges/whitebit/index.d.cts +1 -1
- package/dist/exchanges/whitebit/index.d.ts +1 -1
- package/dist/index.cjs +325 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +325 -1
- package/dist/index.js.map +1 -1
- package/dist/{stream-D5-FyNGW.d.cts → stream-Dyq24thx.d.cts} +1 -1
- package/dist/{stream-D5-FyNGW.d.ts → stream-Dyq24thx.d.ts} +1 -1
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -78,9 +78,12 @@ WebSocket connections are not subject to CORS and work directly in the browser.
|
|
|
78
78
|
| edgeX | `@xapy/orderbook/edgex` | — | ✅ (USDC) |
|
|
79
79
|
| WhiteBIT | `@xapy/orderbook/whitebit` | ✅ | ✅ (USDT) |
|
|
80
80
|
| Aster | `@xapy/orderbook/aster` | ✅ | ✅ (USDT) |
|
|
81
|
+
| MEXC | `@xapy/orderbook/mexc` | REST only¹ | ✅ (USDT-M) |
|
|
81
82
|
|
|
82
83
|
Perpetuals are linear only — inverse / coin-margined contracts are out of scope.
|
|
83
84
|
|
|
85
|
+
¹ MEXC replaced its JSON spot WebSocket streams with protobuf-encoded ones, which this lib does not decode, so MEXC spot is available through `fetchOrderbook` but not `streamOrderbook`.
|
|
86
|
+
|
|
84
87
|
## API
|
|
85
88
|
|
|
86
89
|
### `new BybitClient(options)`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchAsterOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchAsterOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchBinanceOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchBinanceOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchBingxOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchBingxOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchBitgetOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchBitgetOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchBybitOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchBybitOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchCoinexOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchCoinexOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchDeribitOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchDeribitOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The venue's own REST host. It sends no `Access-Control-Allow-Origin` on
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The venue's own REST host. It sends no `Access-Control-Allow-Origin` on
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchGateOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchGateOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchHyperliquidOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchHyperliquidOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
interface FetchKucoinOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
interface FetchKucoinOrderbookOptions {
|
|
4
4
|
symbol: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.cjs';
|
|
2
2
|
|
|
3
3
|
declare const LIGHTER_REST = "https://mainnet.zklighter.elliot.ai";
|
|
4
4
|
interface LighterMarketOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-
|
|
1
|
+
import { M as Market, a as Orderbook, c as OrderbookStream, C as ClientOptions, b as OrderbookOptions } from '../../stream-Dyq24thx.js';
|
|
2
2
|
|
|
3
3
|
declare const LIGHTER_REST = "https://mainnet.zklighter.elliot.ai";
|
|
4
4
|
interface LighterMarketOptions {
|