# Take-Profit Price from Entry and Percent

> Take-Profit Price from Entry and Percent is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Calculates a take-profit price level given an entry price, a target percent move, and a trade side (long/short).

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/take-profit-pct
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/take-profit-price-from-entry-and-percent-c3f5c414
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YCrz1OTv_fjkFLqmiVXGf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability take-profit-price-from-entry-and-percent-c3f5c414 -d '<json body>'
```

Example prompt: I'm long from an entry of 42000, what's my take-profit price if I want to exit at a 5% gain?

## When to prefer this

Use this endpoint when you need a fast, deterministic, fee-simple calculation of a take-profit price level from a known entry price and a percent target, especially in automated trading workflows or playbook-driven systems where no live market data or external API keys are available or desired. Prefer this over manual calculation when operating at scale or within agent pipelines that need reliable JSON output.

## Known failure modes

- Missing required fields (entry, pct, side) return a validation error
- Invalid side value (not 'long' or 'short') may return an error or unexpected result
- Non-numeric or negative entry/pct values may cause computation errors
- Network or payment failure via x402 prevents the call from completing

## How this service works

Take-profit price from entry and target percent move. Call when placing TP levels from percent playbooks. Returns take-profit price as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON object containing the calculated take-profit price derived from the entry price and the target percent move, adjusted for trade side (long or short). No external data sources are used; the result is pure local arithmetic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pct": {
   "type": "number",
   "description": "Input field: pct."
  },
  "side": {
   "type": "string",
   "description": "Input field: side."
  },
  "entry": {
   "type": "integer",
   "description": "Input field: entry."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pct": 0.05,
  "side": "long",
  "entry": 100,
  "schema": "delx/util-take-profit-pct/v1",
  "take_profit": 105
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/take-profit-price-from-entry-and-percent-c3f5c414/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
