@cowprotocol/sdk-order-book 0.4.3 → 0.5.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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -250,7 +250,7 @@ var OrderBookApi = class {
|
|
|
250
250
|
const { offset = 0, limit = 10, ...rest } = request2;
|
|
251
251
|
const params = { ...rest, offset: offset.toString(), limit: limit.toString() };
|
|
252
252
|
const query = new URLSearchParams(cleanObjectFromUndefinedValues(params));
|
|
253
|
-
return this.fetch({ path: "/api/
|
|
253
|
+
return this.fetch({ path: "/api/v2/trades", method: "GET", query }, contextOverride);
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* Get a list of orders for a given `owner`.
|
package/dist/index.mjs
CHANGED
|
@@ -204,7 +204,7 @@ var OrderBookApi = class {
|
|
|
204
204
|
const { offset = 0, limit = 10, ...rest } = request2;
|
|
205
205
|
const params = { ...rest, offset: offset.toString(), limit: limit.toString() };
|
|
206
206
|
const query = new URLSearchParams(cleanObjectFromUndefinedValues(params));
|
|
207
|
-
return this.fetch({ path: "/api/
|
|
207
|
+
return this.fetch({ path: "/api/v2/trades", method: "GET", query }, contextOverride);
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* Get a list of orders for a given `owner`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-order-book",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "CowProtocol Order Book package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"cross-fetch": "^3.2.0",
|
|
32
32
|
"exponential-backoff": "^3.1.2",
|
|
33
33
|
"limiter": "^3.0.0",
|
|
34
|
-
"@cowprotocol/sdk-config": "0.6.
|
|
34
|
+
"@cowprotocol/sdk-config": "0.6.2",
|
|
35
35
|
"@cowprotocol/sdk-common": "0.4.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|