@liberfi.io/react-predict 0.3.62 → 0.3.64
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{server-BW_QhQos.d.mts → server-Dk8PqvnI.d.mts} +21 -2
- package/dist/{server-BW_QhQos.d.ts → server-Dk8PqvnI.d.ts} +21 -2
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +2 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -919,6 +919,12 @@ interface DFlowSubmitResponse {
|
|
|
919
919
|
}
|
|
920
920
|
/** Order type for Polymarket CLOB. */
|
|
921
921
|
type PolymarketOrderType = "GTC" | "FOK" | "GTD" | "FAK";
|
|
922
|
+
/**
|
|
923
|
+
* Known Polymarket minimum tick sizes. Must stay in sync with the
|
|
924
|
+
* `ROUNDING_CONFIG` of `@polymarket/clob-client-v2` — sports markets use the
|
|
925
|
+
* finer `0.005` / `0.0025` ticks introduced alongside CLOB V2.
|
|
926
|
+
*/
|
|
927
|
+
type PolymarketTickSize = "0.1" | "0.01" | "0.005" | "0.0025" | "0.001" | "0.0001";
|
|
922
928
|
/**
|
|
923
929
|
* Input for creating a Polymarket order (limit or market).
|
|
924
930
|
* @see https://docs.polymarket.com/trading/orders/create
|
|
@@ -943,7 +949,7 @@ interface CreateOrderInput {
|
|
|
943
949
|
side: OrderSide;
|
|
944
950
|
orderType?: PolymarketOrderType;
|
|
945
951
|
/** Minimum tick size for this market (from Polymarket gamma API). */
|
|
946
|
-
tickSize:
|
|
952
|
+
tickSize: PolymarketTickSize;
|
|
947
953
|
/** Whether this is a neg-risk market (uses different exchange contract). */
|
|
948
954
|
negRisk?: boolean;
|
|
949
955
|
/** Expiration timestamp (Unix seconds). Required for GTD orders. */
|
|
@@ -1964,6 +1970,19 @@ declare const SIDE: {
|
|
|
1964
1970
|
readonly BUY: 0;
|
|
1965
1971
|
readonly SELL: 1;
|
|
1966
1972
|
};
|
|
1973
|
+
/**
|
|
1974
|
+
* Normalise a raw `minimum_tick_size` value (number or string, e.g. from the
|
|
1975
|
+
* `/tick-size` endpoint) to one of the tick sizes known to the CLOB clients'
|
|
1976
|
+
* rounding configs.
|
|
1977
|
+
*
|
|
1978
|
+
* The official `@polymarket/clob-client-v2` OrderBuilder indexes its
|
|
1979
|
+
* `ROUNDING_CONFIG` by the tick-size string without any fallback — an unknown
|
|
1980
|
+
* key crashes order building with "Cannot read properties of undefined
|
|
1981
|
+
* (reading 'price')". Funnelling every caller through this helper guarantees
|
|
1982
|
+
* we only ever hand the builder a supported tick size (unknown values fall
|
|
1983
|
+
* back to the CLOB-default "0.01").
|
|
1984
|
+
*/
|
|
1985
|
+
declare function normalizePolymarketTickSize(raw: number | string | null | undefined): PolymarketTickSize;
|
|
1967
1986
|
interface BuildOrderMessageInput extends CreateOrderInput {
|
|
1968
1987
|
/** Signer / owner address. */
|
|
1969
1988
|
signerAddress: string;
|
|
@@ -2084,4 +2103,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
2084
2103
|
*/
|
|
2085
2104
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2086
2105
|
|
|
2087
|
-
export { type PolymarketWithdrawPrepareResponse as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesParams as D, type EventStats as E, type ListTradesMultiParams as F, type DFlowQuoteRequest as G, type DFlowQuoteResponse as H, type DFlowSubmitResponse as I, type DFlowSubmitRequest as J, type DFlowKYCStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketSetupStatus as N, type OrderbookOutcome as O, PredictClient as P, type PolymarketDepositWalletDeployResponse as Q, type WithdrawBuildRequest as R, type SimilarEventsParams as S, type WithdrawSubmitResponse as T, type WithdrawSubmitRequest as U, type WithdrawStatusResponse as V, type WithdrawBuildResponse as W, type PolymarketDepositAddresses as X, type PolymarketSupportedAsset as Y, type PolymarketWithdrawResponse as Z, type PolymarketWithdrawRequest as _, PredictWsClient as a, type
|
|
2106
|
+
export { type PolymarketWithdrawPrepareResponse as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesParams as D, type EventStats as E, type ListTradesMultiParams as F, type DFlowQuoteRequest as G, type DFlowQuoteResponse as H, type DFlowSubmitResponse as I, type DFlowSubmitRequest as J, type DFlowKYCStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketSetupStatus as N, type OrderbookOutcome as O, PredictClient as P, type PolymarketDepositWalletDeployResponse as Q, type WithdrawBuildRequest as R, type SimilarEventsParams as S, type WithdrawSubmitResponse as T, type WithdrawSubmitRequest as U, type WithdrawStatusResponse as V, type WithdrawBuildResponse as W, type PolymarketDepositAddresses as X, type PolymarketSupportedAsset as Y, type PolymarketWithdrawResponse as Z, type PolymarketWithdrawRequest as _, PredictWsClient as a, type MatchConfidenceTier as a$, type PolymarketWithdrawPrepareRequest as a0, type PolymarketWithdrawQuoteResponse as a1, type PolymarketWithdrawQuoteRequest as a2, type PolymarketWithdrawRelayBuildResponse as a3, type PolymarketWithdrawRelayBuildRequest as a4, type PolymarketWithdrawRelaySubmitResponse as a5, type PolymarketWithdrawRelaySubmitRequest as a6, type PolymarketWithdrawBridgeStatusResponse as a7, type PolymarketRedeemResponse as a8, type PolymarketTypedData as a9, type MarketSummary as aA, type PredictCommentProfile as aB, type PricePoint as aC, type PredictPosition as aD, type PositionValue as aE, type PositionValueError as aF, type OrderStatus as aG, type OrderSide as aH, type DFlowOrderContext as aI, type PolymarketOrderType as aJ, type PolymarketTickSize as aK, type PolymarketWalletKind as aL, type PolymarketDepositWalletDeployRequest as aM, type DepositBuildRequest as aN, type DepositBuildResponse as aO, type DepositSubmitRequest as aP, type DepositSubmitResponse as aQ, type DepositStatusResponse as aR, type UnsignedTx as aS, type PolymarketBridgeToken as aT, type PolymarketSupportedAssetsResponse as aU, type PolymarketTypedDataArg as aV, type MatchStatus as aW, type MatchGroupEntry as aX, type MatchGroupMarket as aY, type MatchSortField as aZ, type MatchesStats as a_, type TickSizeResponse as aa, type FeeRateResponse as ab, type RebateConfig as ac, type WsConnectionStatus as ad, type WsDataMessage as ae, type WsPriceEvent as af, type WsOrderbookEvent as ag, type WsTradeEvent as ah, type CreateOrderInput as ai, createPredictClient as aj, type PredictClientOptions as ak, createPredictWsClient as al, type PredictWsClientConfig as am, type ProviderMeta as an, type PredictTag as ao, type SettlementSource as ap, type MarketStatus as aq, type MarketResult as ar, type MarketOutcome as as, type OrderbookLevel as at, type OrderbookBatchItem as au, type OrderbookBatchResult as av, type OrderbooksBatchRequest as aw, type OrderbooksBatchResponse as ax, type TradeType as ay, type EventSummary as az, type PredictPage as b, type SignalTag as b0, type MatchLeg as b1, type MatchMarketFlat as b2, type WsChannel as b3, type WsChannelEvent as b4, type WsClientMessage as b5, type WsSubscribeMessage as b6, type WsPingMessage as b7, type WsServerMessage as b8, type WsPongMessage as b9, derivePolymarketApiKey as bA, type HttpMethod as bB, type PolymarketL2HeadersInput as bC, type PolymarketL2Headers as bD, type BuildClobAuthMessageInput as bE, CTF_EXCHANGE_ADDRESS as bF, NEG_RISK_CTF_EXCHANGE_ADDRESS as bG, USDC_ADDRESS as bH, POLYGON_CHAIN_ID as bI, buildCtfExchangeDomain as bJ, CTF_ORDER_TYPES as bK, ORDER_TYPE as bL, SIDE as bM, buildOrderMessage as bN, buildSignedOrder as bO, buildClobPayload as bP, getPolymarketSharesPrecision as bQ, normalizePolymarketTickSize as bR, type ClobOrderPayload as bS, type BuildOrderMessageInput as bT, type OrderMessage as bU, type SignedOrder as bV, DEFAULT_PAGE_SIZE as bW, type WsSubscribedMessage as ba, type WsErrorCode as bb, type WsErrorMessage as bc, type PolymarketRedeemPrepareInput as bd, type PolymarketRedeemPrepareResponse as be, type PolymarketRedeemInput as bf, eventQueryKey as bg, fetchEvent as bh, resolveTagSlug as bi, resolveEventsParams as bj, infiniteEventsQueryKey as bk, fetchEventsPage as bl, type ResolveEventsParamsInput as bm, type TagSlugSelection as bn, marketQueryKey as bo, fetchMarket as bp, matchesQueryKey as bq, matchQueryKey as br, fetchMatchesPage as bs, matchMarketsQueryKey as bt, fetchMatchMarketsPage as bu, CLOB_AUTH_DOMAIN as bv, CLOB_AUTH_TYPES as bw, buildClobAuthMessage as bx, hmacSha256Base64 as by, buildPolymarketL2Headers as bz, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type Orderbook as h, type ListMarketTradesParams as i, type PredictTrade as j, type PriceHistoryRange as k, type PriceHistoryResponse as l, type ListCandlesticksParams as m, type ListCommentsParams as n, type PredictComment as o, type PositionsResponse as p, type PositionValueResponse as q, type ListOrdersParams as r, type PredictOrder as s, type ListOrdersMultiParams as t, type PredictOrdersResponse as u, type CancelOrderResult as v, type MatchGroupPage as w, type MatchGroup as x, type MatchMarketParams as y, type MatchMarketPage as z };
|
|
@@ -919,6 +919,12 @@ interface DFlowSubmitResponse {
|
|
|
919
919
|
}
|
|
920
920
|
/** Order type for Polymarket CLOB. */
|
|
921
921
|
type PolymarketOrderType = "GTC" | "FOK" | "GTD" | "FAK";
|
|
922
|
+
/**
|
|
923
|
+
* Known Polymarket minimum tick sizes. Must stay in sync with the
|
|
924
|
+
* `ROUNDING_CONFIG` of `@polymarket/clob-client-v2` — sports markets use the
|
|
925
|
+
* finer `0.005` / `0.0025` ticks introduced alongside CLOB V2.
|
|
926
|
+
*/
|
|
927
|
+
type PolymarketTickSize = "0.1" | "0.01" | "0.005" | "0.0025" | "0.001" | "0.0001";
|
|
922
928
|
/**
|
|
923
929
|
* Input for creating a Polymarket order (limit or market).
|
|
924
930
|
* @see https://docs.polymarket.com/trading/orders/create
|
|
@@ -943,7 +949,7 @@ interface CreateOrderInput {
|
|
|
943
949
|
side: OrderSide;
|
|
944
950
|
orderType?: PolymarketOrderType;
|
|
945
951
|
/** Minimum tick size for this market (from Polymarket gamma API). */
|
|
946
|
-
tickSize:
|
|
952
|
+
tickSize: PolymarketTickSize;
|
|
947
953
|
/** Whether this is a neg-risk market (uses different exchange contract). */
|
|
948
954
|
negRisk?: boolean;
|
|
949
955
|
/** Expiration timestamp (Unix seconds). Required for GTD orders. */
|
|
@@ -1964,6 +1970,19 @@ declare const SIDE: {
|
|
|
1964
1970
|
readonly BUY: 0;
|
|
1965
1971
|
readonly SELL: 1;
|
|
1966
1972
|
};
|
|
1973
|
+
/**
|
|
1974
|
+
* Normalise a raw `minimum_tick_size` value (number or string, e.g. from the
|
|
1975
|
+
* `/tick-size` endpoint) to one of the tick sizes known to the CLOB clients'
|
|
1976
|
+
* rounding configs.
|
|
1977
|
+
*
|
|
1978
|
+
* The official `@polymarket/clob-client-v2` OrderBuilder indexes its
|
|
1979
|
+
* `ROUNDING_CONFIG` by the tick-size string without any fallback — an unknown
|
|
1980
|
+
* key crashes order building with "Cannot read properties of undefined
|
|
1981
|
+
* (reading 'price')". Funnelling every caller through this helper guarantees
|
|
1982
|
+
* we only ever hand the builder a supported tick size (unknown values fall
|
|
1983
|
+
* back to the CLOB-default "0.01").
|
|
1984
|
+
*/
|
|
1985
|
+
declare function normalizePolymarketTickSize(raw: number | string | null | undefined): PolymarketTickSize;
|
|
1967
1986
|
interface BuildOrderMessageInput extends CreateOrderInput {
|
|
1968
1987
|
/** Signer / owner address. */
|
|
1969
1988
|
signerAddress: string;
|
|
@@ -2084,4 +2103,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
2084
2103
|
*/
|
|
2085
2104
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2086
2105
|
|
|
2087
|
-
export { type PolymarketWithdrawPrepareResponse as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesParams as D, type EventStats as E, type ListTradesMultiParams as F, type DFlowQuoteRequest as G, type DFlowQuoteResponse as H, type DFlowSubmitResponse as I, type DFlowSubmitRequest as J, type DFlowKYCStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketSetupStatus as N, type OrderbookOutcome as O, PredictClient as P, type PolymarketDepositWalletDeployResponse as Q, type WithdrawBuildRequest as R, type SimilarEventsParams as S, type WithdrawSubmitResponse as T, type WithdrawSubmitRequest as U, type WithdrawStatusResponse as V, type WithdrawBuildResponse as W, type PolymarketDepositAddresses as X, type PolymarketSupportedAsset as Y, type PolymarketWithdrawResponse as Z, type PolymarketWithdrawRequest as _, PredictWsClient as a, type
|
|
2106
|
+
export { type PolymarketWithdrawPrepareResponse as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesParams as D, type EventStats as E, type ListTradesMultiParams as F, type DFlowQuoteRequest as G, type DFlowQuoteResponse as H, type DFlowSubmitResponse as I, type DFlowSubmitRequest as J, type DFlowKYCStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketSetupStatus as N, type OrderbookOutcome as O, PredictClient as P, type PolymarketDepositWalletDeployResponse as Q, type WithdrawBuildRequest as R, type SimilarEventsParams as S, type WithdrawSubmitResponse as T, type WithdrawSubmitRequest as U, type WithdrawStatusResponse as V, type WithdrawBuildResponse as W, type PolymarketDepositAddresses as X, type PolymarketSupportedAsset as Y, type PolymarketWithdrawResponse as Z, type PolymarketWithdrawRequest as _, PredictWsClient as a, type MatchConfidenceTier as a$, type PolymarketWithdrawPrepareRequest as a0, type PolymarketWithdrawQuoteResponse as a1, type PolymarketWithdrawQuoteRequest as a2, type PolymarketWithdrawRelayBuildResponse as a3, type PolymarketWithdrawRelayBuildRequest as a4, type PolymarketWithdrawRelaySubmitResponse as a5, type PolymarketWithdrawRelaySubmitRequest as a6, type PolymarketWithdrawBridgeStatusResponse as a7, type PolymarketRedeemResponse as a8, type PolymarketTypedData as a9, type MarketSummary as aA, type PredictCommentProfile as aB, type PricePoint as aC, type PredictPosition as aD, type PositionValue as aE, type PositionValueError as aF, type OrderStatus as aG, type OrderSide as aH, type DFlowOrderContext as aI, type PolymarketOrderType as aJ, type PolymarketTickSize as aK, type PolymarketWalletKind as aL, type PolymarketDepositWalletDeployRequest as aM, type DepositBuildRequest as aN, type DepositBuildResponse as aO, type DepositSubmitRequest as aP, type DepositSubmitResponse as aQ, type DepositStatusResponse as aR, type UnsignedTx as aS, type PolymarketBridgeToken as aT, type PolymarketSupportedAssetsResponse as aU, type PolymarketTypedDataArg as aV, type MatchStatus as aW, type MatchGroupEntry as aX, type MatchGroupMarket as aY, type MatchSortField as aZ, type MatchesStats as a_, type TickSizeResponse as aa, type FeeRateResponse as ab, type RebateConfig as ac, type WsConnectionStatus as ad, type WsDataMessage as ae, type WsPriceEvent as af, type WsOrderbookEvent as ag, type WsTradeEvent as ah, type CreateOrderInput as ai, createPredictClient as aj, type PredictClientOptions as ak, createPredictWsClient as al, type PredictWsClientConfig as am, type ProviderMeta as an, type PredictTag as ao, type SettlementSource as ap, type MarketStatus as aq, type MarketResult as ar, type MarketOutcome as as, type OrderbookLevel as at, type OrderbookBatchItem as au, type OrderbookBatchResult as av, type OrderbooksBatchRequest as aw, type OrderbooksBatchResponse as ax, type TradeType as ay, type EventSummary as az, type PredictPage as b, type SignalTag as b0, type MatchLeg as b1, type MatchMarketFlat as b2, type WsChannel as b3, type WsChannelEvent as b4, type WsClientMessage as b5, type WsSubscribeMessage as b6, type WsPingMessage as b7, type WsServerMessage as b8, type WsPongMessage as b9, derivePolymarketApiKey as bA, type HttpMethod as bB, type PolymarketL2HeadersInput as bC, type PolymarketL2Headers as bD, type BuildClobAuthMessageInput as bE, CTF_EXCHANGE_ADDRESS as bF, NEG_RISK_CTF_EXCHANGE_ADDRESS as bG, USDC_ADDRESS as bH, POLYGON_CHAIN_ID as bI, buildCtfExchangeDomain as bJ, CTF_ORDER_TYPES as bK, ORDER_TYPE as bL, SIDE as bM, buildOrderMessage as bN, buildSignedOrder as bO, buildClobPayload as bP, getPolymarketSharesPrecision as bQ, normalizePolymarketTickSize as bR, type ClobOrderPayload as bS, type BuildOrderMessageInput as bT, type OrderMessage as bU, type SignedOrder as bV, DEFAULT_PAGE_SIZE as bW, type WsSubscribedMessage as ba, type WsErrorCode as bb, type WsErrorMessage as bc, type PolymarketRedeemPrepareInput as bd, type PolymarketRedeemPrepareResponse as be, type PolymarketRedeemInput as bf, eventQueryKey as bg, fetchEvent as bh, resolveTagSlug as bi, resolveEventsParams as bj, infiniteEventsQueryKey as bk, fetchEventsPage as bl, type ResolveEventsParamsInput as bm, type TagSlugSelection as bn, marketQueryKey as bo, fetchMarket as bp, matchesQueryKey as bq, matchQueryKey as br, fetchMatchesPage as bs, matchMarketsQueryKey as bt, fetchMatchMarketsPage as bu, CLOB_AUTH_DOMAIN as bv, CLOB_AUTH_TYPES as bw, buildClobAuthMessage as bx, hmacSha256Base64 as by, buildPolymarketL2Headers as bz, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type Orderbook as h, type ListMarketTradesParams as i, type PredictTrade as j, type PriceHistoryRange as k, type PriceHistoryResponse as l, type ListCandlesticksParams as m, type ListCommentsParams as n, type PredictComment as o, type PositionsResponse as p, type PositionValueResponse as q, type ListOrdersParams as r, type PredictOrder as s, type ListOrdersMultiParams as t, type PredictOrdersResponse as u, type CancelOrderResult as v, type MatchGroupPage as w, type MatchGroup as x, type MatchMarketParams as y, type MatchMarketPage as z };
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse,
|
|
1
|
+
export { B as BalanceResponse, bE as BuildClobAuthMessageInput, bT as BuildOrderMessageInput, bv as CLOB_AUTH_DOMAIN, bw as CLOB_AUTH_TYPES, bF as CTF_EXCHANGE_ADDRESS, bK as CTF_ORDER_TYPES, v as CancelOrderResult, C as Candlestick, bS as ClobOrderPayload, ai as CreateOrderInput, bW as DEFAULT_PAGE_SIZE, aI as DFlowOrderContext, G as DFlowQuoteRequest, H as DFlowQuoteResponse, J as DFlowSubmitRequest, I as DFlowSubmitResponse, aN as DepositBuildRequest, aO as DepositBuildResponse, aR as DepositStatusResponse, aP as DepositSubmitRequest, aQ as DepositSubmitResponse, f as EventSortField, e as EventStatus, az as EventSummary, bB as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, r as ListOrdersParams, D as ListTradesParams, as as MarketOutcome, ar as MarketResult, aq as MarketStatus, aA as MarketSummary, a$ as MatchConfidenceTier, x as MatchGroup, aX as MatchGroupEntry, aY as MatchGroupMarket, w as MatchGroupPage, b1 as MatchLeg, b2 as MatchMarketFlat, z as MatchMarketPage, y as MatchMarketParams, aZ as MatchSortField, aW as MatchStatus, M as MatchesParams, a_ as MatchesStats, bG as NEG_RISK_CTF_EXCHANGE_ADDRESS, bL as ORDER_TYPE, bU as OrderMessage, aH as OrderSide, aG as OrderStatus, h as Orderbook, at as OrderbookLevel, bI as POLYGON_CHAIN_ID, bD as PolymarketL2Headers, bC as PolymarketL2HeadersInput, aJ as PolymarketOrderType, aE as PositionValue, aF as PositionValueError, q as PositionValueResponse, p as PositionsResponse, P as PredictClient, ak as PredictClientOptions, c as PredictEvent, g as PredictMarket, s as PredictOrder, b as PredictPage, aD as PredictPosition, ao as PredictTag, j as PredictTrade, a as PredictWsClient, am as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aC as PricePoint, an as ProviderMeta, d as ProviderSource, bm as ResolveEventsParamsInput, bM as SIDE, ap as SettlementSource, b0 as SignalTag, bV as SignedOrder, S as SimilarEventsParams, bn as TagSlugSelection, ay as TradeType, bH as USDC_ADDRESS, aS as UnsignedTx, b3 as WsChannel, b4 as WsChannelEvent, b5 as WsClientMessage, ad as WsConnectionStatus, ae as WsDataMessage, bb as WsErrorCode, bc as WsErrorMessage, ag as WsOrderbookEvent, b7 as WsPingMessage, b9 as WsPongMessage, af as WsPriceEvent, b8 as WsServerMessage, b6 as WsSubscribeMessage, ba as WsSubscribedMessage, ah as WsTradeEvent, bx as buildClobAuthMessage, bP as buildClobPayload, bJ as buildCtfExchangeDomain, bN as buildOrderMessage, bz as buildPolymarketL2Headers, bO as buildSignedOrder, aj as createPredictClient, al as createPredictWsClient, bA as derivePolymarketApiKey, bg as eventQueryKey, bh as fetchEvent, bl as fetchEventsPage, bp as fetchMarket, bu as fetchMatchMarketsPage, bs as fetchMatchesPage, by as hmacSha256Base64, bk as infiniteEventsQueryKey, bo as marketQueryKey, bt as matchMarketsQueryKey, br as matchQueryKey, bq as matchesQueryKey, bj as resolveEventsParams, bi as resolveTagSlug } from './server-Dk8PqvnI.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse,
|
|
1
|
+
export { B as BalanceResponse, bE as BuildClobAuthMessageInput, bT as BuildOrderMessageInput, bv as CLOB_AUTH_DOMAIN, bw as CLOB_AUTH_TYPES, bF as CTF_EXCHANGE_ADDRESS, bK as CTF_ORDER_TYPES, v as CancelOrderResult, C as Candlestick, bS as ClobOrderPayload, ai as CreateOrderInput, bW as DEFAULT_PAGE_SIZE, aI as DFlowOrderContext, G as DFlowQuoteRequest, H as DFlowQuoteResponse, J as DFlowSubmitRequest, I as DFlowSubmitResponse, aN as DepositBuildRequest, aO as DepositBuildResponse, aR as DepositStatusResponse, aP as DepositSubmitRequest, aQ as DepositSubmitResponse, f as EventSortField, e as EventStatus, az as EventSummary, bB as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, r as ListOrdersParams, D as ListTradesParams, as as MarketOutcome, ar as MarketResult, aq as MarketStatus, aA as MarketSummary, a$ as MatchConfidenceTier, x as MatchGroup, aX as MatchGroupEntry, aY as MatchGroupMarket, w as MatchGroupPage, b1 as MatchLeg, b2 as MatchMarketFlat, z as MatchMarketPage, y as MatchMarketParams, aZ as MatchSortField, aW as MatchStatus, M as MatchesParams, a_ as MatchesStats, bG as NEG_RISK_CTF_EXCHANGE_ADDRESS, bL as ORDER_TYPE, bU as OrderMessage, aH as OrderSide, aG as OrderStatus, h as Orderbook, at as OrderbookLevel, bI as POLYGON_CHAIN_ID, bD as PolymarketL2Headers, bC as PolymarketL2HeadersInput, aJ as PolymarketOrderType, aE as PositionValue, aF as PositionValueError, q as PositionValueResponse, p as PositionsResponse, P as PredictClient, ak as PredictClientOptions, c as PredictEvent, g as PredictMarket, s as PredictOrder, b as PredictPage, aD as PredictPosition, ao as PredictTag, j as PredictTrade, a as PredictWsClient, am as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aC as PricePoint, an as ProviderMeta, d as ProviderSource, bm as ResolveEventsParamsInput, bM as SIDE, ap as SettlementSource, b0 as SignalTag, bV as SignedOrder, S as SimilarEventsParams, bn as TagSlugSelection, ay as TradeType, bH as USDC_ADDRESS, aS as UnsignedTx, b3 as WsChannel, b4 as WsChannelEvent, b5 as WsClientMessage, ad as WsConnectionStatus, ae as WsDataMessage, bb as WsErrorCode, bc as WsErrorMessage, ag as WsOrderbookEvent, b7 as WsPingMessage, b9 as WsPongMessage, af as WsPriceEvent, b8 as WsServerMessage, b6 as WsSubscribeMessage, ba as WsSubscribedMessage, ah as WsTradeEvent, bx as buildClobAuthMessage, bP as buildClobPayload, bJ as buildCtfExchangeDomain, bN as buildOrderMessage, bz as buildPolymarketL2Headers, bO as buildSignedOrder, aj as createPredictClient, al as createPredictWsClient, bA as derivePolymarketApiKey, bg as eventQueryKey, bh as fetchEvent, bl as fetchEventsPage, bp as fetchMarket, bu as fetchMatchMarketsPage, bs as fetchMatchesPage, by as hmacSha256Base64, bk as infiniteEventsQueryKey, bo as marketQueryKey, bt as matchMarketsQueryKey, br as matchQueryKey, bq as matchesQueryKey, bj as resolveEventsParams, bi as resolveTagSlug } from './server-Dk8PqvnI.js';
|
package/dist/server.js
CHANGED
|
@@ -1168,6 +1168,8 @@ var SIDE = { BUY: 0, SELL: 1 };
|
|
|
1168
1168
|
var ROUNDING_CONFIG = {
|
|
1169
1169
|
"0.1": { size: 2, price: 1, amount: 3 },
|
|
1170
1170
|
"0.01": { size: 2, price: 2, amount: 4 },
|
|
1171
|
+
"0.005": { size: 2, price: 3, amount: 5 },
|
|
1172
|
+
"0.0025": { size: 2, price: 4, amount: 6 },
|
|
1171
1173
|
"0.001": { size: 2, price: 3, amount: 5 },
|
|
1172
1174
|
"0.0001": { size: 2, price: 4, amount: 6 }
|
|
1173
1175
|
};
|