@polymarket/clob-client 4.0.1 → 4.0.2
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +4 -4
- 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/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,4 +4,5 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./client"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./types"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./order-builder"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./config"), exports);
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB;AACxB,0DAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB;AACxB,0DAAgC;AAChC,mDAAyB"}
|
package/dist/types.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ export interface OpenOrder {
|
|
|
151
151
|
expiration: string;
|
|
152
152
|
type: string;
|
|
153
153
|
}
|
|
154
|
-
export
|
|
154
|
+
export type OpenOrdersResponse = OpenOrder[];
|
|
155
155
|
export interface FilterParams {
|
|
156
156
|
owner?: string;
|
|
157
157
|
max?: number;
|
|
@@ -276,14 +276,14 @@ export interface OrderScoring {
|
|
|
276
276
|
export interface OrdersScoringParams {
|
|
277
277
|
orderIds: string[];
|
|
278
278
|
}
|
|
279
|
-
export
|
|
279
|
+
export type OrdersScoring = {
|
|
280
280
|
[orderId in string]: boolean;
|
|
281
281
|
};
|
|
282
|
-
export
|
|
282
|
+
export type CreateOrderOptions = {
|
|
283
283
|
tickSize: TickSize;
|
|
284
284
|
negRisk?: boolean;
|
|
285
285
|
};
|
|
286
|
-
export
|
|
286
|
+
export type TickSize = "0.1" | "0.01" | "0.001" | "0.0001";
|
|
287
287
|
export interface RoundConfig {
|
|
288
288
|
readonly price: number;
|
|
289
289
|
readonly size: number;
|