Ozmium Agent API – Gains Network Close Trade at Market is a paid API for AI agents from ozmium.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).
Generates Gains Network closeTradeMarket calldata to close an open perpetual position at market price with an expectedPrice guard.
Gains Network closeTradeMarket calldata (close an open position at market; expectedPrice guards the fill). POST /v1/tx/risk/close { index, expectedPrice }.
Returns the encoded closeTradeMarket calldata (unsigned transaction payload) ready to be signed and broadcast on-chain to close the specified Gains Network perpetual position at market, with the expectedPrice field protecting against unfavorable fills.
POSThttps://ozmium.org/v1/tx/risk/closeUse this endpoint when an AI agent needs to close an open Gains Network (gTrade) perpetual position at the current market price and requires the raw on-chain calldata with an expectedPrice fill guard. Prefer this over manually constructing calldata or using generic swap endpoints when the target is a Gains Network trade position.
| Field | Type | Description |
|---|---|---|
| index | number | |
| expectedPrice | number |
No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"