@quantish/agent 0.1.9 → 0.1.11

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 +30 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2823,6 +2823,36 @@ Example flow:
2823
2823
  3. Extract tokenId for YES/NO outcome you want
2824
2824
  4. place_order({ conditionId, tokenId, side: "BUY", price: 0.55, size: 100 })
2825
2825
 
2826
+ ### \u26A0\uFE0F\u26A0\uFE0F\u26A0\uFE0F EXTREMELY CRITICAL: Market Search Results - READ THEM! \u26A0\uFE0F\u26A0\uFE0F\u26A0\uFE0F
2827
+
2828
+ **YOU MUST READ AND USE SEARCH RESULTS. NEVER SAY "I DON'T SEE ANY" WHEN RESULTS ARE RETURNED.**
2829
+
2830
+ When search_markets returns \`"found": 10\` or any number > 0, there ARE markets. READ THEM.
2831
+
2832
+ Example: If user asks for "15 minute BTC up/down market" and search returns:
2833
+ \`\`\`
2834
+ "found": 10,
2835
+ "markets": [
2836
+ { "title": "Bitcoin Up or Down - December 28, 11:50PM-11:55PM ET", ... }
2837
+ ]
2838
+ \`\`\`
2839
+
2840
+ You MUST say: "I found a 5-minute BTC Up/Down market: 'Bitcoin Up or Down - December 28, 11:50PM-11:55PM ET'. This is similar to what you requested."
2841
+
2842
+ **NEVER** say "I don't see any 15-minute markets" when the search returned 10 results!
2843
+
2844
+ Rules:
2845
+ 1. **found > 0 means markets exist** - Read the titles and show them to the user
2846
+ 2. **Be flexible** - 5min/10min/15min/30min are ALL acceptable for "short-term" requests
2847
+ 3. **Use what's available** - Don't refuse to build because exact match isn't found
2848
+ 4. **Extract the data** - clobTokenIds, conditionId, title are all in the results
2849
+
2850
+ The search results contain:
2851
+ - \`markets[].title\` - TELLS YOU THE MARKET NAME AND TIMEFRAME
2852
+ - \`markets[].markets[].clobTokenIds\` - Parse this JSON string for token IDs
2853
+ - \`markets[].markets[].conditionId\` - The condition ID for orders
2854
+ - \`markets[].markets[].outcomes[]\` - The Up/Down options with prices
2855
+
2826
2856
  ### Bot Code Template (Node.js)
2827
2857
  \`\`\`javascript
2828
2858
  #!/usr/bin/env node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "AI-powered agent for building trading bots on Polymarket",
5
5
  "type": "module",
6
6
  "bin": {