Portal Community

Check price, then place a limit order

  1. products / get with productId: "BTC-USD" to read the current price.
  2. A condition node compares the returned price against your target entry price.
  3. If favorable, orders / create with productId: "BTC-USD", side: "BUY", orderType: "limit", baseSize: "0.01", limitPrice set to your target, and a clientOrderId generated once and stored (e.g. in workflow state) so a retry of this exact step reuses it.
  4. Poll orders / get with the returned orderID until status is no longer OPEN.

Preview before committing

Run orders / preview with the same fields you intend to send to orders / create (minus clientOrderId) to see estimated fill price and size before risking a real order — useful as a pre-flight check gating the real create call behind a condition node.

Daily portfolio breakdown report

  1. portfolios / list to enumerate all portfolios.
  2. For each portfolio UUID, portfolios / getBreakdown to get totalBalanceUSD and the per-currency balances[].
  3. Feed the results into a notification or reporting node on a schedule trigger.

Convert idle USD to USDC

  1. converts / createQuote with fromCurrency: "USD", toCurrency: "USDC", amount set to the idle balance.
  2. Inspect the quote's expiresAt and toAmount.
  3. If acceptable, converts / commitTrade with the quote's tradeId — remember this call opts out of automatic 429 retry, so check converts / getTrade before retrying manually if the call times out.

Fee-aware order sizing

fees / getTransactionSummary returns your current takerFeeRate/makerFeeRate. Combine with products / get's price before orders / create to compute a size that nets a target amount after fees.