Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET Crypto API Suite

SET Crypto API Suite · Positions and watched addresses

Check up to five of your wallets not yet checked today

POST/v1/close/positions/check

Key scope: write · Success: 200

Checks up to five of your wallets not yet checked today (UTC): reads each one's USDC balance at the provider and on chain, and records a position check. In production SET also checks every live wallet once a day on its own.

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Notes

  • SET Close is switched on per deployment; while it is off every /v1/close/* call answers 403 close_off. Check GET /v1/capabilities (features.close).
  • Needs a key with the write scope.
  • 503 close_positions_unavailable when position checks are not set up for the deployment.
  • Each wallet is checked once a UTC day, at most five per call; remaining is true when more are due. A second call the same day answers checked: 0 with an empty data.
  • With a sandbox key each wallet's check is not_applicable (reason sandbox) without any provider or chain read. The example was made with a sandbox key.
  • A mismatch emits the event close.position.mismatch and must be noted before its month is prepared.
  • Each check uses a write from Close's daily allowance: 429 close_budget_reached when it is used up; checks resume the next UTC day.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 403 close_off
  • 503 close_positions_unavailable
  • 429 close_budget_reached

All codes: Errors.