@pear-protocol/core-sdk
Advanced tools
+28
-0
@@ -116,2 +116,30 @@ class Core { | ||
| }; | ||
| ladders = { | ||
| list: async (query, headers) => { | ||
| return await this.client.fetch(`/ladders`, { | ||
| method: "GET", | ||
| headers, | ||
| query | ||
| }); | ||
| }, | ||
| create: async (body, headers) => { | ||
| return await this.client.fetch(`/ladders`, { | ||
| method: "POST", | ||
| headers, | ||
| body | ||
| }); | ||
| }, | ||
| get: async (ladderId, headers) => { | ||
| return await this.client.fetch(`/ladders/${ladderId}`, { | ||
| method: "GET", | ||
| headers | ||
| }); | ||
| }, | ||
| cancel: async (ladderId, headers) => { | ||
| return await this.client.fetch(`/ladders/${ladderId}/cancel`, { | ||
| method: "POST", | ||
| headers | ||
| }); | ||
| } | ||
| }; | ||
| instruments = { | ||
@@ -118,0 +146,0 @@ list: async (query, headers) => { |
+2
-2
| { | ||
| "name": "@pear-protocol/core-sdk", | ||
| "version": "1.2.0", | ||
| "version": "1.3.0", | ||
| "description": "Pear Protocol Core SDK", | ||
@@ -28,3 +28,3 @@ "private": false, | ||
| "dependencies": { | ||
| "@pear-protocol/types": "^1.3.0", | ||
| "@pear-protocol/types": "^1.4.0", | ||
| "@pear-protocol/utils": "^0.0.23", | ||
@@ -31,0 +31,0 @@ "qs": "^6.14.0" |
Sorry, the diff of this file is too big to display
236014
33.37%5999
28.93%93
4.49%Updated