@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 CHANGED
@@ -1,4 +1,4 @@
1
- declare type ContractConfig = {
1
+ type ContractConfig = {
2
2
  exchange: string;
3
3
  negRiskAdapter: string;
4
4
  negRiskExchange: string;
@@ -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 declare type QueryParams = Record<string, any>;
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 declare type OpenOrdersResponse = OpenOrder[];
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 declare type OrdersScoring = {
287
+ export type OrdersScoring = {
285
288
  [orderId in string]: boolean;
286
289
  };
287
- export declare type CreateOrderOptions = {
290
+ export type CreateOrderOptions = {
288
291
  tickSize: TickSize;
289
292
  negRisk?: boolean;
290
293
  };
291
- export declare type TickSize = "0.1" | "0.01" | "0.001" | "0.0001";
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;AAgCD,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,sCAAyB,CAAA;IACzB,wCAA2B,CAAA;AAC/B,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
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;AAmCD,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,sCAAyB,CAAA;IACzB,wCAA2B,CAAA;AAC/B,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@polymarket/clob-client",
3
3
  "description": "Typescript client for Polymarket's CLOB",
4
- "version": "4.19.0",
4
+ "version": "4.20.0",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Jonathan Amenechi",