SET Crypto API Suite · Positions and watched addresses
Check up to five of your wallets not yet checked today
POST/v1/close/positions/check
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-Keystring- 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 403close_off. CheckGET /v1/capabilities(features.close). - Needs a key with the
writescope. - 503
close_positions_unavailablewhen position checks are not set up for the deployment. - Each wallet is checked once a UTC day, at most five per call;
remainingis true when more are due. A second call the same day answerschecked: 0with an emptydata. - With a sandbox key each wallet's check is
not_applicable(reasonsandbox) without any provider or chain read. The example was made with a sandbox key. - A mismatch emits the event
close.position.mismatchand must be noted before its month is prepared. - Each check uses a write from Close's daily allowance: 429
close_budget_reachedwhen 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_off503 close_positions_unavailable429 close_budget_reached