@liberfi.io/react-predict 0.3.38 → 0.3.40
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 +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +23 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -38
- package/dist/index.mjs.map +1 -1
- package/dist/{server-Da_gQzNk.d.mts → server-DYdQCzYz.d.mts} +24 -12
- package/dist/{server-Da_gQzNk.d.ts → server-DYdQCzYz.d.ts} +24 -12
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +7 -14
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +7 -14
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -812,6 +812,25 @@ interface CreateOrderInput {
|
|
|
812
812
|
*/
|
|
813
813
|
builderCode?: string;
|
|
814
814
|
}
|
|
815
|
+
/** Request body for `POST /api/v1/orders/polymarket/execute`. */
|
|
816
|
+
interface PolymarketOrderExecuteRequest {
|
|
817
|
+
/** Already signed Polymarket CLOB `/order` payload. */
|
|
818
|
+
payload: unknown;
|
|
819
|
+
/** L2 API key used as the CLOB order owner. */
|
|
820
|
+
l2_api_key: string;
|
|
821
|
+
/** L2 HMAC secret. */
|
|
822
|
+
l2_secret: string;
|
|
823
|
+
/** L2 HMAC passphrase. */
|
|
824
|
+
l2_passphrase: string;
|
|
825
|
+
/** L1 EVM signer address that owns the L2 credentials. */
|
|
826
|
+
signer_address: string;
|
|
827
|
+
/** Optional explicit owner override; defaults to l2_api_key server-side. */
|
|
828
|
+
owner?: string;
|
|
829
|
+
}
|
|
830
|
+
/** Response from `POST /api/v1/orders/polymarket/execute`. */
|
|
831
|
+
interface PolymarketOrderExecuteResponse {
|
|
832
|
+
raw: Record<string, unknown>;
|
|
833
|
+
}
|
|
815
834
|
/** Response from `GET /api/v1/kyc/kalshi?wallet_address=...`. */
|
|
816
835
|
interface DFlowKYCStatus {
|
|
817
836
|
wallet_address: string;
|
|
@@ -1142,20 +1161,13 @@ declare class PredictClient {
|
|
|
1142
1161
|
*/
|
|
1143
1162
|
cancelOrder(id: string, source: ProviderSource, headers?: Record<string, string>): Promise<CancelOrderResult>;
|
|
1144
1163
|
/**
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
* Maps to `POST /api/v1/orders/polymarket`.
|
|
1148
|
-
*
|
|
1149
|
-
* The caller must attach Polymarket CLOB authentication headers:
|
|
1150
|
-
* - `POLY_ADDRESS` — the EVM wallet address.
|
|
1151
|
-
* - `POLY_SIGNATURE` — L1 signature or L2 API key.
|
|
1152
|
-
* - `POLY_TIMESTAMP` — Unix milliseconds string.
|
|
1153
|
-
* - `POLY_NONCE` — credential nonce (use `"0"` for in-session derived creds).
|
|
1164
|
+
* Execute an already signed Polymarket CLOB order through prediction-server.
|
|
1154
1165
|
*
|
|
1155
|
-
*
|
|
1156
|
-
*
|
|
1166
|
+
* Maps to `POST /api/v1/orders/polymarket/execute`. The server builds the
|
|
1167
|
+
* CLOB HMAC headers from the provided L2 credentials, forwards `payload`
|
|
1168
|
+
* unchanged to `/order`, and records rebate identity mappings.
|
|
1157
1169
|
*/
|
|
1158
|
-
|
|
1170
|
+
executePolymarketOrder(req: PolymarketOrderExecuteRequest): Promise<PolymarketOrderExecuteResponse>;
|
|
1159
1171
|
/** Maps to `GET /api/v1/polymarket/tick-size?token_id=xxx`. */
|
|
1160
1172
|
getPolymarketTickSize(tokenId: string): Promise<TickSizeResponse>;
|
|
1161
1173
|
/** Maps to `GET /api/v1/polymarket/fee-rate?token_id=xxx`. */
|
|
@@ -812,6 +812,25 @@ interface CreateOrderInput {
|
|
|
812
812
|
*/
|
|
813
813
|
builderCode?: string;
|
|
814
814
|
}
|
|
815
|
+
/** Request body for `POST /api/v1/orders/polymarket/execute`. */
|
|
816
|
+
interface PolymarketOrderExecuteRequest {
|
|
817
|
+
/** Already signed Polymarket CLOB `/order` payload. */
|
|
818
|
+
payload: unknown;
|
|
819
|
+
/** L2 API key used as the CLOB order owner. */
|
|
820
|
+
l2_api_key: string;
|
|
821
|
+
/** L2 HMAC secret. */
|
|
822
|
+
l2_secret: string;
|
|
823
|
+
/** L2 HMAC passphrase. */
|
|
824
|
+
l2_passphrase: string;
|
|
825
|
+
/** L1 EVM signer address that owns the L2 credentials. */
|
|
826
|
+
signer_address: string;
|
|
827
|
+
/** Optional explicit owner override; defaults to l2_api_key server-side. */
|
|
828
|
+
owner?: string;
|
|
829
|
+
}
|
|
830
|
+
/** Response from `POST /api/v1/orders/polymarket/execute`. */
|
|
831
|
+
interface PolymarketOrderExecuteResponse {
|
|
832
|
+
raw: Record<string, unknown>;
|
|
833
|
+
}
|
|
815
834
|
/** Response from `GET /api/v1/kyc/kalshi?wallet_address=...`. */
|
|
816
835
|
interface DFlowKYCStatus {
|
|
817
836
|
wallet_address: string;
|
|
@@ -1142,20 +1161,13 @@ declare class PredictClient {
|
|
|
1142
1161
|
*/
|
|
1143
1162
|
cancelOrder(id: string, source: ProviderSource, headers?: Record<string, string>): Promise<CancelOrderResult>;
|
|
1144
1163
|
/**
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
* Maps to `POST /api/v1/orders/polymarket`.
|
|
1148
|
-
*
|
|
1149
|
-
* The caller must attach Polymarket CLOB authentication headers:
|
|
1150
|
-
* - `POLY_ADDRESS` — the EVM wallet address.
|
|
1151
|
-
* - `POLY_SIGNATURE` — L1 signature or L2 API key.
|
|
1152
|
-
* - `POLY_TIMESTAMP` — Unix milliseconds string.
|
|
1153
|
-
* - `POLY_NONCE` — credential nonce (use `"0"` for in-session derived creds).
|
|
1164
|
+
* Execute an already signed Polymarket CLOB order through prediction-server.
|
|
1154
1165
|
*
|
|
1155
|
-
*
|
|
1156
|
-
*
|
|
1166
|
+
* Maps to `POST /api/v1/orders/polymarket/execute`. The server builds the
|
|
1167
|
+
* CLOB HMAC headers from the provided L2 credentials, forwards `payload`
|
|
1168
|
+
* unchanged to `/order`, and records rebate identity mappings.
|
|
1157
1169
|
*/
|
|
1158
|
-
|
|
1170
|
+
executePolymarketOrder(req: PolymarketOrderExecuteRequest): Promise<PolymarketOrderExecuteResponse>;
|
|
1159
1171
|
/** Maps to `GET /api/v1/polymarket/tick-size?token_id=xxx`. */
|
|
1160
1172
|
getPolymarketTickSize(tokenId: string): Promise<TickSizeResponse>;
|
|
1161
1173
|
/** Maps to `GET /api/v1/polymarket/fee-rate?token_id=xxx`. */
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse, bm as BuildClobAuthMessageInput, bA as BuildOrderMessageInput, bd as CLOB_AUTH_DOMAIN, be as CLOB_AUTH_TYPES, bn as CTF_EXCHANGE_ADDRESS, bs as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bz as ClobOrderPayload, a7 as CreateOrderInput, bD as DEFAULT_PAGE_SIZE, aq as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, au as DepositBuildRequest, av as DepositBuildResponse, ay as DepositStatusResponse, aw as DepositSubmitRequest, ax as DepositSubmitResponse, f as EventSortField, e as EventStatus, aj as EventSummary, bj as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, ag as MarketOutcome, af as MarketResult, ae as MarketStatus, ak as MarketSummary, aJ as MatchConfidenceTier, w as MatchGroup, aF as MatchGroupEntry, aG as MatchGroupMarket, v as MatchGroupPage, aL as MatchLeg, aM as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aH as MatchSortField, aE as MatchStatus, M as MatchesParams, aI as MatchesStats, bo as NEG_RISK_CTF_EXCHANGE_ADDRESS, bt as ORDER_TYPE, bB as OrderMessage, ap as OrderSide, ao as OrderStatus, h as Orderbook, ah as OrderbookLevel, bq as POLYGON_CHAIN_ID, bl as PolymarketL2Headers, bk as PolymarketL2HeadersInput, ar as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, an as PredictPosition, ac as PredictTag, j as PredictTrade, a as PredictWsClient, aa as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, am as PricePoint, ab as ProviderMeta, d as ProviderSource, b4 as ResolveEventsParamsInput, bu as SIDE, ad as SettlementSource, aK as SignalTag, bC as SignedOrder, S as SimilarEventsParams, b5 as TagSlugSelection, ai as TradeType, bp as USDC_ADDRESS, az as UnsignedTx, aN as WsChannel, aO as WsChannelEvent, aP as WsClientMessage, a2 as WsConnectionStatus, a3 as WsDataMessage, aV as WsErrorCode, aW as WsErrorMessage, a5 as WsOrderbookEvent, aR as WsPingMessage, aT as WsPongMessage, a4 as WsPriceEvent, aS as WsServerMessage, aQ as WsSubscribeMessage, aU as WsSubscribedMessage, a6 as WsTradeEvent, bf as buildClobAuthMessage, bx as buildClobPayload, br as buildCtfExchangeDomain, bv as buildOrderMessage, bh as buildPolymarketL2Headers, bw as buildSignedOrder, a8 as createPredictClient, a9 as createPredictWsClient, bi as derivePolymarketApiKey, a_ as eventQueryKey, a$ as fetchEvent, b3 as fetchEventsPage, b7 as fetchMarket, bc as fetchMatchMarketsPage, ba as fetchMatchesPage, bg as hmacSha256Base64, b2 as infiniteEventsQueryKey, b6 as marketQueryKey, bb as matchMarketsQueryKey, b9 as matchQueryKey, b8 as matchesQueryKey, b1 as resolveEventsParams, b0 as resolveTagSlug } from './server-
|
|
1
|
+
export { B as BalanceResponse, bm as BuildClobAuthMessageInput, bA as BuildOrderMessageInput, bd as CLOB_AUTH_DOMAIN, be as CLOB_AUTH_TYPES, bn as CTF_EXCHANGE_ADDRESS, bs as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bz as ClobOrderPayload, a7 as CreateOrderInput, bD as DEFAULT_PAGE_SIZE, aq as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, au as DepositBuildRequest, av as DepositBuildResponse, ay as DepositStatusResponse, aw as DepositSubmitRequest, ax as DepositSubmitResponse, f as EventSortField, e as EventStatus, aj as EventSummary, bj as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, ag as MarketOutcome, af as MarketResult, ae as MarketStatus, ak as MarketSummary, aJ as MatchConfidenceTier, w as MatchGroup, aF as MatchGroupEntry, aG as MatchGroupMarket, v as MatchGroupPage, aL as MatchLeg, aM as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aH as MatchSortField, aE as MatchStatus, M as MatchesParams, aI as MatchesStats, bo as NEG_RISK_CTF_EXCHANGE_ADDRESS, bt as ORDER_TYPE, bB as OrderMessage, ap as OrderSide, ao as OrderStatus, h as Orderbook, ah as OrderbookLevel, bq as POLYGON_CHAIN_ID, bl as PolymarketL2Headers, bk as PolymarketL2HeadersInput, ar as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, an as PredictPosition, ac as PredictTag, j as PredictTrade, a as PredictWsClient, aa as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, am as PricePoint, ab as ProviderMeta, d as ProviderSource, b4 as ResolveEventsParamsInput, bu as SIDE, ad as SettlementSource, aK as SignalTag, bC as SignedOrder, S as SimilarEventsParams, b5 as TagSlugSelection, ai as TradeType, bp as USDC_ADDRESS, az as UnsignedTx, aN as WsChannel, aO as WsChannelEvent, aP as WsClientMessage, a2 as WsConnectionStatus, a3 as WsDataMessage, aV as WsErrorCode, aW as WsErrorMessage, a5 as WsOrderbookEvent, aR as WsPingMessage, aT as WsPongMessage, a4 as WsPriceEvent, aS as WsServerMessage, aQ as WsSubscribeMessage, aU as WsSubscribedMessage, a6 as WsTradeEvent, bf as buildClobAuthMessage, bx as buildClobPayload, br as buildCtfExchangeDomain, bv as buildOrderMessage, bh as buildPolymarketL2Headers, bw as buildSignedOrder, a8 as createPredictClient, a9 as createPredictWsClient, bi as derivePolymarketApiKey, a_ as eventQueryKey, a$ as fetchEvent, b3 as fetchEventsPage, b7 as fetchMarket, bc as fetchMatchMarketsPage, ba as fetchMatchesPage, bg as hmacSha256Base64, b2 as infiniteEventsQueryKey, b6 as marketQueryKey, bb as matchMarketsQueryKey, b9 as matchQueryKey, b8 as matchesQueryKey, b1 as resolveEventsParams, b0 as resolveTagSlug } from './server-DYdQCzYz.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse, bm as BuildClobAuthMessageInput, bA as BuildOrderMessageInput, bd as CLOB_AUTH_DOMAIN, be as CLOB_AUTH_TYPES, bn as CTF_EXCHANGE_ADDRESS, bs as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bz as ClobOrderPayload, a7 as CreateOrderInput, bD as DEFAULT_PAGE_SIZE, aq as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, au as DepositBuildRequest, av as DepositBuildResponse, ay as DepositStatusResponse, aw as DepositSubmitRequest, ax as DepositSubmitResponse, f as EventSortField, e as EventStatus, aj as EventSummary, bj as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, ag as MarketOutcome, af as MarketResult, ae as MarketStatus, ak as MarketSummary, aJ as MatchConfidenceTier, w as MatchGroup, aF as MatchGroupEntry, aG as MatchGroupMarket, v as MatchGroupPage, aL as MatchLeg, aM as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aH as MatchSortField, aE as MatchStatus, M as MatchesParams, aI as MatchesStats, bo as NEG_RISK_CTF_EXCHANGE_ADDRESS, bt as ORDER_TYPE, bB as OrderMessage, ap as OrderSide, ao as OrderStatus, h as Orderbook, ah as OrderbookLevel, bq as POLYGON_CHAIN_ID, bl as PolymarketL2Headers, bk as PolymarketL2HeadersInput, ar as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, an as PredictPosition, ac as PredictTag, j as PredictTrade, a as PredictWsClient, aa as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, am as PricePoint, ab as ProviderMeta, d as ProviderSource, b4 as ResolveEventsParamsInput, bu as SIDE, ad as SettlementSource, aK as SignalTag, bC as SignedOrder, S as SimilarEventsParams, b5 as TagSlugSelection, ai as TradeType, bp as USDC_ADDRESS, az as UnsignedTx, aN as WsChannel, aO as WsChannelEvent, aP as WsClientMessage, a2 as WsConnectionStatus, a3 as WsDataMessage, aV as WsErrorCode, aW as WsErrorMessage, a5 as WsOrderbookEvent, aR as WsPingMessage, aT as WsPongMessage, a4 as WsPriceEvent, aS as WsServerMessage, aQ as WsSubscribeMessage, aU as WsSubscribedMessage, a6 as WsTradeEvent, bf as buildClobAuthMessage, bx as buildClobPayload, br as buildCtfExchangeDomain, bv as buildOrderMessage, bh as buildPolymarketL2Headers, bw as buildSignedOrder, a8 as createPredictClient, a9 as createPredictWsClient, bi as derivePolymarketApiKey, a_ as eventQueryKey, a$ as fetchEvent, b3 as fetchEventsPage, b7 as fetchMarket, bc as fetchMatchMarketsPage, ba as fetchMatchesPage, bg as hmacSha256Base64, b2 as infiniteEventsQueryKey, b6 as marketQueryKey, bb as matchMarketsQueryKey, b9 as matchQueryKey, b8 as matchesQueryKey, b1 as resolveEventsParams, b0 as resolveTagSlug } from './server-
|
|
1
|
+
export { B as BalanceResponse, bm as BuildClobAuthMessageInput, bA as BuildOrderMessageInput, bd as CLOB_AUTH_DOMAIN, be as CLOB_AUTH_TYPES, bn as CTF_EXCHANGE_ADDRESS, bs as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bz as ClobOrderPayload, a7 as CreateOrderInput, bD as DEFAULT_PAGE_SIZE, aq as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, au as DepositBuildRequest, av as DepositBuildResponse, ay as DepositStatusResponse, aw as DepositSubmitRequest, ax as DepositSubmitResponse, f as EventSortField, e as EventStatus, aj as EventSummary, bj as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, ag as MarketOutcome, af as MarketResult, ae as MarketStatus, ak as MarketSummary, aJ as MatchConfidenceTier, w as MatchGroup, aF as MatchGroupEntry, aG as MatchGroupMarket, v as MatchGroupPage, aL as MatchLeg, aM as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aH as MatchSortField, aE as MatchStatus, M as MatchesParams, aI as MatchesStats, bo as NEG_RISK_CTF_EXCHANGE_ADDRESS, bt as ORDER_TYPE, bB as OrderMessage, ap as OrderSide, ao as OrderStatus, h as Orderbook, ah as OrderbookLevel, bq as POLYGON_CHAIN_ID, bl as PolymarketL2Headers, bk as PolymarketL2HeadersInput, ar as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, an as PredictPosition, ac as PredictTag, j as PredictTrade, a as PredictWsClient, aa as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, am as PricePoint, ab as ProviderMeta, d as ProviderSource, b4 as ResolveEventsParamsInput, bu as SIDE, ad as SettlementSource, aK as SignalTag, bC as SignedOrder, S as SimilarEventsParams, b5 as TagSlugSelection, ai as TradeType, bp as USDC_ADDRESS, az as UnsignedTx, aN as WsChannel, aO as WsChannelEvent, aP as WsClientMessage, a2 as WsConnectionStatus, a3 as WsDataMessage, aV as WsErrorCode, aW as WsErrorMessage, a5 as WsOrderbookEvent, aR as WsPingMessage, aT as WsPongMessage, a4 as WsPriceEvent, aS as WsServerMessage, aQ as WsSubscribeMessage, aU as WsSubscribedMessage, a6 as WsTradeEvent, bf as buildClobAuthMessage, bx as buildClobPayload, br as buildCtfExchangeDomain, bv as buildOrderMessage, bh as buildPolymarketL2Headers, bw as buildSignedOrder, a8 as createPredictClient, a9 as createPredictWsClient, bi as derivePolymarketApiKey, a_ as eventQueryKey, a$ as fetchEvent, b3 as fetchEventsPage, b7 as fetchMarket, bc as fetchMatchMarketsPage, ba as fetchMatchesPage, bg as hmacSha256Base64, b2 as infiniteEventsQueryKey, b6 as marketQueryKey, bb as matchMarketsQueryKey, b9 as matchQueryKey, b8 as matchesQueryKey, b1 as resolveEventsParams, b0 as resolveTagSlug } from './server-DYdQCzYz.js';
|
package/dist/server.js
CHANGED
|
@@ -332,22 +332,15 @@ var PredictClient = class {
|
|
|
332
332
|
// Polymarket trading
|
|
333
333
|
// -------------------------------------------------------------------------
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* Execute an already signed Polymarket CLOB order through prediction-server.
|
|
336
336
|
*
|
|
337
|
-
* Maps to `POST /api/v1/orders/polymarket`.
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
* - `POLY_ADDRESS` — the EVM wallet address.
|
|
341
|
-
* - `POLY_SIGNATURE` — L1 signature or L2 API key.
|
|
342
|
-
* - `POLY_TIMESTAMP` — Unix milliseconds string.
|
|
343
|
-
* - `POLY_NONCE` — credential nonce (use `"0"` for in-session derived creds).
|
|
344
|
-
*
|
|
345
|
-
* @param input - Order parameters.
|
|
346
|
-
* @param headers - Polymarket CLOB auth headers (`POLY_*`).
|
|
337
|
+
* Maps to `POST /api/v1/orders/polymarket/execute`. The server builds the
|
|
338
|
+
* CLOB HMAC headers from the provided L2 credentials, forwards `payload`
|
|
339
|
+
* unchanged to `/order`, and records rebate identity mappings.
|
|
347
340
|
*/
|
|
348
|
-
async
|
|
349
|
-
const url = `${this.endpoint}/api/v1/orders/polymarket`;
|
|
350
|
-
return await utils.httpPost(url,
|
|
341
|
+
async executePolymarketOrder(req) {
|
|
342
|
+
const url = `${this.endpoint}/api/v1/orders/polymarket/execute`;
|
|
343
|
+
return await utils.httpPost(url, req);
|
|
351
344
|
}
|
|
352
345
|
/** Maps to `GET /api/v1/polymarket/tick-size?token_id=xxx`. */
|
|
353
346
|
async getPolymarketTickSize(tokenId) {
|