Developer Tools › Guides
Node and Python SDKs include signing, retry handling, and idempotency keys.
SDK
What They Handle
- Signing, including the commonly missed PATH component
- Retries: retry 504 with the same idempotency key; never retry business failures
- Amounts: always handled as strings, never converted to JS number / Python float
What They Do Not Handle
- No tokens cached to disk; tokens belong in memory
- No automatic pagination; you decide when cursor pagination stops
- No swallowed errors; business failures are propagated so you can branch on
code
Amounts: One Pitfall in Each Language
// Node —— 别 parseFloat
const amount = data.amount; // "100.000000" ✓
const bad = parseFloat(data.amount); // 精度已经没了 ✗
# Python —— 用 Decimal(str(...)),别 float()
from decimal import Decimal
amount = Decimal(data["amount"]) # ✓
bad = float(data["amount"]) # ✗