@polymarket/clob-client 4.19.0 → 4.20.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/config.d.ts +1 -1
- package/dist/http-helpers/index.d.ts +1 -1
- package/dist/types.d.ts +7 -4
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const POST = "POST";
|
|
|
5
5
|
export declare const DELETE = "DELETE";
|
|
6
6
|
export declare const PUT = "PUT";
|
|
7
7
|
export declare const request: (endpoint: string, method: Method, headers?: any, data?: any, params?: any) => Promise<any>;
|
|
8
|
-
export
|
|
8
|
+
export type QueryParams = Record<string, any>;
|
|
9
9
|
export interface RequestOptions {
|
|
10
10
|
headers?: AxiosRequestHeaders;
|
|
11
11
|
data?: any;
|
package/dist/types.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ export interface OpenOrder {
|
|
|
169
169
|
expiration: string;
|
|
170
170
|
order_type: string;
|
|
171
171
|
}
|
|
172
|
-
export
|
|
172
|
+
export type OpenOrdersResponse = OpenOrder[];
|
|
173
173
|
export interface TradeParams {
|
|
174
174
|
id?: string;
|
|
175
175
|
maker_address?: string;
|
|
@@ -254,6 +254,9 @@ export interface OrderBookSummary {
|
|
|
254
254
|
timestamp: string;
|
|
255
255
|
bids: OrderSummary[];
|
|
256
256
|
asks: OrderSummary[];
|
|
257
|
+
min_order_size: string;
|
|
258
|
+
tick_size: string;
|
|
259
|
+
neg_risk: boolean;
|
|
257
260
|
hash: string;
|
|
258
261
|
}
|
|
259
262
|
export interface OrderSummary {
|
|
@@ -281,14 +284,14 @@ export interface OrderScoring {
|
|
|
281
284
|
export interface OrdersScoringParams {
|
|
282
285
|
orderIds: string[];
|
|
283
286
|
}
|
|
284
|
-
export
|
|
287
|
+
export type OrdersScoring = {
|
|
285
288
|
[orderId in string]: boolean;
|
|
286
289
|
};
|
|
287
|
-
export
|
|
290
|
+
export type CreateOrderOptions = {
|
|
288
291
|
tickSize: TickSize;
|
|
289
292
|
negRisk?: boolean;
|
|
290
293
|
};
|
|
291
|
-
export
|
|
294
|
+
export type TickSize = "0.1" | "0.01" | "0.001" | "0.0001";
|
|
292
295
|
export interface RoundConfig {
|
|
293
296
|
readonly price: number;
|
|
294
297
|
readonly size: number;
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAsCA,IAAY,IAGX;AAHD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,qBAAa,CAAA;AACjB,CAAC,EAHW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGf;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;AACf,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAkND,IAAY,KAGX;AAHD,WAAY,KAAK;IACb,yCAAa,CAAA;IACb,qCAAY,CAAA;AAChB,CAAC,EAHW,KAAK,GAAL,aAAK,KAAL,aAAK,QAGhB;AAeD,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,uCAAe,CAAA;IACf,sCAAc,CAAA;IACd,wCAAgB,CAAA;IAChB,uCAAe,CAAA;AACnB,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAsCA,IAAY,IAGX;AAHD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,qBAAa,CAAA;AACjB,CAAC,EAHW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGf;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,wBAAW,CAAA;I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