@quantish/agent 0.1.10 → 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.
- package/dist/index.js +27 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2823,18 +2823,35 @@ 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 CRITICAL: Market Search
|
|
2827
|
-
When searching for markets:
|
|
2828
|
-
1. **ALWAYS look at the actual results** - Don't say "I don't see any" without checking
|
|
2829
|
-
2. **Be flexible with timeframes** - If user asks for "15 minute" market, use any similar short-term market (5min, 10min, 30min)
|
|
2830
|
-
3. **Show what IS available** - If exact match not found, show the user what markets ARE available
|
|
2831
|
-
4. **Extract and use the data** - The search returns clobTokenIds, conditionId, etc. - USE THEM
|
|
2832
|
-
5. **Parse the results properly** - Results are in data.result.content[0].text as JSON string
|
|
2826
|
+
### \u26A0\uFE0F\u26A0\uFE0F\u26A0\uFE0F EXTREMELY CRITICAL: Market Search Results - READ THEM! \u26A0\uFE0F\u26A0\uFE0F\u26A0\uFE0F
|
|
2833
2827
|
|
|
2834
|
-
|
|
2835
|
-
|
|
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
|
|
2836
2853
|
- \`markets[].markets[].conditionId\` - The condition ID for orders
|
|
2837
|
-
- \`markets[].
|
|
2854
|
+
- \`markets[].markets[].outcomes[]\` - The Up/Down options with prices
|
|
2838
2855
|
|
|
2839
2856
|
### Bot Code Template (Node.js)
|
|
2840
2857
|
\`\`\`javascript
|