Strategies

Automation strategy management. Require Privy JWT. Pro subscription required to create strategies.

List automation strategies

get

Returns all automation strategies for the authenticated user, ordered by creation date descending.

Strategies are rule-based automation: currently only auto_close is supported, which closes a position when the funding rate crosses a threshold.

Authorizations
AuthorizationstringRequired

Privy-issued JWT. Obtain by connecting your wallet at https://app.zirodelta.com.

Responses
chevron-right
200

List of automation strategies.

application/json
get
/api/strategies

Create automation strategy

post

Creates a new automation strategy. Requires an active Pro subscription.

Currently only auto_close strategy type is supported. The scheduler runs every 60 seconds and closes matching positions when the live funding rate crosses the configured threshold.

Authorizations
AuthorizationstringRequired

Privy-issued JWT. Obtain by connecting your wallet at https://app.zirodelta.com.

Body
coinstringRequired

Asset symbol to monitor (uppercase).

Example: BTC
typestring · enumRequired

Strategy type. Only auto_close is currently supported.

Example: auto_closePossible values:
conditionstring · enumRequired

Trigger condition. above = trigger when rate exceeds threshold; below = trigger when rate falls below threshold.

Example: belowPossible values:
thresholdnumber · doubleRequired

1-hour funding rate threshold as a decimal (e.g. 0.000005 = 0.0005% per hour).

Example: 0.000005
Responses
chevron-right
200

Strategy created.

application/json
post
/api/strategies

Delete a strategy

delete

Permanently deletes an automation strategy. The strategy must belong to the authenticated user.

Authorizations
AuthorizationstringRequired

Privy-issued JWT. Obtain by connecting your wallet at https://app.zirodelta.com.

Path parameters
idstring · uuidRequired

Strategy UUID.

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Responses
chevron-right
200

Strategy deleted.

application/json
delete
/api/strategies/{id}

Toggle strategy active state

patch

Toggles the active/paused state of a strategy. Returns the new active state.

Authorizations
AuthorizationstringRequired

Privy-issued JWT. Obtain by connecting your wallet at https://app.zirodelta.com.

Path parameters
idstring · uuidRequired

Strategy UUID.

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Responses
chevron-right
200

Strategy state toggled.

application/json
patch
/api/strategies/{id}

Last updated

Was this helpful?