@vesper85/strategy-sdk 0.1.14 → 0.1.16

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -3
package/dist/index.js CHANGED
@@ -1275,7 +1275,7 @@ var PolymarketClient = class {
1275
1275
  }
1276
1276
  async getAskPrice(clobTokenId) {
1277
1277
  try {
1278
- const data = await this.publicClobClient.getPrice(clobTokenId, "ASK");
1278
+ const data = await this.publicClobClient.getPrice(clobTokenId, "BUY");
1279
1279
  const askPrice = data.price;
1280
1280
  if (!askPrice) {
1281
1281
  this.logger.error("Error while fetching ask price");
@@ -1288,7 +1288,7 @@ var PolymarketClient = class {
1288
1288
  }
1289
1289
  async getBidPrice(clobTokenId) {
1290
1290
  try {
1291
- const data = await this.publicClobClient.getPrice(clobTokenId, "BID");
1291
+ const data = await this.publicClobClient.getPrice(clobTokenId, "SELL");
1292
1292
  const bidPrice = data.price;
1293
1293
  if (!bidPrice) {
1294
1294
  this.logger.error("Error while fetching bid price");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesper85/strategy-sdk",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "description": "SDK for writing and running trading strategies with Polymarket and Hyperliquid integrations",
6
6
  "keywords": [
@@ -11,8 +11,6 @@
11
11
  "trading-bot",
12
12
  "osiris"
13
13
  ],
14
- "main": "./dist/index.js",
15
- "types": "./dist/index.d.ts",
16
14
  "exports": {
17
15
  ".": {
18
16
  "types": "./dist/index.d.ts",