# Ozmium Gains Network Position Risk Modifier

> Ozmium Gains Network Position Risk Modifier is a paid API for AI agents from ozmium.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Returns Gains Network position-management calldata to modify risk parameters (stop-loss, take-profit, leverage) on an open trade by index, with exact on-chain scaling.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/risk/modify
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-gains-network-position-risk-modifier-15fffa44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rryloWZDZr6f-e6eIkcri

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 ozmium-gains-network-position-risk-modifier-15fffa44 -d '<json body>'
```

Example prompt: Modify the risk settings on my Gains Network trade at index 3 — set action to 'updateSl' with the new price at 1850.50 so I can update my stop-loss on Base mainnet.

## When to prefer this

Use this endpoint when an AI agent needs to modify risk parameters (stop-loss, take-profit, leverage) on an already-open Gains Network perpetual trade on Base mainnet, requiring exact on-chain calldata with proper scaling. Prefer this over generic DeFi endpoints when the target contract is specifically Gains Network (gTrade) and the operation is a risk/parameter update rather than opening or closing a position.

## Known failure modes

- Invalid trade index returns an error if the position does not exist
- Incorrectly scaled price or leverage values cause contract-level revert
- Unknown or unsupported action string returns a 400 validation error
- Network unavailability causes a 5xx service error
- Insufficient payment (x402) returns a 402 Payment Required response

## How this service works

Gains Network position management calldata by trade index, EXACT scaling (leverage x1e3, prices x1e10, USDC 6dp, slippage x1e3). POST /v1/tx/risk/modify { index, action, ... Full details: GET /v1.

## Output

Returns unsigned transaction calldata (properly scaled with leverage x1e3, prices x1e10, USDC 6dp, slippage x1e3) ready to be signed and submitted to the Gains Network contract on Base mainnet to modify a position's risk parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "index": {
   "type": "number"
  },
  "price": {
   "type": "number"
  },
  "action": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-gains-network-position-risk-modifier-15fffa44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
