@quantish/agent 0.1.9 → 0.1.10
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 +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2823,6 +2823,19 @@ 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 Behavior
|
|
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
|
|
2833
|
+
|
|
2834
|
+
The search results contain EVERYTHING needed:
|
|
2835
|
+
- \`markets[].markets[].clobTokenIds\` - Parse this JSON string to get token IDs
|
|
2836
|
+
- \`markets[].markets[].conditionId\` - The condition ID for orders
|
|
2837
|
+
- \`markets[].title\` - Market title with timeframe info
|
|
2838
|
+
|
|
2826
2839
|
### Bot Code Template (Node.js)
|
|
2827
2840
|
\`\`\`javascript
|
|
2828
2841
|
#!/usr/bin/env node
|