You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Input token decimals (for 'limit_order'). Get from Birdeye. Pass 0 if not needed.",
368
+
"description": "Input token decimals (for 'limit_order', 'limit_order_info'). Get from Birdeye. E.g., 9 for SOL, 5 for BONK. REQUIRED for limit_order_info.",
354
369
},
355
370
"output_price_usd": {
356
371
"type": "string",
357
372
"description": "Output token price in USD (for 'limit_order', 'limit_order_info'). Get from Birdeye. Pass empty string if not needed.",
358
373
},
359
374
"output_decimals": {
360
375
"type": "integer",
361
-
"description": "Output token decimals (for 'limit_order'). Get from Birdeye. Pass 0 if not needed.",
376
+
"description": "Output token decimals (for 'limit_order', 'limit_order_info'). Get from Birdeye. E.g., 9 for SOL, 5 for BONK. REQUIRED for limit_order_info.",
362
377
},
363
378
"price_change_percentage": {
364
379
"type": "string",
365
380
"description": "Price change percentage for limit order (for 'limit_order'). E.g., '-0.5' for 0.5% lower (buy dip), '10' for 10% higher (sell high). Pass '0' for current price.",
366
381
},
367
382
"making_amount": {
368
383
"type": "string",
369
-
"description": "Human-readable amount of input token being sold (for 'limit_order_info'). From order's makingAmount field. Pass empty string if not needed.",
384
+
"description": "Amount of input token being sold (for 'limit_order_info'). From order's rawMakingAmount field (smallest units). Pass empty string if not needed.",
370
385
},
371
386
"taking_amount": {
372
387
"type": "string",
373
-
"description": "Human-readable amount of output token to receive (for 'limit_order_info'). From order's takingAmount field. Pass empty string if not needed.",
388
+
"description": "Amount of output token to receive (for 'limit_order_info'). From order's rawTakingAmount field (smallest units). Pass empty string if not needed.",
374
389
},
375
390
},
376
391
"required": [
@@ -535,11 +550,19 @@ async def execute(
535
550
"status": "error",
536
551
"message": "Missing required params for 'limit_order_info': making_amount, taking_amount, input_price_usd, output_price_usd",
537
552
}
553
+
# Validate that decimals are provided (should be > 0)
554
+
ifinput_decimals==0oroutput_decimals==0:
555
+
return {
556
+
"status": "error",
557
+
"message": "Missing required params for 'limit_order_info': input_decimals and output_decimals must be > 0. Get these from Birdeye. SOL=9, USDC=6, BONK=5.",
0 commit comments