@liberfi.io/ui-perpetuals 0.1.158 → 0.2.0
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/dist/index.d.mts +104 -2
- package/dist/index.d.ts +104 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const _default: "0.
|
|
15
|
+
declare const _default: "0.2.0";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Trading pair symbol format
|
|
@@ -755,6 +755,108 @@ declare class HyperliquidApiError extends Error {
|
|
|
755
755
|
constructor(message: string, statusCode: number, responseBody: string);
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
+
/**
|
|
759
|
+
* `signTypedData` is invoked once per place / cancel during the
|
|
760
|
+
* `prepare → submit` flow. The hosting app injects this so the user's wallet
|
|
761
|
+
* (privy / wagmi / etc.) controls the keys — perpetuals-server never sees them.
|
|
762
|
+
*
|
|
763
|
+
* The `typedData` argument is the EIP-712 envelope returned verbatim by the
|
|
764
|
+
* server. The function must return the resulting compact signature as a
|
|
765
|
+
* `0x`-prefixed hex string.
|
|
766
|
+
*/
|
|
767
|
+
type SignTypedDataFn = (typedData: Record<string, unknown>) => Promise<`0x${string}`>;
|
|
768
|
+
/** Configuration for {@link LiberFiPerpetualsClient}. */
|
|
769
|
+
interface LiberFiPerpetualsClientConfig {
|
|
770
|
+
/**
|
|
771
|
+
* REST base URL, with NO trailing slash. Examples:
|
|
772
|
+
* - Local dev: `http://localhost:8080`
|
|
773
|
+
* - Staging: `https://api.liberfi.io/staging/perpetuals`
|
|
774
|
+
* - Production: `https://api.liberfi.io/perpetuals`
|
|
775
|
+
*
|
|
776
|
+
* The client appends `/v1/...` paths to this value.
|
|
777
|
+
*/
|
|
778
|
+
baseUrl: string;
|
|
779
|
+
/**
|
|
780
|
+
* Optional WebSocket endpoint. Real-time data is NOT proxied by
|
|
781
|
+
* perpetuals-server today — the WS subscription methods connect directly to
|
|
782
|
+
* the upstream exchange. Defaults to Hyperliquid mainnet.
|
|
783
|
+
*/
|
|
784
|
+
wsEndpoint?: string;
|
|
785
|
+
/**
|
|
786
|
+
* EIP-712 signer injected by the hosting app. REQUIRED for `placeOrder` /
|
|
787
|
+
* `cancelOrder`; read-only methods work without it.
|
|
788
|
+
*/
|
|
789
|
+
signTypedData?: SignTypedDataFn;
|
|
790
|
+
/**
|
|
791
|
+
* Per-request timeout in milliseconds. Defaults to 30 000 ms.
|
|
792
|
+
*/
|
|
793
|
+
timeout?: number;
|
|
794
|
+
/**
|
|
795
|
+
* Optional provider override sent as `?provider=...`. Defaults to the server
|
|
796
|
+
* configuration (currently `hyperliquid`). Only set this when the gateway
|
|
797
|
+
* has multiple providers configured and you want a non-default one.
|
|
798
|
+
*/
|
|
799
|
+
provider?: string;
|
|
800
|
+
/**
|
|
801
|
+
* Optional extra request headers (auth tokens, tracing, etc.) merged into
|
|
802
|
+
* every fetch.
|
|
803
|
+
*/
|
|
804
|
+
headers?: Record<string, string>;
|
|
805
|
+
}
|
|
806
|
+
/** Thrown when perpetuals-server returns a non-2xx HTTP status. */
|
|
807
|
+
declare class LiberFiApiError extends Error {
|
|
808
|
+
readonly statusCode: number;
|
|
809
|
+
readonly responseBody: string;
|
|
810
|
+
constructor(message: string, statusCode: number, responseBody: string);
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* REST + injected-signer implementation of {@link IPerpetualsClient} that talks
|
|
814
|
+
* to a deployed `perpetuals-server` instead of Hyperliquid directly.
|
|
815
|
+
*
|
|
816
|
+
* - Read-only methods are plain `fetch GET`s.
|
|
817
|
+
* - `placeOrder` / `cancelOrder` follow the two-phase flow:
|
|
818
|
+
* 1. POST `…/prepare` → server builds upstream action + EIP-712 typed data.
|
|
819
|
+
* 2. Host wallet signs `typedData` via the injected `signTypedData`.
|
|
820
|
+
* 3. POST `…/submit` with the original `action`, the user signature, and
|
|
821
|
+
* the server-issued `nonce`. The server forwards to upstream and
|
|
822
|
+
* normalises the response.
|
|
823
|
+
* - WebSocket subscriptions are NOT proxied through perpetuals-server today.
|
|
824
|
+
* They reuse the existing {@link WebSocketManager} pointed at the upstream
|
|
825
|
+
* exchange (`wsEndpoint`, default Hyperliquid mainnet).
|
|
826
|
+
*/
|
|
827
|
+
declare class LiberFiPerpetualsClient implements IPerpetualsClient {
|
|
828
|
+
private readonly baseUrl;
|
|
829
|
+
private readonly wsEndpoint;
|
|
830
|
+
private readonly timeout;
|
|
831
|
+
private readonly provider?;
|
|
832
|
+
private readonly headers?;
|
|
833
|
+
private readonly signTypedData?;
|
|
834
|
+
private wsManager;
|
|
835
|
+
constructor(config: LiberFiPerpetualsClientConfig);
|
|
836
|
+
/** Build a fully-qualified URL with optional query string. */
|
|
837
|
+
private url;
|
|
838
|
+
/** Common fetch wrapper with timeout + structured error mapping. */
|
|
839
|
+
private request;
|
|
840
|
+
getSupportedCoins(): Promise<string[]>;
|
|
841
|
+
getMarket(symbol: string): Promise<MarketData | null>;
|
|
842
|
+
getMarkets(symbols?: string[]): Promise<MarketData[]>;
|
|
843
|
+
getKlines(symbol: string, interval: KlineInterval, limit?: number): Promise<Kline[]>;
|
|
844
|
+
getOrderBook(symbol: string, maxLevel?: number): Promise<OrderBook>;
|
|
845
|
+
getRecentTrades(symbol: string, limit?: number): Promise<Trade[]>;
|
|
846
|
+
getPositions(params?: GetPositionsParams): Promise<GetPositionsResult>;
|
|
847
|
+
getOpenOrders(params?: GetOpenOrdersParams): Promise<GetOpenOrdersResult>;
|
|
848
|
+
getTrades(params?: GetTradesParams): Promise<GetTradesResult>;
|
|
849
|
+
placeOrder(params: PlaceOrderParams): Promise<PlaceOrderResult>;
|
|
850
|
+
cancelOrder(params: CancelOrderParams): Promise<CancelOrderResult>;
|
|
851
|
+
connectWebSocket(): Promise<void>;
|
|
852
|
+
disconnectWebSocket(): void;
|
|
853
|
+
subscribeMarketData(type: "ticker" | "trades" | "orderBook", symbol: string, callback: (data: unknown) => void): string;
|
|
854
|
+
subscribeCandles(symbol: string, interval: KlineInterval, callback: (candle: Kline) => void): string;
|
|
855
|
+
subscribeUserData(type: "orders" | "positions" | "fills", userAddress: string, callback: (data: unknown) => void): string;
|
|
856
|
+
unsubscribe(subscriptionId: string): void;
|
|
857
|
+
private requireWS;
|
|
858
|
+
}
|
|
859
|
+
|
|
758
860
|
/**
|
|
759
861
|
* Perpetuals context value type
|
|
760
862
|
*
|
|
@@ -1195,4 +1297,4 @@ declare function TradeHistoryUI({ trades, timeRange, onTimeRangeChange, currentP
|
|
|
1195
1297
|
declare function TradeHistorySkeleton(): react_jsx_runtime.JSX.Element;
|
|
1196
1298
|
declare function TradeHistoryEmpty(): react_jsx_runtime.JSX.Element;
|
|
1197
1299
|
|
|
1198
|
-
export { type Account, type CancelOrderParams, type CancelOrderResult, type Coin, CoinInfoNotFoundUI, CoinInfoSkeletonsUI, CoinInfoUI, type CoinInfoUIProps, CoinInfoWidget, type CoinInfoWidgetProps, type GetOpenOrdersParams, type GetOpenOrdersResult, type GetPositionsParams, type GetPositionsResult, type GetTradesParams, type GetTradesResult, HyperliquidApiError, type HyperliquidClientConfig, type HyperliquidEnvironment, HyperliquidPerpetualsClient, type IPerpetualsClient, type Kline, type KlineInterval, type MarketData, type MarketDataType, OpenOrdersEmpty, OpenOrdersSkeleton, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBook, type OrderBookLevel, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, type OrderSide, type OrderStatus, type OrderType, PerpetualsContext, type PerpetualsContextValue, PerpetualsProvider, type PerpetualsProviderProps, type PlaceOrderFormData, PlaceOrderFormUI, type PlaceOrderFormUIProps, PlaceOrderFormWidget, type PlaceOrderFormWidgetProps, type PlaceOrderParams, type PlaceOrderResult, type Position, PositionsEmpty, PositionsSkeleton, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, type PriceLevel, SearchCoinsUI, type SearchCoinsUIProps, SearchCoinsWidget, type SearchCoinsWidgetProps, type Symbol, type TimeRange, type Trade, type TradeHistory, TradeHistoryEmpty, TradeHistorySkeleton, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeSide, TradesUI, type TradesUIProps, TradesWidget, type TradesWidgetProps, type TradingProvider, type UseCancelOrderMutationParams, type UseCandlesSubscriptionParams, type UseCandlesSubscriptionResult, type UseCoinInfoReturnType, type UseCreateOrderMutationParams, type UseKlinesQueryParams, type UseMarketDataSubscriptionParams, type UseMarketDataSubscriptionResult, type UseMarketQueryParams, type UseMarketsQueryParams, type UseOpenOrdersScriptParams, type UseOpenOrdersScriptResult, type UseOrderBookQueryParams, type UseOrderBookScriptParams, type UseOrderBookScriptResult, type UseOrdersQueryParams, type UsePlaceOrderFormScriptParams, type UsePlaceOrderFormScriptResult, type UsePositionsQueryParams, type UsePositionsScriptParams, type UsePositionsScriptResult, type UseRecentTradesQueryParams, type UseSearchCoinsScriptParams, type UseSearchCoinsScriptResult, type UseTradeHistoryScriptParams, type UseTradeHistoryScriptResult, type UseTradesQueryParams, type UseTradesScriptParams, type UseTradesScriptResult, type UseUserDataSubscriptionParams, type UseUserDataSubscriptionResult, type UserDataType, cancelOrder, coinsQueryKey, createOrder, fetchCoins, fetchKlines, fetchMarket, fetchMarkets, fetchOrderBook, fetchOrders, fetchPositions, fetchRecentTrades, fetchTrades, klinesQueryKey, marketQueryKey, marketsQueryKey, orderBookQueryKey, ordersQueryKey, positionsQueryKey, recentTradesQueryKey, tradesQueryKey, useCancelOrderMutation, useCandlesSubscription, useCoinInfo, useCoinsQuery, useCreateOrderMutation, useKlinesQuery, useMarketDataSubscription, useMarketQuery, useMarketsQuery, useOpenOrdersScript, useOrderBookQuery, useOrderBookScript, useOrdersQuery, usePerpetualsClient, usePlaceOrderFormScript, usePositionsQuery, usePositionsScript, useRecentTradesQuery, useSearchCoinsScript, useTradeHistoryScript, useTradesQuery, useTradesScript, useUserDataSubscription, _default as version };
|
|
1300
|
+
export { type Account, type CancelOrderParams, type CancelOrderResult, type Coin, CoinInfoNotFoundUI, CoinInfoSkeletonsUI, CoinInfoUI, type CoinInfoUIProps, CoinInfoWidget, type CoinInfoWidgetProps, type GetOpenOrdersParams, type GetOpenOrdersResult, type GetPositionsParams, type GetPositionsResult, type GetTradesParams, type GetTradesResult, HyperliquidApiError, type HyperliquidClientConfig, type HyperliquidEnvironment, HyperliquidPerpetualsClient, type IPerpetualsClient, type Kline, type KlineInterval, LiberFiApiError, LiberFiPerpetualsClient, type LiberFiPerpetualsClientConfig, type MarketData, type MarketDataType, OpenOrdersEmpty, OpenOrdersSkeleton, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBook, type OrderBookLevel, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, type OrderSide, type OrderStatus, type OrderType, PerpetualsContext, type PerpetualsContextValue, PerpetualsProvider, type PerpetualsProviderProps, type PlaceOrderFormData, PlaceOrderFormUI, type PlaceOrderFormUIProps, PlaceOrderFormWidget, type PlaceOrderFormWidgetProps, type PlaceOrderParams, type PlaceOrderResult, type Position, PositionsEmpty, PositionsSkeleton, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, type PriceLevel, SearchCoinsUI, type SearchCoinsUIProps, SearchCoinsWidget, type SearchCoinsWidgetProps, type SignTypedDataFn, type Symbol, type TimeRange, type Trade, type TradeHistory, TradeHistoryEmpty, TradeHistorySkeleton, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeSide, TradesUI, type TradesUIProps, TradesWidget, type TradesWidgetProps, type TradingProvider, type UseCancelOrderMutationParams, type UseCandlesSubscriptionParams, type UseCandlesSubscriptionResult, type UseCoinInfoReturnType, type UseCreateOrderMutationParams, type UseKlinesQueryParams, type UseMarketDataSubscriptionParams, type UseMarketDataSubscriptionResult, type UseMarketQueryParams, type UseMarketsQueryParams, type UseOpenOrdersScriptParams, type UseOpenOrdersScriptResult, type UseOrderBookQueryParams, type UseOrderBookScriptParams, type UseOrderBookScriptResult, type UseOrdersQueryParams, type UsePlaceOrderFormScriptParams, type UsePlaceOrderFormScriptResult, type UsePositionsQueryParams, type UsePositionsScriptParams, type UsePositionsScriptResult, type UseRecentTradesQueryParams, type UseSearchCoinsScriptParams, type UseSearchCoinsScriptResult, type UseTradeHistoryScriptParams, type UseTradeHistoryScriptResult, type UseTradesQueryParams, type UseTradesScriptParams, type UseTradesScriptResult, type UseUserDataSubscriptionParams, type UseUserDataSubscriptionResult, type UserDataType, cancelOrder, coinsQueryKey, createOrder, fetchCoins, fetchKlines, fetchMarket, fetchMarkets, fetchOrderBook, fetchOrders, fetchPositions, fetchRecentTrades, fetchTrades, klinesQueryKey, marketQueryKey, marketsQueryKey, orderBookQueryKey, ordersQueryKey, positionsQueryKey, recentTradesQueryKey, tradesQueryKey, useCancelOrderMutation, useCandlesSubscription, useCoinInfo, useCoinsQuery, useCreateOrderMutation, useKlinesQuery, useMarketDataSubscription, useMarketQuery, useMarketsQuery, useOpenOrdersScript, useOrderBookQuery, useOrderBookScript, useOrdersQuery, usePerpetualsClient, usePlaceOrderFormScript, usePositionsQuery, usePositionsScript, useRecentTradesQuery, useSearchCoinsScript, useTradeHistoryScript, useTradesQuery, useTradesScript, useUserDataSubscription, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const _default: "0.
|
|
15
|
+
declare const _default: "0.2.0";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Trading pair symbol format
|
|
@@ -755,6 +755,108 @@ declare class HyperliquidApiError extends Error {
|
|
|
755
755
|
constructor(message: string, statusCode: number, responseBody: string);
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
+
/**
|
|
759
|
+
* `signTypedData` is invoked once per place / cancel during the
|
|
760
|
+
* `prepare → submit` flow. The hosting app injects this so the user's wallet
|
|
761
|
+
* (privy / wagmi / etc.) controls the keys — perpetuals-server never sees them.
|
|
762
|
+
*
|
|
763
|
+
* The `typedData` argument is the EIP-712 envelope returned verbatim by the
|
|
764
|
+
* server. The function must return the resulting compact signature as a
|
|
765
|
+
* `0x`-prefixed hex string.
|
|
766
|
+
*/
|
|
767
|
+
type SignTypedDataFn = (typedData: Record<string, unknown>) => Promise<`0x${string}`>;
|
|
768
|
+
/** Configuration for {@link LiberFiPerpetualsClient}. */
|
|
769
|
+
interface LiberFiPerpetualsClientConfig {
|
|
770
|
+
/**
|
|
771
|
+
* REST base URL, with NO trailing slash. Examples:
|
|
772
|
+
* - Local dev: `http://localhost:8080`
|
|
773
|
+
* - Staging: `https://api.liberfi.io/staging/perpetuals`
|
|
774
|
+
* - Production: `https://api.liberfi.io/perpetuals`
|
|
775
|
+
*
|
|
776
|
+
* The client appends `/v1/...` paths to this value.
|
|
777
|
+
*/
|
|
778
|
+
baseUrl: string;
|
|
779
|
+
/**
|
|
780
|
+
* Optional WebSocket endpoint. Real-time data is NOT proxied by
|
|
781
|
+
* perpetuals-server today — the WS subscription methods connect directly to
|
|
782
|
+
* the upstream exchange. Defaults to Hyperliquid mainnet.
|
|
783
|
+
*/
|
|
784
|
+
wsEndpoint?: string;
|
|
785
|
+
/**
|
|
786
|
+
* EIP-712 signer injected by the hosting app. REQUIRED for `placeOrder` /
|
|
787
|
+
* `cancelOrder`; read-only methods work without it.
|
|
788
|
+
*/
|
|
789
|
+
signTypedData?: SignTypedDataFn;
|
|
790
|
+
/**
|
|
791
|
+
* Per-request timeout in milliseconds. Defaults to 30 000 ms.
|
|
792
|
+
*/
|
|
793
|
+
timeout?: number;
|
|
794
|
+
/**
|
|
795
|
+
* Optional provider override sent as `?provider=...`. Defaults to the server
|
|
796
|
+
* configuration (currently `hyperliquid`). Only set this when the gateway
|
|
797
|
+
* has multiple providers configured and you want a non-default one.
|
|
798
|
+
*/
|
|
799
|
+
provider?: string;
|
|
800
|
+
/**
|
|
801
|
+
* Optional extra request headers (auth tokens, tracing, etc.) merged into
|
|
802
|
+
* every fetch.
|
|
803
|
+
*/
|
|
804
|
+
headers?: Record<string, string>;
|
|
805
|
+
}
|
|
806
|
+
/** Thrown when perpetuals-server returns a non-2xx HTTP status. */
|
|
807
|
+
declare class LiberFiApiError extends Error {
|
|
808
|
+
readonly statusCode: number;
|
|
809
|
+
readonly responseBody: string;
|
|
810
|
+
constructor(message: string, statusCode: number, responseBody: string);
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* REST + injected-signer implementation of {@link IPerpetualsClient} that talks
|
|
814
|
+
* to a deployed `perpetuals-server` instead of Hyperliquid directly.
|
|
815
|
+
*
|
|
816
|
+
* - Read-only methods are plain `fetch GET`s.
|
|
817
|
+
* - `placeOrder` / `cancelOrder` follow the two-phase flow:
|
|
818
|
+
* 1. POST `…/prepare` → server builds upstream action + EIP-712 typed data.
|
|
819
|
+
* 2. Host wallet signs `typedData` via the injected `signTypedData`.
|
|
820
|
+
* 3. POST `…/submit` with the original `action`, the user signature, and
|
|
821
|
+
* the server-issued `nonce`. The server forwards to upstream and
|
|
822
|
+
* normalises the response.
|
|
823
|
+
* - WebSocket subscriptions are NOT proxied through perpetuals-server today.
|
|
824
|
+
* They reuse the existing {@link WebSocketManager} pointed at the upstream
|
|
825
|
+
* exchange (`wsEndpoint`, default Hyperliquid mainnet).
|
|
826
|
+
*/
|
|
827
|
+
declare class LiberFiPerpetualsClient implements IPerpetualsClient {
|
|
828
|
+
private readonly baseUrl;
|
|
829
|
+
private readonly wsEndpoint;
|
|
830
|
+
private readonly timeout;
|
|
831
|
+
private readonly provider?;
|
|
832
|
+
private readonly headers?;
|
|
833
|
+
private readonly signTypedData?;
|
|
834
|
+
private wsManager;
|
|
835
|
+
constructor(config: LiberFiPerpetualsClientConfig);
|
|
836
|
+
/** Build a fully-qualified URL with optional query string. */
|
|
837
|
+
private url;
|
|
838
|
+
/** Common fetch wrapper with timeout + structured error mapping. */
|
|
839
|
+
private request;
|
|
840
|
+
getSupportedCoins(): Promise<string[]>;
|
|
841
|
+
getMarket(symbol: string): Promise<MarketData | null>;
|
|
842
|
+
getMarkets(symbols?: string[]): Promise<MarketData[]>;
|
|
843
|
+
getKlines(symbol: string, interval: KlineInterval, limit?: number): Promise<Kline[]>;
|
|
844
|
+
getOrderBook(symbol: string, maxLevel?: number): Promise<OrderBook>;
|
|
845
|
+
getRecentTrades(symbol: string, limit?: number): Promise<Trade[]>;
|
|
846
|
+
getPositions(params?: GetPositionsParams): Promise<GetPositionsResult>;
|
|
847
|
+
getOpenOrders(params?: GetOpenOrdersParams): Promise<GetOpenOrdersResult>;
|
|
848
|
+
getTrades(params?: GetTradesParams): Promise<GetTradesResult>;
|
|
849
|
+
placeOrder(params: PlaceOrderParams): Promise<PlaceOrderResult>;
|
|
850
|
+
cancelOrder(params: CancelOrderParams): Promise<CancelOrderResult>;
|
|
851
|
+
connectWebSocket(): Promise<void>;
|
|
852
|
+
disconnectWebSocket(): void;
|
|
853
|
+
subscribeMarketData(type: "ticker" | "trades" | "orderBook", symbol: string, callback: (data: unknown) => void): string;
|
|
854
|
+
subscribeCandles(symbol: string, interval: KlineInterval, callback: (candle: Kline) => void): string;
|
|
855
|
+
subscribeUserData(type: "orders" | "positions" | "fills", userAddress: string, callback: (data: unknown) => void): string;
|
|
856
|
+
unsubscribe(subscriptionId: string): void;
|
|
857
|
+
private requireWS;
|
|
858
|
+
}
|
|
859
|
+
|
|
758
860
|
/**
|
|
759
861
|
* Perpetuals context value type
|
|
760
862
|
*
|
|
@@ -1195,4 +1297,4 @@ declare function TradeHistoryUI({ trades, timeRange, onTimeRangeChange, currentP
|
|
|
1195
1297
|
declare function TradeHistorySkeleton(): react_jsx_runtime.JSX.Element;
|
|
1196
1298
|
declare function TradeHistoryEmpty(): react_jsx_runtime.JSX.Element;
|
|
1197
1299
|
|
|
1198
|
-
export { type Account, type CancelOrderParams, type CancelOrderResult, type Coin, CoinInfoNotFoundUI, CoinInfoSkeletonsUI, CoinInfoUI, type CoinInfoUIProps, CoinInfoWidget, type CoinInfoWidgetProps, type GetOpenOrdersParams, type GetOpenOrdersResult, type GetPositionsParams, type GetPositionsResult, type GetTradesParams, type GetTradesResult, HyperliquidApiError, type HyperliquidClientConfig, type HyperliquidEnvironment, HyperliquidPerpetualsClient, type IPerpetualsClient, type Kline, type KlineInterval, type MarketData, type MarketDataType, OpenOrdersEmpty, OpenOrdersSkeleton, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBook, type OrderBookLevel, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, type OrderSide, type OrderStatus, type OrderType, PerpetualsContext, type PerpetualsContextValue, PerpetualsProvider, type PerpetualsProviderProps, type PlaceOrderFormData, PlaceOrderFormUI, type PlaceOrderFormUIProps, PlaceOrderFormWidget, type PlaceOrderFormWidgetProps, type PlaceOrderParams, type PlaceOrderResult, type Position, PositionsEmpty, PositionsSkeleton, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, type PriceLevel, SearchCoinsUI, type SearchCoinsUIProps, SearchCoinsWidget, type SearchCoinsWidgetProps, type Symbol, type TimeRange, type Trade, type TradeHistory, TradeHistoryEmpty, TradeHistorySkeleton, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeSide, TradesUI, type TradesUIProps, TradesWidget, type TradesWidgetProps, type TradingProvider, type UseCancelOrderMutationParams, type UseCandlesSubscriptionParams, type UseCandlesSubscriptionResult, type UseCoinInfoReturnType, type UseCreateOrderMutationParams, type UseKlinesQueryParams, type UseMarketDataSubscriptionParams, type UseMarketDataSubscriptionResult, type UseMarketQueryParams, type UseMarketsQueryParams, type UseOpenOrdersScriptParams, type UseOpenOrdersScriptResult, type UseOrderBookQueryParams, type UseOrderBookScriptParams, type UseOrderBookScriptResult, type UseOrdersQueryParams, type UsePlaceOrderFormScriptParams, type UsePlaceOrderFormScriptResult, type UsePositionsQueryParams, type UsePositionsScriptParams, type UsePositionsScriptResult, type UseRecentTradesQueryParams, type UseSearchCoinsScriptParams, type UseSearchCoinsScriptResult, type UseTradeHistoryScriptParams, type UseTradeHistoryScriptResult, type UseTradesQueryParams, type UseTradesScriptParams, type UseTradesScriptResult, type UseUserDataSubscriptionParams, type UseUserDataSubscriptionResult, type UserDataType, cancelOrder, coinsQueryKey, createOrder, fetchCoins, fetchKlines, fetchMarket, fetchMarkets, fetchOrderBook, fetchOrders, fetchPositions, fetchRecentTrades, fetchTrades, klinesQueryKey, marketQueryKey, marketsQueryKey, orderBookQueryKey, ordersQueryKey, positionsQueryKey, recentTradesQueryKey, tradesQueryKey, useCancelOrderMutation, useCandlesSubscription, useCoinInfo, useCoinsQuery, useCreateOrderMutation, useKlinesQuery, useMarketDataSubscription, useMarketQuery, useMarketsQuery, useOpenOrdersScript, useOrderBookQuery, useOrderBookScript, useOrdersQuery, usePerpetualsClient, usePlaceOrderFormScript, usePositionsQuery, usePositionsScript, useRecentTradesQuery, useSearchCoinsScript, useTradeHistoryScript, useTradesQuery, useTradesScript, useUserDataSubscription, _default as version };
|
|
1300
|
+
export { type Account, type CancelOrderParams, type CancelOrderResult, type Coin, CoinInfoNotFoundUI, CoinInfoSkeletonsUI, CoinInfoUI, type CoinInfoUIProps, CoinInfoWidget, type CoinInfoWidgetProps, type GetOpenOrdersParams, type GetOpenOrdersResult, type GetPositionsParams, type GetPositionsResult, type GetTradesParams, type GetTradesResult, HyperliquidApiError, type HyperliquidClientConfig, type HyperliquidEnvironment, HyperliquidPerpetualsClient, type IPerpetualsClient, type Kline, type KlineInterval, LiberFiApiError, LiberFiPerpetualsClient, type LiberFiPerpetualsClientConfig, type MarketData, type MarketDataType, OpenOrdersEmpty, OpenOrdersSkeleton, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBook, type OrderBookLevel, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, type OrderSide, type OrderStatus, type OrderType, PerpetualsContext, type PerpetualsContextValue, PerpetualsProvider, type PerpetualsProviderProps, type PlaceOrderFormData, PlaceOrderFormUI, type PlaceOrderFormUIProps, PlaceOrderFormWidget, type PlaceOrderFormWidgetProps, type PlaceOrderParams, type PlaceOrderResult, type Position, PositionsEmpty, PositionsSkeleton, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, type PriceLevel, SearchCoinsUI, type SearchCoinsUIProps, SearchCoinsWidget, type SearchCoinsWidgetProps, type SignTypedDataFn, type Symbol, type TimeRange, type Trade, type TradeHistory, TradeHistoryEmpty, TradeHistorySkeleton, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeSide, TradesUI, type TradesUIProps, TradesWidget, type TradesWidgetProps, type TradingProvider, type UseCancelOrderMutationParams, type UseCandlesSubscriptionParams, type UseCandlesSubscriptionResult, type UseCoinInfoReturnType, type UseCreateOrderMutationParams, type UseKlinesQueryParams, type UseMarketDataSubscriptionParams, type UseMarketDataSubscriptionResult, type UseMarketQueryParams, type UseMarketsQueryParams, type UseOpenOrdersScriptParams, type UseOpenOrdersScriptResult, type UseOrderBookQueryParams, type UseOrderBookScriptParams, type UseOrderBookScriptResult, type UseOrdersQueryParams, type UsePlaceOrderFormScriptParams, type UsePlaceOrderFormScriptResult, type UsePositionsQueryParams, type UsePositionsScriptParams, type UsePositionsScriptResult, type UseRecentTradesQueryParams, type UseSearchCoinsScriptParams, type UseSearchCoinsScriptResult, type UseTradeHistoryScriptParams, type UseTradeHistoryScriptResult, type UseTradesQueryParams, type UseTradesScriptParams, type UseTradesScriptResult, type UseUserDataSubscriptionParams, type UseUserDataSubscriptionResult, type UserDataType, cancelOrder, coinsQueryKey, createOrder, fetchCoins, fetchKlines, fetchMarket, fetchMarkets, fetchOrderBook, fetchOrders, fetchPositions, fetchRecentTrades, fetchTrades, klinesQueryKey, marketQueryKey, marketsQueryKey, orderBookQueryKey, ordersQueryKey, positionsQueryKey, recentTradesQueryKey, tradesQueryKey, useCancelOrderMutation, useCandlesSubscription, useCoinInfo, useCoinsQuery, useCreateOrderMutation, useKlinesQuery, useMarketDataSubscription, useMarketQuery, useMarketsQuery, useOpenOrdersScript, useOrderBookQuery, useOrderBookScript, useOrdersQuery, usePerpetualsClient, usePlaceOrderFormScript, usePositionsQuery, usePositionsScript, useRecentTradesQuery, useSearchCoinsScript, useTradeHistoryScript, useTradesQuery, useTradesScript, useUserDataSubscription, _default as version };
|